Class ImageBoolButtonFigure

java.lang.Object
org.eclipse.draw2d.Figure
All Implemented Interfaces:
Introspectable, SymbolImageListener, org.eclipse.draw2d.IFigure

public class ImageBoolButtonFigure extends AbstractBoolControlFigure implements SymbolImageListener
  • Constructor Details

    • ImageBoolButtonFigure

      public ImageBoolButtonFigure()
    • ImageBoolButtonFigure

      public ImageBoolButtonFigure(boolean indicatorMode)
  • Method Details

    • updateBoolValue

      protected void updateBoolValue()
      Description copied from class: AbstractBoolFigure
      update the boolValue from value and bit. All the boolValue based behavior changes should be implemented here by inheritance.
      Overrides:
      updateBoolValue in class AbstractBoolFigure
    • getCurrentImage

      public SymbolImage getCurrentImage()
      Return the current displayed image. If null, returns an empty image.
    • getAllImages

      public Collection<SymbolImage> getAllImages()
      Return all mapped images.
    • dispose

      public void dispose()
      Dispose the image resources used by this figure.
    • setSymbolProperties

      public void setSymbolProperties(SymbolImageProperties symbolProperties, AbstractBoolWidgetModel model)
    • getAutoSizedDimension

      public org.eclipse.draw2d.geometry.Dimension getAutoSizedDimension()
    • setBorder

      public void setBorder(org.eclipse.draw2d.Border b)
      Specified by:
      setBorder in interface org.eclipse.draw2d.IFigure
      Overrides:
      setBorder in class org.eclipse.draw2d.Figure
    • isLoadingImage

      public boolean isLoadingImage()
    • decrementLoadingCounter

      public void decrementLoadingCounter()
    • incrementLoadingCounter

      public void incrementLoadingCounter()
    • layout

      protected void layout()
      Overrides:
      layout in class org.eclipse.draw2d.Figure
    • paintClientArea

      protected void paintClientArea(org.eclipse.draw2d.Graphics graphics)
      Overrides:
      paintClientArea in class org.eclipse.draw2d.Figure
    • setEnabled

      public void setEnabled(boolean value)
      Specified by:
      setEnabled in interface org.eclipse.draw2d.IFigure
      Overrides:
      setEnabled in class AbstractBoolFigure
    • setOffImagePath

      public void setOffImagePath(String offImagePath)
    • setOnImagePath

      public void setOnImagePath(String onImagePath)
    • setRunMode

      public void setRunMode(boolean runMode)
      Overrides:
      setRunMode in class AbstractBoolControlFigure
      Parameters:
      runMode - the runMode to set
    • setStretch

      public void setStretch(boolean strech)
    • setValue

      public void setValue(double value)
      Overrides:
      setValue in class AbstractBoolFigure
    • setBackgroundColor

      public void setBackgroundColor(Color backgroundColor)
      Specified by:
      setBackgroundColor in interface org.eclipse.draw2d.IFigure
      Overrides:
      setBackgroundColor in class org.eclipse.draw2d.Figure
    • isAnimationDisabled

      public boolean isAnimationDisabled()
      Returns:
      the animationDisabled
    • setAnimationDisabled

      public void setAnimationDisabled(boolean stop)
    • setAlignedToNearestSecond

      public void setAlignedToNearestSecond(boolean aligned)
    • setImageLoadedListener

      public void setImageLoadedListener(IImageListener listener)
    • symbolImageLoaded

      public void symbolImageLoaded()
      Specified by:
      symbolImageLoaded in interface SymbolImageListener
    • repaintRequested

      public void repaintRequested()
      Specified by:
      repaintRequested in interface SymbolImageListener
    • sizeChanged

      public void sizeChanged()
      Specified by:
      sizeChanged in interface SymbolImageListener