
Return a
Shape that represents the region that
this
GraphicAttribute renders. This is used when a
TextLayout is requested to return the outline of the text.
The (untransformed) shape must not extend outside the rectangular
bounds returned by
getBounds.
The default implementation returns the rectangle returned by
GraphicAttribute.getBounds(), transformed by the provided
AffineTransform if present.
Returns:
a
Shape representing this graphic attribute,
suitable for stroking or filling.
Parameters:
-
tx - an optional {@link AffineTransform} to apply to the
outline of this
GraphicAttribute. This can be null.
Since:
1.6