org.jvnet.substance.painter.text
Class AbstractTextPainter.TextLineInfo

java.lang.Object
  extended by org.jvnet.substance.painter.text.AbstractTextPainter.TextLineInfo
Enclosing class:
AbstractTextPainter

public static class AbstractTextPainter.TextLineInfo
extends java.lang.Object

Information on a single text line.

Author:
Kirill Grouchnikov

Field Summary
 java.awt.Rectangle clip
          Clipping rectangle for the text.
 java.awt.Color color
          Color for the text.
 java.awt.Font font
          Font for the text.
 int mnemonicIndex
          Mnemonic index.
 java.lang.String text
          The text itself.
 java.awt.Rectangle textRect
          Text rectangle.
 java.awt.geom.AffineTransform transform
          Transformation for the text.
 
Constructor Summary
AbstractTextPainter.TextLineInfo(java.awt.Rectangle textRect, java.lang.String text, int mnemonicIndex, java.awt.Font font, java.awt.Color color, java.awt.Rectangle clip, java.awt.geom.AffineTransform transform)
          Creates a new text line info object.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textRect

public java.awt.Rectangle textRect
Text rectangle.


text

public java.lang.String text
The text itself.


mnemonicIndex

public int mnemonicIndex
Mnemonic index. Can be -1 if no mnemonic.


font

public java.awt.Font font
Font for the text.


color

public java.awt.Color color
Color for the text.


clip

public java.awt.Rectangle clip
Clipping rectangle for the text.


transform

public java.awt.geom.AffineTransform transform
Transformation for the text.

Constructor Detail

AbstractTextPainter.TextLineInfo

public AbstractTextPainter.TextLineInfo(java.awt.Rectangle textRect,
                                        java.lang.String text,
                                        int mnemonicIndex,
                                        java.awt.Font font,
                                        java.awt.Color color,
                                        java.awt.Rectangle clip,
                                        java.awt.geom.AffineTransform transform)
Creates a new text line info object.

Parameters:
textRect - Text rectangle.
text - The text itself.
mnemonicIndex - Mnemonic index. Can be -1 if no mnemonic.
font - Font for the text.
color - Color for the text.
clip - Clipping rectangle for the text.