Package org.csstudio.swt.widgets.symbol
Interface SymbolImage
- All Known Implementing Classes:
AbstractSymbolImage,GIFSymbolImage,PNGSymbolImage,SVGSymbolImage
public interface SymbolImage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Colorstatic final intThe alpha (0 is transparency and 255 is opaque) for disabled paint -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddispose()Dispose the resource used by this figureorg.eclipse.draw2d.geometry.DimensionGet the auto sized widget dimension according to the static image size.booleanbooleanbooleanisEmpty()voidpaintFigure(org.eclipse.draw2d.Graphics gfx) The main drawing routine.voidResizes the image.voidsetAbsoluteScale(double newScale) voidsetAlignedToNearestSecond(boolean aligned) voidsetAnimationDisabled(boolean stop) voidsetAutoSize(boolean autoSize) Automatically adjust the widget bounds to fit the size of the static imagevoidsetBackgroundColor(Color newColor) voidsetBottomCrop(int newval) Sets the amount of pixels, which are cropped from the bottom.voidsetBounds(org.eclipse.draw2d.geometry.Rectangle newArea) voidsetColorToChange(Color newColor) voidsetCurrentColor(Color newColor) voidsetImagePath(String imagePath) voidsetLeftCrop(int newval) Sets the amount of pixels, which are cropped from the left.voidsetListener(SymbolImageListener listener) voidsetPermutationMatrix(PermutationMatrix permutationMatrix) voidsetRightCrop(int newval) Sets the amount of pixels, which are cropped from the right.voidsetStretch(boolean newval) Set the stretch state for the image.voidsetTopCrop(int newval) Sets the amount of pixels, which are cropped from the top.voidsetVisible(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- TheGraphicsto 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)
-