org.corpstein.image
Class Layer
java.lang.Object
org.corpstein.image.Layer
- Direct Known Subclasses:
- Backdrop, Background, Bars, Border, ImageLayer, Key, Lines, Scale, Slices, TextLayer, Title, XAxisLabels, YAxisLabels
public class Layer
- extends java.lang.Object
Layer is a superclass for image objects that have the following properties:
- location: x and y coordinates of the layer in the image
- z-index: used to determine how layers overlap
- size: width and height of the layer
- background: color used to paint the background of the layer (optional)
- border: if true, a border is drawn around the layer
- border color: the color to draw the border with (default Color.BLACK)
- Version:
- $Revision: 1.4 $ $Date: 2005/04/24 20:54:57 $
- Author:
- David Corpstein
Constructor Summary |
Layer()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BORDER_COLOR
public static final java.awt.Color DEFAULT_BORDER_COLOR
DEFAULT_BORDER
public static final boolean DEFAULT_BORDER
- See Also:
- Constant Field Values
x
protected int x
y
protected int y
z
protected int z
width
protected int width
height
protected int height
background
protected java.awt.Color background
border
protected boolean border
borderColor
protected java.awt.Color borderColor
Layer
public Layer()
draw
public void draw(java.awt.Graphics2D g)
getBackground
public java.awt.Color getBackground()
getBorder
public boolean getBorder()
getBorderColor
public java.awt.Color getBorderColor()
getHeight
public int getHeight()
getWidth
public int getWidth()
getX
public int getX()
getY
public int getY()
getZ
public int getZ()
setBackground
public void setBackground(java.awt.Color background)
setBorder
public void setBorder(boolean border)
setBorderColor
public void setBorderColor(java.awt.Color borderColor)
setHeight
public void setHeight(int height)
setWidth
public void setWidth(int width)
setX
public void setX(int x)
setY
public void setY(int y)
setZ
public void setZ(int z)
Last update: 20050424 1651