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

    embeddedHandle

    Von Klasse geerbte Felder org.eclipse.swt.widgets.Widget

    handle
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    ComponentStatusLabel(org.eclipse.swt.widgets.Composite parent, int style)
    Creates a new instance
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    org.eclipse.swt.graphics.Point
    computeSize(int wHint, int hHint, boolean changed)
     
    void
     
    int
    Returns the alignment
    int
    Returns a margin
    org.eclipse.swt.graphics.Image
    Returns the image
    int
    Returns a margin
    int
    Returns a margin
    int
     
    Returns the text
     
    int
    Returns a margin
    void
    setAlignment(int align)
    Sets the alignment
    void
    setBackground(org.eclipse.swt.graphics.Color color)
     
    void
    setBackground(org.eclipse.swt.graphics.Image image)
    Sets an image
    void
    setBottomMargin(int bottomMargin)
    Sets a margin
    void
    setFont(org.eclipse.swt.graphics.Font font)
     
    void
    setGIF(InputStream inputStream)
    Sets the GIF
    void
    setGIF(String path)
    Sets the GIF
    void
    setImage(org.eclipse.swt.graphics.Image image)
    Sets the image
    void
    setLeftMargin(int leftMargin)
    Sets a margin
    void
    Sets a progress provider, if any
    void
    setRightMargin(int rightMargin)
    Sets a margin
    void
    Sets the text
    void
     
    void
    setTopMargin(int topMargin)
    Sets a margin
    protected String
    shortenText(org.eclipse.swt.graphics.GC gc, String t, int width)
    Shorten text
    void
    updateImage(org.eclipse.swt.graphics.Image image)
    Updates the image

    Von Klasse geerbte Methoden org.eclipse.swt.widgets.Canvas

    drawBackground, getCaret, getIME, scroll, setCaret, setIME

    Von 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, setTabList

    Von Klasse geerbte Methoden org.eclipse.swt.widgets.Scrollable

    computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar

    Von 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, update

    Von 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

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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:
      computeSize in Klasse org.eclipse.swt.widgets.Control
    • dispose

      public void dispose()
      Setzt außer Kraft:
      dispose in Klasse org.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:
      getStyle in Klasse org.eclipse.swt.widgets.Widget
    • getText

      public String getText()
      Returns the text
      Gibt zurück:
    • getToolTipText

      public String getToolTipText()
      Setzt außer Kraft:
      getToolTipText in Klasse org.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:
      setBackground in Klasse org.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:
      setFont in Klasse org.eclipse.swt.widgets.Canvas
    • setGIF

      public void setGIF(InputStream inputStream)
      Sets the GIF
      Parameter:
      inputStream -
    • setGIF

      public void setGIF(String path)
      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

      public void setProgressProvider(ComponentStatusLabelProgressProvider provider)
      Sets a progress provider, if any
      Parameter:
      provider -
    • setRightMargin

      public void setRightMargin(int rightMargin)
      Sets a margin
      Parameter:
      rightMargin -
    • setText

      public void setText(String text)
      Sets the text
      Parameter:
      text -
    • setToolTipText

      public void setToolTipText(String string)
      Setzt außer Kraft:
      setToolTipText in Klasse org.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

      protected String shortenText(org.eclipse.swt.graphics.GC gc, String t, int width)
      Shorten text
      Parameter:
      gc -
      t -
      width -
      Gibt zurück: