|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.vizzini.ui.graphics.AbstractViewerSwing
org.vizzini.ui.graphics.ObjectViewerJava3D
class ObjectViewerJava3D
Provides a Java 3D object viewer. An object viewer just allows rotation of the anchor by use of the scroll bars. The object cannot be moved, and remains in the center of the view.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.vizzini.ui.graphics.AbstractViewerSwing |
---|
AbstractViewerSwing.SelectShapeAction |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class org.vizzini.ui.graphics.AbstractViewerSwing |
---|
_canvas, _xRotation, _yRotation, _zRotation |
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 org.vizzini.ui.graphics.IViewer |
---|
MAGNIFICATION_FACTOR |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ObjectViewerJava3D()
|
Method Summary | |
---|---|
void |
addMouseListener(MouseListener listener)
Add the given mouse listener. |
void |
addStarfieldBackground(int starCount)
Add a starfield background. |
protected void |
configureShapeMenu(JMenu shapeMenu)
Configure the shape menu. |
JPopupMenu |
createPopupMenu()
Create a new popup menu. |
protected IShapeCanvas |
createShapeCanvas()
Create a new shape canvas of the appropriate type. |
protected AdjustmentListener |
createXAdjustmentListener()
Create a X adjustment listener. |
protected AdjustmentListener |
createYAdjustmentListener()
Create a Y adjustment listener. |
protected AdjustmentListener |
createZAdjustmentListener()
Create a Z adjustment listener. |
protected void |
moveViewPointToShape(IShape shape)
Move the view point to the given shape. |
void |
removeMouseListener(MouseListener listener)
Remove the given mouse listener. |
void |
setVisible(boolean isVisible)
Set the visibility of this object. |
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 |
---|
ObjectViewerJava3D()
Method Detail |
---|
public void addMouseListener(MouseListener listener)
addMouseListener
in class Component
public void addStarfieldBackground(int starCount)
starCount
- Number of stars to use.public JPopupMenu createPopupMenu()
createPopupMenu
in interface IViewerSwing
createPopupMenu
in class AbstractViewerSwing
public void removeMouseListener(MouseListener listener)
removeMouseListener
in class Component
public void setVisible(boolean isVisible)
setVisible
in class JComponent
protected void configureShapeMenu(JMenu shapeMenu)
configureShapeMenu
in class AbstractViewerSwing
protected IShapeCanvas createShapeCanvas()
createShapeCanvas
in class AbstractViewerSwing
protected AdjustmentListener createXAdjustmentListener()
createXAdjustmentListener
in class AbstractViewerSwing
protected AdjustmentListener createYAdjustmentListener()
createYAdjustmentListener
in class AbstractViewerSwing
protected AdjustmentListener createZAdjustmentListener()
createZAdjustmentListener
in class AbstractViewerSwing
protected void moveViewPointToShape(IShape shape)
moveViewPointToShape
in class AbstractViewerSwing
shape
- Shape.
|
||||||||||
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 |