org.PingOO.DLAI.lib.graph
Class TextLine.TextState

java.lang.Object
  |
  +--org.PingOO.DLAI.lib.graph.TextLine.TextState

protected class TextLine.TextState
extends java.lang.Object

A structure class used exclusively with the TextLine class. When the Text changes state (new font, new color, new offset) then this class holds the information plus the substring that the state pertains to.


Field Summary
(package private)  java.awt.Font f
           
(package private)  java.lang.StringBuffer s
           
(package private)  int x
           
(package private)  int y
           
 
Constructor Summary
TextLine.TextState()
           
 
Method Summary
 TextLine.TextState copyAll()
           
 TextLine.TextState copyState()
           
 int getAscent(java.awt.Graphics g)
           
 int getDescent(java.awt.Graphics g)
           
 int getHeight(java.awt.Graphics g)
           
 int getLeading(java.awt.Graphics g)
           
 int getMaxAscent(java.awt.Graphics g)
           
 int getMaxDescent(java.awt.Graphics g)
           
 int getWidth(java.awt.Graphics g)
           
 boolean isEmpty()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

f

java.awt.Font f

s

java.lang.StringBuffer s

x

int x

y

int y
Constructor Detail

TextLine.TextState

public TextLine.TextState()
Method Detail

copyAll

public TextLine.TextState copyAll()

copyState

public TextLine.TextState copyState()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isEmpty

public boolean isEmpty()

getWidth

public int getWidth(java.awt.Graphics g)

getHeight

public int getHeight(java.awt.Graphics g)

getAscent

public int getAscent(java.awt.Graphics g)

getDescent

public int getDescent(java.awt.Graphics g)

getMaxAscent

public int getMaxAscent(java.awt.Graphics g)

getMaxDescent

public int getMaxDescent(java.awt.Graphics g)

getLeading

public int getLeading(java.awt.Graphics g)