org.vizzini.ui.graphics
Interface IShapeCanvas

All Superinterfaces:
IStateful
All Known Implementing Classes:
AbstractShapeCanvas, ShapeCanvasAWT, ShapeCanvasJava3D, ShapeCanvasSwing

public interface IShapeCanvas
extends IStateful

Provides a canvas for drawing 3D shapes.

Since:
v0.2
Version:
v0.3
Author:
Jeffrey M. Thompson

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

add

void add(IShape shape)
Add the given shape.

Parameters:
shape - The shape to add.
Since:
v0.2

clear

void clear()
Clear all the shapes.

Since:
v0.2

getAnchorShapeGroupIterator

Iterator getAnchorShapeGroupIterator()
Return an iterator over the anchor shape group.

Since:
v0.3

getComponent

Component getComponent()
Return the GUI component.

Since:
v0.2

getMagnify

double getMagnify()
Return the magnification.

Since:
v0.2

getPerspectiveConstant

double getPerspectiveConstant()
Return the perspective constant.

Since:
v0.2

isViewPointLightUsed

boolean isViewPointLightUsed()
Returns:
Return isViewPointLightUsed.
Since:
v0.3

remove

void remove(IShape shape)
Remove the given shape.

Since:
v0.2

setBackground

void setBackground(Color color)
Set the background color.

Parameters:
color - The new color.
Since:
v0.2

setBounds

void setBounds(Rectangle r)
Set the bounds.

Since:
v0.2

setBounds

void setBounds(int x,
               int y,
               int w,
               int h)
Set the bounds.

Since:
v0.2

setMagnify

void setMagnify(double magnify)
Set the magnification.

Parameters:
magnify - The new magnification.
Since:
v0.2

setPerspectiveConstant

void setPerspectiveConstant(double d)
Set the perspective constant.

Since:
v0.2

setViewPointLightUsed

void setViewPointLightUsed(boolean isViewPointLightUsed)
Parameters:
isViewPointLightUsed - the isViewPointLightUsed to set
Since:
v0.3

setXRotation

void setXRotation(double rotation)
Set the rotation around the X axis in radians.

Parameters:
rotation - The new rotation in radians.
Since:
v0.2

setYRotation

void setYRotation(double rotation)
Set the rotation around the Y axis in radians.

Parameters:
rotation - The new rotation in radians.
Since:
v0.2

setZRotation

void setZRotation(double rotation)
Set the rotation around the Z axis in radians.

Parameters:
rotation - The new rotation in radians.
Since:
v0.2

update

void update()
Update the shapes on this canvas.

Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02