org.vizzini.ui.graphics
Class ShapeCanvasSwing

java.lang.Object
  extended by org.vizzini.ui.graphics.AbstractShapeCanvas
      extended by org.vizzini.ui.graphics.ShapeCanvasSwing
All Implemented Interfaces:
IStateful, IShapeCanvas

 class ShapeCanvasSwing
extends AbstractShapeCanvas

Provides a Swing canvas for drawing 3D shapes.

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

Field Summary
 
Fields inherited from class org.vizzini.ui.graphics.AbstractShapeCanvas
_canvas, _canvasCenter, _isDrawn
 
Constructor Summary
ShapeCanvasSwing()
           
 
Method Summary
protected  Component createCanvas()
          Create the appropriate canvas.
 void update()
          Update the shapes on this canvas.
 
Methods inherited from class org.vizzini.ui.graphics.AbstractShapeCanvas
add, clear, computeQuaternion, getAbsoluteState, getAnchor, getAnchorShapeGroupIterator, getComponent, getMagnify, getPerspectiveConstant, getState, getStatefulParent, getXRotation, getYRotation, getZRotation, isViewPointLightUsed, myPaint, orientationChanged, remove, setBackground, setBounds, setBounds, setMagnify, setPerspectiveConstant, setQuaternion, setStatefulParent, setViewPointLightUsed, setXRotation, setYRotation, setZRotation, sizeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeCanvasSwing

ShapeCanvasSwing()
Method Detail

update

public void update()
Update the shapes on this canvas. Extends the super method to repaint the canvas.

Specified by:
update in interface IShapeCanvas
Overrides:
update in class AbstractShapeCanvas
Since:
v0.3

createCanvas

protected Component createCanvas()
Create the appropriate canvas.

Specified by:
createCanvas in class AbstractShapeCanvas
Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02