Package armyc2.c5isr.renderer.utilities
Class SVGSymbolInfo
java.lang.Object
armyc2.c5isr.renderer.utilities.SVGSymbolInfo
- All Implemented Interfaces:
SymbolDimensionInfo
-
Constructor Summary
ConstructorsConstructorDescriptionSVGSymbolInfo
(String svg, Point anchorPoint, Rect symbolBounds, Rect svgBounds) -
Method Summary
Modifier and TypeMethodDescriptionThe point the image should be centered on or the "anchor point".int
The x value the image should be centered on or the "anchor point".int
The y value the image should be centered on or the "anchor point".Dimension of the entire image.getSVG()
minimum bounding rectangle for the core symbol.
-
Constructor Details
-
SVGSymbolInfo
-
-
Method Details
-
getSVGDataURI
-
getSVG
-
getCenterX
The x value the image should be centered on or the "anchor point".- Specified by:
getCenterX
in interfaceSymbolDimensionInfo
- Returns:
Integer
-
getCenterY
The y value the image should be centered on or the "anchor point".- Specified by:
getCenterY
in interfaceSymbolDimensionInfo
- Returns:
Integer
-
getCenterPoint
The point the image should be centered on or the "anchor point".- Specified by:
getCenterPoint
in interfaceSymbolDimensionInfo
- Returns:
Point
-
getSymbolBounds
minimum bounding rectangle for the core symbol. Does not include modifiers, display or otherwise.- Specified by:
getSymbolBounds
in interfaceSymbolDimensionInfo
- Returns:
Rect
-
getImageBounds
Dimension of the entire image.- Specified by:
getImageBounds
in interfaceSymbolDimensionInfo
- Returns:
Rect
-