Package org.csstudio.swt.widgets.symbol
Class PNGSymbolImage
java.lang.Object
org.csstudio.swt.widgets.symbol.AbstractSymbolImage
org.csstudio.swt.widgets.symbol.PNGSymbolImage
- All Implemented Interfaces:
SymbolImage
-
Field Summary
Fields inherited from class org.csstudio.swt.widgets.symbol.AbstractSymbolImage
alignedToNearestSecond, animationDisabled, autoSize, backgroundColor, bottomCrop, bounds, colorToChange, currentColor, disposed, image, imageData, imagePath, leftCrop, oldPermutationMatrix, originalImageData, permutationMatrix, rightCrop, scale, stretch, topCrop, visible
Fields inherited from interface org.csstudio.swt.widgets.symbol.SymbolImage
DISABLE_COLOR, DISABLED_ALPHA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.eclipse.draw2d.geometry.Dimension
Get the auto sized widget dimension according to the static image size.void
paintFigure
(org.eclipse.draw2d.Graphics gfx) The main drawing routine.void
void
setOriginalImageData
(ImageData originalImageData) void
Methods inherited from class org.csstudio.swt.widgets.symbol.AbstractSymbolImage
dispose, fireSizeChanged, fireSymbolImageLoaded, getImagePath, getOriginalImageData, getPermutationMatrix, isDisposed, isEditMode, isEmpty, repaint, resizeImage, setAbsoluteScale, setAlignedToNearestSecond, setAnimationDisabled, setAutoSize, setBackgroundColor, setBottomCrop, setBounds, setColorToChange, setCurrentColor, setImagePath, setLeftCrop, setListener, setPermutationMatrix, setRightCrop, setStretch, setTopCrop, setVisible
-
Constructor Details
-
PNGSymbolImage
-
-
Method Details
-
setOriginalImageData
-
paintFigure
public void paintFigure(org.eclipse.draw2d.Graphics gfx) Description copied from interface:SymbolImage
The main drawing routine.- Parameters:
gfx
- TheGraphics
to use
-
resetData
public void resetData()- Specified by:
resetData
in classAbstractSymbolImage
-
getAutoSizedDimension
public org.eclipse.draw2d.geometry.Dimension getAutoSizedDimension()Description copied from interface:SymbolImage
Get the auto sized widget dimension according to the static image size.- Specified by:
getAutoSizedDimension
in interfaceSymbolImage
- Specified by:
getAutoSizedDimension
in classAbstractSymbolImage
- Returns:
- The auto sized widget dimension.
-
syncLoadImage
public void syncLoadImage() -
asyncLoadImage
public void asyncLoadImage()
-