| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgraphics.AbstractGraphic
graphics.AbstractColorableGraphic
graphics.Rectangle3D
public class Rectangle3D
A Graphic that is in the shape of a rectangle with slight 3-dimensionsal shading. If the height and width are set to be the same thing, lo and behold, a square emerges.
| Constructor Summary | |
|---|---|
Rectangle3D()
Creates a new instance of the Rectangle3D Graphic with dimension (0,0) and location(0,0)  | 
|
| Method Summary | |
|---|---|
 void | 
actualPaint(java.awt.Graphics2D gs,
            java.awt.Point location,
            java.awt.Dimension dimension)
This method uses the Graphics2D object to paint a 3D rectangle onto the container at a specified point with a specified dimension  | 
 java.awt.Shape | 
getShape()
Should return a java.awt.Shape representation of this graphic.  | 
| Methods inherited from class graphics.AbstractColorableGraphic | 
|---|
getColor, paint, setColor | 
| Methods inherited from class graphics.AbstractGraphic | 
|---|
addMouseListener, addMouseMotionListener, contains, getBounds, getCenterLocation, getContainer, getDimension, getLocation, getMouseListeners, getMouseMotionListeners, getMovement, getRotation, intersects, move, rotate, setCenterLocation, setContainer, setDimension, setLocation, setMovement, setRotation | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface graphics.IGraphic | 
|---|
addMouseListener, addMouseMotionListener, contains, getBounds, getContainer, getMouseListeners, getMouseMotionListeners, getMovement, intersects, setContainer, setMovement | 
| Methods inherited from interface graphics.ISizeable | 
|---|
getDimension, setDimension | 
| Methods inherited from interface graphics.CenterLocatable | 
|---|
getCenterLocation, setCenterLocation | 
| Methods inherited from interface graphics.ILocatable | 
|---|
getLocation, move, setLocation | 
| Methods inherited from interface graphics.IRotatable | 
|---|
getRotation, rotate, setRotation | 
| Constructor Detail | 
|---|
public Rectangle3D()
| Method Detail | 
|---|
public void actualPaint(java.awt.Graphics2D gs,
                        java.awt.Point location,
                        java.awt.Dimension dimension)
gs - The Graphics2D object to do the paintinglocation - The point at which to paint the rectangledimension - The dimension of the rectangle to paintIGraphic.actualPaint(java.awt.Graphics2D,
      java.awt.Point, java.awt.Dimension)public java.awt.Shape getShape()
IGraphic
IGraphic.getShape()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||