Package armyc2.c5isr.renderer.utilities
Class ShapeInfo
java.lang.Object
armyc2.c5isr.renderer.utilities.ShapeInfo
- Direct Known Subclasses:
Shape2
Holds information on how to draw the pieces of a multipoint symbol.
Can be retrieved from
MilStdSymbol.getSymbolShapes()
and
MilStdSymbol.getModifierShapes()
after WebRenderer.RenderMultiPointAsMilStdSymbol(String, String, String, String, String, String, double, String, Map, Map)
is called.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Shape
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets bounds for the shapes.int
needed to draw Glyphs and TextLayoutsdouble
getShape()
int
For Internal Renderer usegetTag()
Object that can be used to store anything.int
Deprecated.use getShader()void
setFillColor
(Color value) void
setFillStyle
(int value) void
setGlyphPosition
(Point position) needed to draw Glyphs and TextLayoutsvoid
setGlyphPosition
(Point2D position) needed to draw Glyphs and TextLayoutsvoid
setLineColor
(Color value) void
setModifierAngle
(double value) void
setModifierImage
(Bitmap value) void
setModifierPosition
(Point2D value) void
setModifierString
(String value) void
void
setPolylines
(ArrayList<ArrayList<Point2D>> value) void
setShader
(BitmapShader value) void
void
setShapeType
(int value) For Internal Renderer usevoid
void
Object that can be used to store anything.void
setTextJustify
(int value) void
setTextLayout
(TextLayout value) void
setTexturePaint
(TexturePaint value) Deprecated.use setShader()
-
Field Details
-
SHAPE_TYPE_POLYLINE
- See Also:
-
SHAPE_TYPE_FILL
- See Also:
-
SHAPE_TYPE_MODIFIER
- See Also:
-
SHAPE_TYPE_MODIFIER_FILL
- See Also:
-
SHAPE_TYPE_UNIT_FRAME
- See Also:
-
SHAPE_TYPE_UNIT_FILL
- See Also:
-
SHAPE_TYPE_UNIT_SYMBOL1
- See Also:
-
SHAPE_TYPE_UNIT_SYMBOL2
- See Also:
-
SHAPE_TYPE_UNIT_DISPLAY_MODIFIER
- See Also:
-
SHAPE_TYPE_UNIT_ECHELON
- See Also:
-
SHAPE_TYPE_UNIT_AFFILIATION_MODIFIER
- See Also:
-
SHAPE_TYPE_UNIT_HQ_STAFF
- See Also:
-
SHAPE_TYPE_TG_SP_FILL
- See Also:
-
SHAPE_TYPE_TG_SP_FRAME
- See Also:
-
SHAPE_TYPE_TG_Q_MODIFIER
- See Also:
-
SHAPE_TYPE_TG_SP_OUTLINE
- See Also:
-
SHAPE_TYPE_SINGLE_POINT_OUTLINE
- See Also:
-
SHAPE_TYPE_UNIT_OUTLINE
- See Also:
-
justify_left
- See Also:
-
justify_center
- See Also:
-
justify_right
- See Also:
-
_Shape
-
-
Constructor Details
-
ShapeInfo
protected ShapeInfo() -
ShapeInfo
-
ShapeInfo
-
ShapeInfo
- Parameters:
shape
-shapeType
- ShapeInfo.SHAPE_TYPE_
-
-
Method Details
-
getShape
-
setShape
-
getTextLayout
-
setTextLayout
-
setModifierString
-
getModifierString
-
setModifierImage
-
getModifierImage
-
setModifierPosition
-
getModifierPosition
-
setModifierAngle
-
getModifierAngle
-
setTag
Object that can be used to store anything. Will not be looked at when rendering. Null by default- Parameters:
value
-
-
getTag
Object that can be used to store anything. Will not be looked at when rendering. Null by default- Returns:
-
getBounds
Gets bounds for the shapes. Incorporates AffineTransform if not null in the ShapeInfo object.- Returns:
-
setGlyphPosition
needed to draw Glyphs and TextLayouts- Parameters:
position
-
-
setGlyphPosition
needed to draw Glyphs and TextLayouts- Parameters:
position
-
-
getGlyphPosition
needed to draw Glyphs and TextLayouts- Returns:
-
setLineColor
-
getLineColor
-
setFillColor
-
getFillColor
-
getStroke
-
getTexturePaint
Deprecated.use getShader() -
setTexturePaint
Deprecated.use setShader() -
getFillStyle
-
setFillStyle
-
setStroke
-
setShapeType
For Internal Renderer use- Parameters:
value
- ShapeInfo.SHAPE_TYPE_
-
getShapeType
For Internal Renderer use- Returns:
- ShapeInfo.SHAPE_TYPE_
-
getPolylines
-
setPolylines
-
setShader
-
getShader
-
setPatternFillImage
-
getPatternFillImage
-
getTextJustify
-
setTextJustify
-