edu.umd.cs.piccolox.nodes
Class PStyledText.SegmentInfo

java.lang.Object
  extended by edu.umd.cs.piccolox.nodes.PStyledText.SegmentInfo
Enclosing class:
PStyledText

protected static class PStyledText.SegmentInfo
extends Object

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

layout

public TextLayout layout
Text Layout applied to the segment.


font

public Font font
Font being used to render the segment.


foreground

public Color foreground
Foreground (text) color of the segment.


background

public Color background
Background color of the segment.


underline

public Boolean underline
Whether the segment is underlined.

Constructor Detail

PStyledText.SegmentInfo

public PStyledText.SegmentInfo()
Construct a segment with null properties.

Method Detail

applyFont

public void applyFont(Graphics2D g2)
Applies this particular SegmentInfo's font to the graphics object passed in.

Parameters:
g2 - will have the font of this segment applied


Copyright © 1995-2010 Piccolo2D. All Rights Reserved.