method:layoutText(javax.swing.plaf.synth.SynthContext,java.awt.FontMetrics,java.lang.String,javax.swing.Icon,int,int,int,int,java.awt.Rectangle,java.awt.Rectangle,java.awt.Rectangle,int) [NONE]
|
-
layoutText
public String layoutText(SynthContext ss,
FontMetrics fm,
String text,
Icon icon,
int hAlign,
int vAlign,
int hTextPosition,
int vTextPosition,
Rectangle viewR,
Rectangle iconR,
Rectangle textR,
int iconTextGap)
Lays out text and an icon returning, by reference, the location to place the icon and text.
-
Parameters:
-
ss - SynthContext
-
fm - FontMetrics for the Font to use, this may be ignored
-
text - Text to layout
-
icon - Icon to layout
-
hAlign - horizontal alignment
-
vAlign - vertical alignment
-
hTextPosition - horizontal text position
-
vTextPosition - vertical text position
-
viewR - Rectangle to layout text and icon in.
-
iconR - Rectangle to place icon bounds in
-
textR - Rectangle to place text in
-
iconTextGap - gap between icon and text
-
Returns:
- by reference, the location to place the icon and text.
|
|