Package armyc2.c5isr.renderer.utilities
Class ImageInfo
java.lang.Object
armyc2.c5isr.renderer.utilities.ImageInfo
- All Implemented Interfaces:
SymbolDimensionInfo
Object that holds an image of the symbol and all the information
needed to place the symbol on the screen.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The 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".getImage()
Dimension of the entire image.Not a full clone.minimum bounding rectangle for the core symbol.
-
Constructor Details
-
ImageInfo
Creates a new Image info with copied values but a link to the original image.- Parameters:
original
-ImageInfo
-
ImageInfo
Creates a new ImageInfo object
-
-
Method Details
-
getLightClone
Not a full clone. Only centerPoint and symbolBounds are copies. Bitmap is still a reference. -
getClone
-
getImage
-
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
Description copied from interface:SymbolDimensionInfo
The point the image should be centered on or the "anchor point".- Specified by:
getCenterPoint
in interfaceSymbolDimensionInfo
- Returns:
Point
-
getSymbolBounds
Description copied from interface:SymbolDimensionInfo
minimum bounding rectangle for the core symbol. Does not include modifiers, display or otherwise.- Specified by:
getSymbolBounds
in interfaceSymbolDimensionInfo
- Returns:
Rect
-
getImageBounds
Description copied from interface:SymbolDimensionInfo
Dimension of the entire image.- Specified by:
getImageBounds
in interfaceSymbolDimensionInfo
- Returns:
Rect
-
getByteCount
-
getSquareImageInfo
-