Interface SymbolImage

All Known Implementing Classes:
AbstractSymbolImage, GIFSymbolImage, PNGSymbolImage, SVGSymbolImage

public interface SymbolImage
  • Field Details

    • DISABLE_COLOR

      static final Color DISABLE_COLOR
    • DISABLED_ALPHA

      static final int DISABLED_ALPHA
      The alpha (0 is transparency and 255 is opaque) for disabled paint
      See Also:
  • Method Details

    • setImagePath

      void setImagePath(String imagePath)
    • getImagePath

      String getImagePath()
    • getOriginalImageData

      ImageData getOriginalImageData()
    • dispose

      void dispose()
      Dispose the resource used by this figure
    • setVisible

      void setVisible(boolean visible)
    • isDisposed

      boolean isDisposed()
    • isEditMode

      boolean isEditMode()
    • isEmpty

      boolean isEmpty()
    • setCurrentColor

      void setCurrentColor(Color newColor)
    • setColorToChange

      void setColorToChange(Color newColor)
    • setBackgroundColor

      void setBackgroundColor(Color newColor)
    • paintFigure

      void paintFigure(org.eclipse.draw2d.Graphics gfx)
      The main drawing routine.
      Parameters:
      gfx - The Graphics to use
    • setBounds

      void setBounds(org.eclipse.draw2d.geometry.Rectangle newArea)
    • setAbsoluteScale

      void setAbsoluteScale(double newScale)
    • resizeImage

      void resizeImage()
      Resizes the image.
    • setAutoSize

      void setAutoSize(boolean autoSize)
      Automatically adjust the widget bounds to fit the size of the static image
      Parameters:
      autoSize -
    • setStretch

      void setStretch(boolean newval)
      Set the stretch state for the image.
      Parameters:
      newval - true, if it should be stretched, false otherwise)
    • getAutoSizedDimension

      org.eclipse.draw2d.geometry.Dimension getAutoSizedDimension()
      Get the auto sized widget dimension according to the static image size.
      Returns:
      The auto sized widget dimension.
    • setLeftCrop

      void setLeftCrop(int newval)
      Sets the amount of pixels, which are cropped from the left.
    • setRightCrop

      void setRightCrop(int newval)
      Sets the amount of pixels, which are cropped from the right.
    • setBottomCrop

      void setBottomCrop(int newval)
      Sets the amount of pixels, which are cropped from the bottom.
    • setTopCrop

      void setTopCrop(int newval)
      Sets the amount of pixels, which are cropped from the top.
    • setPermutationMatrix

      void setPermutationMatrix(PermutationMatrix permutationMatrix)
    • getPermutationMatrix

      PermutationMatrix getPermutationMatrix()
    • setAnimationDisabled

      void setAnimationDisabled(boolean stop)
    • setListener

      void setListener(SymbolImageListener listener)
    • syncLoadImage

      void syncLoadImage()
    • asyncLoadImage

      void asyncLoadImage()
    • setAlignedToNearestSecond

      void setAlignedToNearestSecond(boolean aligned)