The ShapeGraphicAttribute class is an implementation of
GraphicAttribute that draws shapes in a TextLayout.
GraphicAttribute
public void
draw
(Graphics2D graphics, float x, float y)
[Specified in GraphicAttribute]
GraphicAttribute at the specified
location.
public Rectangle2D
getBounds
()
[Overrides GraphicAttribute]
Returns a Rectangle2D that encloses all of the
bits drawn by this ShapeGraphicAttribute relative to
the rendering position.
publicfinalstatic
int BOTTOM_ALIGNMENT
= "-2"
[Inherited From GraphicAttribute]
publicfinalstatic
int CENTER_BASELINE
= "1"
[Inherited From GraphicAttribute]
publicfinalstatic
int HANGING_BASELINE
= "2"
[Inherited From GraphicAttribute]
publicfinalstatic
int ROMAN_BASELINE
= "0"
[Inherited From GraphicAttribute]
publicfinalstatic
boolean STROKE
= "true"
publicfinalstatic
int TOP_ALIGNMENT
= "-1"
[Inherited From GraphicAttribute]