Package org.csstudio.swt.widgets.symbol
Class GIFSymbolImage
java.lang.Object
org.csstudio.swt.widgets.symbol.AbstractSymbolImage
org.csstudio.swt.widgets.symbol.GIFSymbolImage
- 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
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.void
paintFigure
(org.eclipse.draw2d.Graphics gfx) The main drawing routine.void
start the animation if the image is an animated GIF image.void
void
Resizes the image.void
setAlignedToNearestSecond
(boolean aligned) void
setAnimationDisabled
(boolean stop) void
setVisible
(boolean visible) void
Start animation.void
stop the animation if the image is an animated GIF image.void
Methods inherited from class org.csstudio.swt.widgets.symbol.AbstractSymbolImage
fireSizeChanged, fireSymbolImageLoaded, getImagePath, getOriginalImageData, getPermutationMatrix, isDisposed, isEditMode, isEmpty, repaint, setAbsoluteScale, setAutoSize, setBackgroundColor, setBottomCrop, setBounds, setColorToChange, setCurrentColor, setImagePath, setLeftCrop, setListener, setPermutationMatrix, setRightCrop, setStretch, setTopCrop
-
Constructor Details
-
GIFSymbolImage
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:SymbolImage
Dispose the resource used by this figure- Specified by:
dispose
in interfaceSymbolImage
- Overrides:
dispose
in classAbstractSymbolImage
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceSymbolImage
- Overrides:
setVisible
in classAbstractSymbolImage
-
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
-
resizeImage
public void resizeImage()Description copied from interface:SymbolImage
Resizes the image.- Specified by:
resizeImage
in interfaceSymbolImage
- Overrides:
resizeImage
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.
-
setAnimationDisabled
public void setAnimationDisabled(boolean stop) - Specified by:
setAnimationDisabled
in interfaceSymbolImage
- Overrides:
setAnimationDisabled
in classAbstractSymbolImage
-
setAlignedToNearestSecond
public void setAlignedToNearestSecond(boolean aligned) - Specified by:
setAlignedToNearestSecond
in interfaceSymbolImage
- Overrides:
setAlignedToNearestSecond
in classAbstractSymbolImage
-
startAnimation
public void startAnimation()Start animation. The request will be pended until figure painted for the first time. -
stopAnimation
public void stopAnimation()stop the animation if the image is an animated GIF image. -
realStartAnimation
public void realStartAnimation()start the animation if the image is an animated GIF image. -
syncLoadImage
public void syncLoadImage() -
asyncLoadImage
public void asyncLoadImage()
-