org.vizzini.ui.graphics.shape
Class Box
java.lang.Object
org.vizzini.ui.graphics.shape.AbstractShape
org.vizzini.ui.graphics.shape.Box
- All Implemented Interfaces:
- Comparable, IStateful, IShape
public class Box
- extends AbstractShape
Provides a box shape.
- Since:
- v0.2
- Version:
- v0.3
- Author:
- Jeffrey M. Thompson
Constructor Summary |
Box(double width,
double height,
double depth)
Construct this object with the given parameters. |
Method Summary |
protected void |
drawOnSolid(Graphics g,
double magnify)
Draw a solid representation of this shape on the given graphics with the
given magnification. |
protected void |
drawOnWireframe(Graphics g,
double magnify)
Draw a wireframe representation of this shape on the given graphics with
the given magnification. |
Methods inherited from class org.vizzini.ui.graphics.shape.AbstractShape |
add, clear, compareTo, computeCenteredScreenPoints, computeNormalZComponent, computeScreenCenter, computeScreenPoints, contains, createState, createStatefulSupport, drawOn, drawOn, getAbsoluteState, getBounds, getChildren, getColor, getColorForIntensity, getDepth, getDimensions, getHeight, getMinDimension, getName, getScreenCenter, getShapeGroup, getState, getStatefulParent, getTextureFilepath, getWidth, isInFrontOf, isLightSource, isTextureFilepathSet, isVisible, isWireframe, remove, setColor, setLightSource, setName, setStatefulParent, setTextureFilepath, setVisible, setWireframe, toString |
Box
public Box(double width,
double height,
double depth)
- Construct this object with the given parameters.
- Parameters:
width
- Width.height
- Height.depth
- Depth.- Since:
- v0.2
drawOnSolid
protected void drawOnSolid(Graphics g,
double magnify)
- Draw a solid representation of this shape on the given graphics with the
given magnification.
- Overrides:
drawOnSolid
in class AbstractShape
- Parameters:
g
- The graphics.magnify
- The magnification.- Since:
- v0.2
drawOnWireframe
protected void drawOnWireframe(Graphics g,
double magnify)
- Draw a wireframe representation of this shape on the given graphics with
the given magnification.
- Overrides:
drawOnWireframe
in class AbstractShape
- Parameters:
g
- The graphics.magnify
- The magnification.- Since:
- v0.2
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |