Package org.csstudio.swt.widgets.symbol
Class SVGSymbolImage
java.lang.Object
org.csstudio.swt.widgets.symbol.AbstractSymbolImage
org.csstudio.swt.widgets.symbol.SVGSymbolImage
- All Implemented Interfaces:
SymbolImage
Manages display of
SVGDocument
using SVGHandler
.-
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
void
setAbsoluteScale
(double newScale) void
setAlignedToNearestSecond
(boolean aligned) void
setAnimationDisabled
(boolean stop) void
setVisible
(boolean visible) void
Methods inherited from class org.csstudio.swt.widgets.symbol.AbstractSymbolImage
fireSizeChanged, fireSymbolImageLoaded, getImagePath, getOriginalImageData, getPermutationMatrix, isDisposed, isEditMode, isEmpty, repaint, resizeImage, setAutoSize, setBackgroundColor, setBottomCrop, setBounds, setColorToChange, setCurrentColor, setImagePath, setLeftCrop, setListener, setPermutationMatrix, setRightCrop, setStretch, setTopCrop
-
Constructor Details
-
SVGSymbolImage
-
-
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
-
setAbsoluteScale
public void setAbsoluteScale(double newScale) - Specified by:
setAbsoluteScale
in interfaceSymbolImage
- Overrides:
setAbsoluteScale
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
-
syncLoadImage
public void syncLoadImage() -
asyncLoadImage
public void asyncLoadImage()
-