org.corpstein.image
Class TextLayer

java.lang.Object
  extended by org.corpstein.image.Layer
      extended by org.corpstein.image.TextLayer

public class TextLayer
extends Layer

Version:
$Revision: 1.3 $ $Date: 2005/04/24 21:06:09 $
Author:
David Corpstein

Field Summary
static java.awt.Color DEFAULT_BORDER_COLOR
           
static java.awt.Font DEFAULT_FONT
           
static java.awt.Color DEFAULT_FONT_COLOR
           
protected  java.awt.Font font
           
protected  java.awt.Color fontColor
           
protected  java.lang.String text
           
 
Fields inherited from class org.corpstein.image.Layer
background, border, borderColor, DEFAULT_BORDER, height, width, x, y, z
 
Constructor Summary
TextLayer(java.lang.String text)
           
 
Method Summary
 void draw(java.awt.Graphics2D g)
           
 java.awt.Font getFont()
           
 java.awt.Color getFontColor()
           
 void setFont(java.awt.Font font)
           
 void setFontColor(java.awt.Color fontColor)
           
 void setHeight(int height)
           
 void setText(java.lang.String text)
           
 void setWidth(int width)
           
 
Methods inherited from class org.corpstein.image.Layer
getBackground, getBorder, getBorderColor, getHeight, getWidth, getX, getY, getZ, setBackground, setBorder, setBorderColor, setX, setY, setZ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FONT

public static final java.awt.Font DEFAULT_FONT

DEFAULT_FONT_COLOR

public static final java.awt.Color DEFAULT_FONT_COLOR

DEFAULT_BORDER_COLOR

public static final java.awt.Color DEFAULT_BORDER_COLOR

text

protected java.lang.String text

font

protected java.awt.Font font

fontColor

protected java.awt.Color fontColor
Constructor Detail

TextLayer

public TextLayer(java.lang.String text)
Method Detail

draw

public void draw(java.awt.Graphics2D g)
Overrides:
draw in class Layer

getFont

public java.awt.Font getFont()

getFontColor

public java.awt.Color getFontColor()

setFont

public void setFont(java.awt.Font font)

setFontColor

public void setFontColor(java.awt.Color fontColor)

setHeight

public void setHeight(int height)
Overrides:
setHeight in class Layer

setText

public void setText(java.lang.String text)

setWidth

public void setWidth(int width)
Overrides:
setWidth in class Layer


Last update: 20050424 1651