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.Rectangle2D
getImageBounds()
Dimension of the entire image.java.lang.String
getSVG()
java.lang.String
getSVGDataURI()
java.awt.geom.Rectangle2D
getSymbolBounds()
minimum bounding rectangle for the core symbol.java.awt.Point
getSymbolCenterPoint()
The point the image should be centered on or the "anchor point".int
getSymbolCenterX()
The x value the image should be centered on or the "anchor point".int
getSymbolCenterY()
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:
getSymbolCenterX
in interfaceSymbolDimensionInfo
- Returns:
Integer
-
getSymbolCenterY
public int getSymbolCenterY()
The y value the image should be centered on or the "anchor point".- Specified by:
getSymbolCenterY
in interfaceSymbolDimensionInfo
- Returns:
Integer
-
getSymbolCenterPoint
public java.awt.Point getSymbolCenterPoint()
The point the image should be centered on or the "anchor point".- Specified by:
getSymbolCenterPoint
in 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:
getSymbolBounds
in interfaceSymbolDimensionInfo
- Returns:
Rectangle2D
-
getImageBounds
public java.awt.geom.Rectangle2D getImageBounds()
Dimension of the entire image.- Specified by:
getImageBounds
in interfaceSymbolDimensionInfo
- Returns:
Rectangle2D
-
-