A box containing a text block.
draw
public void draw(Graphics2D g2,
float x,
float y,
RectangleAnchor anchor)
Draws the text box.
g2
- the graphics device.x
- the x-coordinate.y
- the y-coordinate.anchor
- the anchor point.
equals
public boolean equals(Object obj)
Tests this object for equality with an arbitrary object.
obj
- the object to test against (null
permitted).
getHeight
public double getHeight(Graphics2D g2)
Returns the height of the text box.
g2
- the graphics device.
- The height (in Java2D units).
getShadowXOffset
public double getShadowXOffset()
Returns the x-offset for the shadow effect.
getShadowYOffset
public double getShadowYOffset()
Returns the y-offset for the shadow effect.
hashCode
public int hashCode()
Returns a hash code for this object.
setOutlinePaint
public void setOutlinePaint(Paint paint)
Sets the outline paint.
setOutlineStroke
public void setOutlineStroke(Stroke stroke)
Sets the outline stroke.
setShadowPaint
public void setShadowPaint(Paint paint)
Sets the shadow paint.
setShadowXOffset
public void setShadowXOffset(double offset)
Sets the x-offset for the shadow effect.
offset
- the offset (in Java2D units).
setShadowYOffset
public void setShadowYOffset(double offset)
Sets the y-offset for the shadow effect.
offset
- the offset (in Java2D units).