|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.swing.graphics.AbstractPanelArtist org.freehep.graphics3d.PanelArtist3D
A panel artists which handles 3D projections and manipulations with the mouse. It uses an ArcBall for its rotations.
Constructor Summary | |
PanelArtist3D()
Creates a standard 3D panel artist, with mouse interactions enabled |
Method Summary | |
void |
abortDraw()
This method aborts any drawing which is being done in another thread. |
void |
add(DrawableProvider provider)
Adds a drawable provider to the list |
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 |
boolean |
drawPanel()
Applies the current ArcBall matrix to the model matrix and iterates over all the drawable providers. |
JComponent |
getControlPanel()
This method returns a JComponent which contains controls for the given PanelArtist. |
String |
getDescription()
This returns a descriptive string for this PanelArtist. |
Object |
getEventData()
This method returns the data sample which is currently being used. |
StackedPanel |
getStackedPanel()
Return the StackedPanel which is being controlled. |
void |
graphicalSelectionMade(GraphicalSelectionEvent event)
Called when the user makes a graphical selection. |
void |
panelResized()
This method is called when the size of the StackedPanel has changed. |
void |
remove(DrawableProvider provider)
removes a drawable procvider from the list |
void |
setEventData(Object data)
This method sets which data sample should be used. |
void |
setStackedPanel(StackedPanel panel)
Set the StackedPanel that this PanelArtist will control. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PanelArtist3D()
Method Detail |
public String getDescription()
PanelArtist
public void setEventData(Object data)
PanelArtist
data
- data sample to usepublic Object getEventData()
PanelArtist
public void setStackedPanel(StackedPanel panel)
PanelArtist
panel
- StackedPanel to controlpublic StackedPanel getStackedPanel()
PanelArtist
public void abortDraw()
PanelArtist
public JComponent getControlPanel()
PanelArtist
public void graphicalSelectionMade(GraphicalSelectionEvent event)
GraphicalSelectionListener
public void add(DrawableProvider provider)
public void remove(DrawableProvider provider)
public boolean drawPanel()
protected void drawObjects(VectorGraphics g, Enumeration e)
protected void drawObject(VectorGraphics g, Object obj)
public void panelResized()
PanelArtist
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |