ikbs.tools.utils
Class Rectangle3D

java.lang.Object
  extended by ikbs.tools.utils.Rectangle3D

public class Rectangle3D
extends java.lang.Object

Draw a 3D rectangle on a Graphics area. The 3D effect can be either in, out, border only in or border only out.

Author:
Shaun Terry

Field Summary
static int BORDER_IN
           
static int BORDER_OUT
           
static int IN
           
static int OUT
           
 
Constructor Summary
Rectangle3D(java.awt.Color c, int X, int Y, int width, int height)
           
 
Method Summary
static int borderWidthOfMode(int m)
           
 void paint(java.awt.Graphics g)
           
 void setColor(java.awt.Color c)
           
 void setDrawingMode(int m)
           
 void setHeight(int h)
           
 void setWidth(int w)
           
 void setX(int x)
           
 void setY(int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IN

public static final int IN
See Also:
Constant Field Values

OUT

public static final int OUT
See Also:
Constant Field Values

BORDER_IN

public static final int BORDER_IN
See Also:
Constant Field Values

BORDER_OUT

public static final int BORDER_OUT
See Also:
Constant Field Values
Constructor Detail

Rectangle3D

public Rectangle3D(java.awt.Color c,
                   int X,
                   int Y,
                   int width,
                   int height)
Method Detail

setDrawingMode

public void setDrawingMode(int m)

setColor

public void setColor(java.awt.Color c)

borderWidthOfMode

public static int borderWidthOfMode(int m)

setWidth

public void setWidth(int w)

setHeight

public void setHeight(int h)

setX

public void setX(int x)

setY

public void setY(int y)

paint

public void paint(java.awt.Graphics g)