|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IShapeCanvas
Provides a canvas for drawing 3D shapes.
Method Summary | |
---|---|
void |
add(IShape shape)
Add the given shape. |
void |
clear()
Clear all the shapes. |
Iterator |
getAnchorShapeGroupIterator()
Return an iterator over the anchor shape group. |
Component |
getComponent()
Return the GUI component. |
double |
getMagnify()
Return the magnification. |
double |
getPerspectiveConstant()
Return the perspective constant. |
boolean |
isViewPointLightUsed()
|
void |
remove(IShape shape)
Remove the given shape. |
void |
setBackground(Color color)
Set the background color. |
void |
setBounds(int x,
int y,
int w,
int h)
Set the bounds. |
void |
setBounds(Rectangle r)
Set the bounds. |
void |
setMagnify(double magnify)
Set the magnification. |
void |
setPerspectiveConstant(double d)
Set the perspective constant. |
void |
setViewPointLightUsed(boolean isViewPointLightUsed)
|
void |
setXRotation(double rotation)
Set the rotation around the X axis in radians. |
void |
setYRotation(double rotation)
Set the rotation around the Y axis in radians. |
void |
setZRotation(double rotation)
Set the rotation around the Z axis in radians. |
void |
update()
Update the shapes on this canvas. |
Methods inherited from interface org.vizzini.math.IStateful |
---|
getAbsoluteState, getState, getStatefulParent, setStatefulParent |
Method Detail |
---|
void add(IShape shape)
shape
- The shape to add.void clear()
Iterator getAnchorShapeGroupIterator()
Component getComponent()
double getMagnify()
double getPerspectiveConstant()
boolean isViewPointLightUsed()
void remove(IShape shape)
void setBackground(Color color)
color
- The new color.void setBounds(Rectangle r)
void setBounds(int x, int y, int w, int h)
void setMagnify(double magnify)
magnify
- The new magnification.void setPerspectiveConstant(double d)
void setViewPointLightUsed(boolean isViewPointLightUsed)
isViewPointLightUsed
- the isViewPointLightUsed to setvoid setXRotation(double rotation)
rotation
- The new rotation in radians.void setYRotation(double rotation)
rotation
- The new rotation in radians.void setZRotation(double rotation)
rotation
- The new rotation in radians.void update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |