Package armyc2.c5isr.renderer.utilities
Class ShapeInfo
java.lang.Object
armyc2.c5isr.renderer.utilities.ShapeInfo
- Direct Known Subclasses:
Shape2,ShapeInfo3D
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 Shapestatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets bounds for the shapes.intneeded to draw Glyphs and TextLayoutsLocation to draw modifier if you are able to use AnchorOffset(Pixel Offset).The pixel offset to use when placing the modifier with the point from getModifierAnchor()doubleLocation to draw modifier if you can't use pixel offsetsgetShape()intFor Internal Renderer usegetTag()Object that can be used to store anything.intDeprecated.use getShader()voidsetFillColor(Color value) voidsetFillStyle(int value) voidsetGlyphPosition(Point position) needed to draw Glyphs and TextLayoutsvoidsetGlyphPosition(Point2D position) needed to draw Glyphs and TextLayoutsvoidsetLineColor(Color value) voidsetModifierAnchor(Point2D value) voidsetModifierAnchorOffset(Point2D value) voidsetModifierAngle(double value) voidsetModifierImage(Bitmap value) voidsetModifierPosition(Point2D value) voidsetModifierString(String value) voidvoidsetPolylines(ArrayList<ArrayList<Point2D>> value) voidsetShader(BitmapShader value) voidvoidsetShapeType(int value) For Internal Renderer usevoidvoidObject that can be used to store anything.voidsetTextJustify(int value) voidsetTextLayout(TextLayout value) voidsetTexturePaint(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
Location to draw modifier if you can't use pixel offsets- Returns:
-
setModifierAnchor
-
getModifierAnchor
Location to draw modifier if you are able to use AnchorOffset(Pixel Offset). This keeps the modifier near the symbol when zooming in.- Returns:
-
setModifierAnchorOffset
-
getModifierAnchorOffset
The pixel offset to use when placing the modifier with the point from getModifierAnchor()- Returns:
-
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
-