Package org.csstudio.swt.widgets.symbol
Interface SymbolImage
- All Known Implementing Classes:
AbstractSymbolImage
,GIFSymbolImage
,PNGSymbolImage
,SVGSymbolImage
public interface SymbolImage
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Color
static final int
The alpha (0 is transparency and 255 is opaque) for disabled paint -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dispose()
Dispose the resource used by this figureorg.eclipse.draw2d.geometry.Dimension
Get the auto sized widget dimension according to the static image size.boolean
boolean
boolean
isEmpty()
void
paintFigure
(org.eclipse.draw2d.Graphics gfx) The main drawing routine.void
Resizes the image.void
setAbsoluteScale
(double newScale) void
setAlignedToNearestSecond
(boolean aligned) void
setAnimationDisabled
(boolean stop) void
setAutoSize
(boolean autoSize) Automatically adjust the widget bounds to fit the size of the static imagevoid
setBackgroundColor
(Color newColor) void
setBottomCrop
(int newval) Sets the amount of pixels, which are cropped from the bottom.void
setBounds
(org.eclipse.draw2d.geometry.Rectangle newArea) void
setColorToChange
(Color newColor) void
setCurrentColor
(Color newColor) void
setImagePath
(String imagePath) void
setLeftCrop
(int newval) Sets the amount of pixels, which are cropped from the left.void
setListener
(SymbolImageListener listener) void
setPermutationMatrix
(PermutationMatrix permutationMatrix) void
setRightCrop
(int newval) Sets the amount of pixels, which are cropped from the right.void
setStretch
(boolean newval) Set the stretch state for the image.void
setTopCrop
(int newval) Sets the amount of pixels, which are cropped from the top.void
setVisible
(boolean visible) void
-
Field Details
-
DISABLE_COLOR
-
DISABLED_ALPHA
static final int DISABLED_ALPHAThe alpha (0 is transparency and 255 is opaque) for disabled paint- See Also:
-
-
Method Details
-
setImagePath
-
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
-
setColorToChange
-
setBackgroundColor
-
paintFigure
void paintFigure(org.eclipse.draw2d.Graphics gfx) The main drawing routine.- Parameters:
gfx
- TheGraphics
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
-
getPermutationMatrix
PermutationMatrix getPermutationMatrix() -
setAnimationDisabled
void setAnimationDisabled(boolean stop) -
setListener
-
syncLoadImage
void syncLoadImage() -
asyncLoadImage
void asyncLoadImage() -
setAlignedToNearestSecond
void setAlignedToNearestSecond(boolean aligned)
-