protected static class PStyledText.SegmentInfo extends Object
Modifier and Type | Field and Description |
---|---|
Color |
background
Background color of the segment.
|
Font |
font
Font being used to render the segment.
|
Color |
foreground
Foreground (text) color of the segment.
|
TextLayout |
layout
Text Layout applied to the segment.
|
Boolean |
underline
Whether the segment is underlined.
|
Constructor and Description |
---|
PStyledText.SegmentInfo()
Construct a segment with null properties.
|
Modifier and Type | Method and Description |
---|---|
void |
applyFont(Graphics2D g2)
Applies this particular SegmentInfo's font to the graphics object
passed in.
|
public TextLayout layout
public Font font
public Color foreground
public Color background
public Boolean underline
public PStyledText.SegmentInfo()
public void applyFont(Graphics2D g2)
g2
- will have the font of this segment appliedCopyright © 1995-2012 Piccolo2D. All Rights Reserved.