|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.freehep.swing.graphics.BackedPanel | +--org.freehep.graphics3d.Canvas3D
A canvas which handles 3D projections and manipulations with the mouse. It uses an ArcBall for its rotations.
Field Summary |
Fields inherited from class org.freehep.swing.graphics.BackedPanel |
backingImage, clip |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Canvas3D()
Creates a standard 3D canvas, with mouse interactions enabled |
Method Summary | |
void |
add(DrawableProvider provider)
Adds a drawable provider to the list |
void |
draw()
Applies the current ArcBall matrix to the model matrix and iterates over all the drawable providers. |
protected void |
drawObject(VectorGraphics g,
Object obj)
Draws/handles a single object. |
protected void |
drawObjects(VectorGraphics g,
Enumeration e)
Iterates over al drawable providers and calls drawObject on them |
ArcBall |
getArcBall()
|
void |
remove(DrawableProvider provider)
removes a drawable procvider from the list |
void |
repaint()
Delegates to draw. |
void |
setBounds(int x,
int y,
int width,
int height)
Changes the bounds of the window |
Methods inherited from class org.freehep.swing.graphics.BackedPanel |
getGraphics, getLock, paintBorder, paintChildren, paintComponent, printBorder, printChildren, printComponent, reshape, setBorder |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Canvas3D()
Method Detail |
public ArcBall getArcBall()
public void add(DrawableProvider provider)
add
in interface DrawableHandler
public void remove(DrawableProvider provider)
remove
in interface DrawableHandler
public void repaint()
repaint
in class Component
public void draw()
protected void drawObjects(VectorGraphics g, Enumeration e)
protected void drawObject(VectorGraphics g, Object obj)
public void setBounds(int x, int y, int width, int height)
setBounds
in class BackedPanel
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |