getTextShape

Builds a shape object to wrap text

Return

Parameters

g2d

the Graphic object for drawing

str

text to wrap

font

the draw font

tx

the drawing transform, text rotation and translation