Klasse ComponentStatusLabel
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
org.deidentifier.arx.gui.view.impl.common.ComponentStatusLabel
- Alle implementierten Schnittstellen:
org.eclipse.swt.graphics.Drawable
public class ComponentStatusLabel
extends org.eclipse.swt.widgets.Canvas
A label that can display animated GIFs.
Adapted from https://stackoverflow.com/questions/6896632/is-there-a-custom-label-widget-which-supports-animated-gif
-
Feldübersicht
Von Klasse geerbte Felder org.eclipse.swt.widgets.Composite
embeddedHandleVon Klasse geerbte Felder org.eclipse.swt.widgets.Widget
handle -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungComponentStatusLabel(org.eclipse.swt.widgets.Composite parent, int style) Creates a new instance -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.eclipse.swt.graphics.PointcomputeSize(int wHint, int hHint, boolean changed) voiddispose()intReturns the alignmentintReturns a marginorg.eclipse.swt.graphics.ImagegetImage()Returns the imageintReturns a marginintReturns a marginintgetStyle()getText()Returns the textintReturns a marginvoidsetAlignment(int align) Sets the alignmentvoidsetBackground(org.eclipse.swt.graphics.Color color) voidsetBackground(org.eclipse.swt.graphics.Image image) Sets an imagevoidsetBottomMargin(int bottomMargin) Sets a marginvoidsetFont(org.eclipse.swt.graphics.Font font) voidsetGIF(InputStream inputStream) Sets the GIFvoidSets the GIFvoidsetImage(org.eclipse.swt.graphics.Image image) Sets the imagevoidsetLeftMargin(int leftMargin) Sets a marginvoidSets a progress provider, if anyvoidsetRightMargin(int rightMargin) Sets a marginvoidSets the textvoidsetToolTipText(String string) voidsetTopMargin(int topMargin) Sets a marginprotected StringshortenText(org.eclipse.swt.graphics.GC gc, String t, int width) Shorten textvoidupdateImage(org.eclipse.swt.graphics.Image image) Updates the imageVon Klasse geerbte Methoden org.eclipse.swt.widgets.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setIMEVon Klasse geerbte Methoden org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListVon Klasse geerbte Methoden org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBarVon Klasse geerbte Methoden org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isAutoScalable, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateVon Klasse geerbte Methoden org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
Konstruktordetails
-
ComponentStatusLabel
public ComponentStatusLabel(org.eclipse.swt.widgets.Composite parent, int style) Creates a new instance- Parameter:
parent-style-
-
-
Methodendetails
-
computeSize
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed) - Setzt außer Kraft:
computeSizein Klasseorg.eclipse.swt.widgets.Control
-
dispose
public void dispose()- Setzt außer Kraft:
disposein Klasseorg.eclipse.swt.widgets.Widget
-
getAlignment
public int getAlignment()Returns the alignment- Gibt zurück:
-
getBottomMargin
public int getBottomMargin()Returns a margin- Gibt zurück:
-
getImage
public org.eclipse.swt.graphics.Image getImage()Returns the image- Gibt zurück:
-
getLeftMargin
public int getLeftMargin()Returns a margin- Gibt zurück:
-
getRightMargin
public int getRightMargin()Returns a margin- Gibt zurück:
-
getStyle
public int getStyle()- Setzt außer Kraft:
getStylein Klasseorg.eclipse.swt.widgets.Widget
-
getText
Returns the text- Gibt zurück:
-
getToolTipText
- Setzt außer Kraft:
getToolTipTextin Klasseorg.eclipse.swt.widgets.Control
-
getTopMargin
public int getTopMargin()Returns a margin- Gibt zurück:
-
setAlignment
public void setAlignment(int align) Sets the alignment- Parameter:
align-
-
setBackground
public void setBackground(org.eclipse.swt.graphics.Color color) - Setzt außer Kraft:
setBackgroundin Klasseorg.eclipse.swt.widgets.Control
-
setBackground
public void setBackground(org.eclipse.swt.graphics.Image image) Sets an image- Parameter:
image-
-
setBottomMargin
public void setBottomMargin(int bottomMargin) Sets a margin- Parameter:
bottomMargin-
-
setFont
public void setFont(org.eclipse.swt.graphics.Font font) - Setzt außer Kraft:
setFontin Klasseorg.eclipse.swt.widgets.Canvas
-
setGIF
Sets the GIF- Parameter:
inputStream-
-
setGIF
Sets the GIF- Parameter:
path-
-
setImage
public void setImage(org.eclipse.swt.graphics.Image image) Sets the image- Parameter:
image-
-
setLeftMargin
public void setLeftMargin(int leftMargin) Sets a margin- Parameter:
leftMargin-
-
setProgressProvider
Sets a progress provider, if any- Parameter:
provider-
-
setRightMargin
public void setRightMargin(int rightMargin) Sets a margin- Parameter:
rightMargin-
-
setText
Sets the text- Parameter:
text-
-
setToolTipText
- Setzt außer Kraft:
setToolTipTextin Klasseorg.eclipse.swt.widgets.Control
-
setTopMargin
public void setTopMargin(int topMargin) Sets a margin- Parameter:
topMargin-
-
updateImage
public void updateImage(org.eclipse.swt.graphics.Image image) Updates the image- Parameter:
image-
-
shortenText
Shorten text- Parameter:
gc-t-width-- Gibt zurück:
-