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, visibleFields inherited from interface org.csstudio.swt.widgets.symbol.SymbolImage
DISABLE_COLOR, DISABLED_ALPHA -
Constructor Summary
Constructors -
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.voidpaintFigure(org.eclipse.draw2d.Graphics gfx) The main drawing routine.voidstart the animation if the image is an animated GIF image.voidvoidResizes the image.voidsetAlignedToNearestSecond(boolean aligned) voidsetAnimationDisabled(boolean stop) voidsetVisible(boolean visible) voidStart animation.voidstop the animation if the image is an animated GIF image.voidMethods 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:SymbolImageDispose the resource used by this figure- Specified by:
disposein interfaceSymbolImage- Overrides:
disposein classAbstractSymbolImage
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceSymbolImage- Overrides:
setVisiblein classAbstractSymbolImage
-
paintFigure
public void paintFigure(org.eclipse.draw2d.Graphics gfx) Description copied from interface:SymbolImageThe main drawing routine.- Parameters:
gfx- TheGraphicsto use
-
resetData
public void resetData()- Specified by:
resetDatain classAbstractSymbolImage
-
resizeImage
public void resizeImage()Description copied from interface:SymbolImageResizes the image.- Specified by:
resizeImagein interfaceSymbolImage- Overrides:
resizeImagein classAbstractSymbolImage
-
getAutoSizedDimension
public org.eclipse.draw2d.geometry.Dimension getAutoSizedDimension()Description copied from interface:SymbolImageGet the auto sized widget dimension according to the static image size.- Specified by:
getAutoSizedDimensionin interfaceSymbolImage- Specified by:
getAutoSizedDimensionin classAbstractSymbolImage- Returns:
- The auto sized widget dimension.
-
setAnimationDisabled
public void setAnimationDisabled(boolean stop) - Specified by:
setAnimationDisabledin interfaceSymbolImage- Overrides:
setAnimationDisabledin classAbstractSymbolImage
-
setAlignedToNearestSecond
public void setAlignedToNearestSecond(boolean aligned) - Specified by:
setAlignedToNearestSecondin interfaceSymbolImage- Overrides:
setAlignedToNearestSecondin 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()
-