org.corpstein.image
Class TextLayer
java.lang.Object
org.corpstein.image.Layer
org.corpstein.image.TextLayer
public class TextLayer
- extends Layer
- Version:
- $Revision: 1.3 $ $Date: 2005/04/24 21:06:09 $
- Author:
- David Corpstein
Constructor Summary |
TextLayer(java.lang.String text)
|
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 |
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
TextLayer
public TextLayer(java.lang.String text)
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