com.stevesoft.pat.apps
Class ColorLine

java.lang.Object
  |
  +--com.stevesoft.pat.apps.ColorLine

public class ColorLine
extends java.lang.Object


Constructor Summary
ColorLine()
           

 
Method Summary
 void add(java.awt.Color c, java.lang.String s)
          Add a string s with color c to this line of text.
 java.lang.Object clone()
           
 java.awt.Dimension getSize(java.awt.FontMetrics fm)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ColorLine

public ColorLine()
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

add

public void add(java.awt.Color c,
                java.lang.String s)
Add a string s with color c to this line of text. When you've built up a line of text, simply add it to the ColorText object.

getSize

public java.awt.Dimension getSize(java.awt.FontMetrics fm)