graph
Class TextState

java.lang.Object
  extended bygraph.TextState

class 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
TextState()
           
 
Method Summary
 TextState copyAll()
           
 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, wait, wait, wait
 

Field Detail

f

java.awt.Font f

s

java.lang.StringBuffer s

x

int x

y

int y
Constructor Detail

TextState

public TextState()
Method Detail

copyAll

public TextState copyAll()

copyState

public TextState copyState()

toString

public java.lang.String toString()

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)