Package armyc2.c2sd.renderer.utilities
Class ShapeInfo
java.lang.Object
armyc2.c2sd.renderer.utilities.ShapeInfo
- Direct Known Subclasses:
Shape2
-
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 TextLayoutsdoublegetShape()intFor Internal Renderer usegetTag()Object that can be used to store anything.intvoidsetFillColor(Color value) voidsetFillStyle(int value) voidsetGlyphPosition(Point position) needed to draw Glyphs and TextLayoutsvoidsetGlyphPosition(Point2D position) needed to draw Glyphs and TextLayoutsvoidsetLineColor(Color value) voidsetModifierString(String value) voidsetModifierStringAngle(double value) voidsetModifierStringPosition(Point2D 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)
-
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
-
setModifierStringPosition
-
getModifierStringPosition
-
setModifierStringAngle
-
getModifierStringAngle
-
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
-
setTexturePaint
-
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
-