|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.piccolox.nodes.PStyledText.SegmentInfo
protected static class PStyledText.SegmentInfo
Encapsulates information about a particular LineSegment.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
PStyledText.SegmentInfo()
Construct a segment with null properties. |
|
| Method Summary | |
|---|---|
void |
applyFont(Graphics2D g2)
Applies this particular SegmentInfo's font to the graphics object passed in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public TextLayout layout
public Font font
public Color foreground
public Color background
public Boolean underline
| Constructor Detail |
|---|
public PStyledText.SegmentInfo()
| Method Detail |
|---|
public void applyFont(Graphics2D g2)
g2 - will have the font of this segment applied
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||