Package armyc2.c5isr.renderer.utilities
Class SVGSymbolInfo
- java.lang.Object
-
- armyc2.c5isr.renderer.utilities.SVGSymbolInfo
-
- All Implemented Interfaces:
SymbolDimensionInfo
public class SVGSymbolInfo extends java.lang.Object implements SymbolDimensionInfo
-
-
Constructor Summary
Constructors Constructor Description SVGSymbolInfo(java.lang.String svg, java.awt.geom.Point2D anchorPoint, java.awt.geom.Rectangle2D symbolBounds, java.awt.geom.Rectangle2D svgBounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.Rectangle2DgetImageBounds()Dimension of the entire image.java.lang.StringgetSVG()java.lang.StringgetSVGDataURI()java.awt.geom.Rectangle2DgetSymbolBounds()minimum bounding rectangle for the core symbol.java.awt.PointgetSymbolCenterPoint()The point the image should be centered on or the "anchor point".intgetSymbolCenterX()The x value the image should be centered on or the "anchor point".intgetSymbolCenterY()The y value the image should be centered on or the "anchor point".
-
-
-
Method Detail
-
getSVGDataURI
public java.lang.String getSVGDataURI()
-
getSVG
public java.lang.String getSVG()
-
getSymbolCenterX
public int getSymbolCenterX()
The x value the image should be centered on or the "anchor point".- Specified by:
getSymbolCenterXin interfaceSymbolDimensionInfo- Returns:
Integer
-
getSymbolCenterY
public int getSymbolCenterY()
The y value the image should be centered on or the "anchor point".- Specified by:
getSymbolCenterYin interfaceSymbolDimensionInfo- Returns:
Integer
-
getSymbolCenterPoint
public java.awt.Point getSymbolCenterPoint()
The point the image should be centered on or the "anchor point".- Specified by:
getSymbolCenterPointin interfaceSymbolDimensionInfo- Returns:
Point
-
getSymbolBounds
public java.awt.geom.Rectangle2D getSymbolBounds()
minimum bounding rectangle for the core symbol. Does not include modifiers, display or otherwise.- Specified by:
getSymbolBoundsin interfaceSymbolDimensionInfo- Returns:
Rectangle2D
-
getImageBounds
public java.awt.geom.Rectangle2D getImageBounds()
Dimension of the entire image.- Specified by:
getImageBoundsin interfaceSymbolDimensionInfo- Returns:
Rectangle2D
-
-