Package mgui.interfaces.graphics
Class InterfaceGraphic3D
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
- All Implemented Interfaces:
 java.awt.event.ActionListener,java.awt.event.ComponentListener,java.awt.event.KeyListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.lang.Comparable<InterfaceGraphic<Tool3D>>,java.util.EventListener,javax.accessibility.Accessible,AttributeListener,AttributeObject,DisplayListener,AxesListener,InterfaceMouseObject,InterfaceObject,CategoryObject,Camera3DListener,MapListener,PopupMenuObject,NamedObject,ShapeModel3DListener,ShapeListener,Toolable<Tool3D>,ToolListener,TreeObject,CleanableObject,XMLObject,IconObject
public class InterfaceGraphic3D extends InterfaceGraphic<Tool3D> implements ShapeModel3DListener, ShapeListener, Camera3DListener, java.awt.event.ActionListener, AxesListener
Interface class for Java3D display. Each InterfaceGraphic3D object contains its own
 SimpleUniverse object for display of Shape3DInt objects. Shape3DInt objects are
 represented as ShapeSceneNode objects (i.e., Shape2DSceneNode and Shape3DSceneNode),
 which should be specified by-reference and be updateable.
 
 todo: Allow for multiple directional light sources
- Since:
 - 1.0
 - Version:
 - 1.0
 - Author:
 - Andrew Reid
 - See Also:
 - Serialized Form
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class mgui.interfaces.graphics.InterfaceGraphic
InterfaceGraphic.GraphicTypeNested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategyNested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType - 
Field Summary
Fields Modifier and Type Field Description org.jogamp.java3d.AmbientLightambientLightprotected Axes3Daxesprotected org.jogamp.java3d.TransformGroupaxes_transformorg.jogamp.java3d.BackgroundbackgroundInterfaceCanvas3Dcanvas3DShapeSceneNodecurrentSceneShapeSelectionSetcurrentSelectionShapeSet3DIntcurrentSetTool3DcurrentToolTool3DdefaultToolprotected org.jogamp.java3d.BranchGrouplightNodejava.util.ArrayList<org.jogamp.java3d.DirectionalLight>lightsorg.jogamp.java3d.DirectionalLightlightSourceprotected org.jogamp.vecmath.Matrix3dM3_tempprotected floatmin_screen_dimprotected ShapeModel3Dmodelorg.jogamp.java3d.utils.pickfast.PickCanvaspickCanvasGeomorg.jogamp.java3d.utils.pickfast.PickCanvaspickCanvasNodeprotected org.jogamp.java3d.Transform3DR_tempprotected org.jogamp.java3d.Transform3DR_temp2protected org.jogamp.java3d.BranchGrouptemp_popup_shapeorg.jogamp.java3d.BoundingSpheretempBoundsprotected ToolBehavior3DAdaptertoolInput3DAdapterorg.jogamp.java3d.utils.universe.ViewingPlatformviewingPlatformFields inherited from class mgui.interfaces.graphics.InterfaceGraphic
excludeToSelection, graphic_listeners, init_once, is_snapshot, last_screen_shot_file, post_render_tasks, status_listeners, status_map, theMap, title_panel, toolInputAdapterFields inherited from class mgui.interfaces.InterfacePanel
attributes, displayListeners, isDestroyed, last_click_point, statusBar, tree_nodes, treeNode, typeFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH - 
Constructor Summary
Constructors Constructor Description InterfaceGraphic3D()InterfaceGraphic3D(java.lang.String theName)InterfaceGraphic3D(ShapeModel3D m) - 
Method Summary
Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidaddMouseListener(java.awt.event.MouseListener m)voidaddMouseMotionListener(java.awt.event.MouseMotionListener m)voidaddMouseWheelListener(java.awt.event.MouseWheelListener m)voidattributeUpdated(AttributeEvent e)Called when an Attribute's value has been updated.voidaxesChanged(AxesEvent event)voidcameraAngleChanged(CameraEvent e)voidcameraChanged(CameraEvent e)voidcenterOnPoint(org.jogamp.vecmath.Point3f p)voidcomponentResized(java.awt.event.ComponentEvent e)Resize axes on window resize, after given delay (to avoid excessive updates)voiddestroy()Destroy this object (prepare it to be removed from memory)booleangetAutoCenter()floatgetAxesSize()floatgetBoundsScale()Camera3DgetCamera()double[]getClipDistances()Tool3DgetCurrentTool()javax.swing.tree.DefaultMutableTreeNodegetDisplayObjectsNode()Returns a tree node containing a list of objects displayable by a class of InterfaceGraphic.java.lang.StringgetDTD()Returns the Data Type Declaration (DTD) for this object's XML representationInterfaceCanvas3DgetInterfaceCanvas3D()java.lang.StringgetLocalName()Returns the local name associated with this XML object.Map3DgetMap3D()protected org.jogamp.vecmath.Vector2fgetMinScreenScale()protected floatgetMinScreenScaleHeight()protected floatgetMinScreenScaleWidth()ShapeModel3DgetModel()javax.swing.IcongetObjectIcon()Returns theIconassociated with this object.org.jogamp.java3d.utils.pickfast.PickCanvasgetPickCanvasGeom()org.jogamp.java3d.utils.pickfast.PickCanvasgetPickCanvasNode()protected floatgetPickTolerance()InterfacePopupMenugetPopupMenu()Produces and returns a popup menu for this object.java.lang.StringgetShortXML(int tab)Returns a short XML representation of this object.booleangetShowAxes()java.lang.ObjectgetSource()Returns the source object for this panel; returnsnullif no source object is set.java.lang.StringgetTitle()ToolgetTool()booleangetToolLock()org.jogamp.java3d.ViewgetView()org.jogamp.java3d.utils.universe.ViewingPlatformgetViewingPlatform()java.lang.StringgetXML()Returns this object's XML representation as a single string.java.lang.StringgetXML(int tab)Returns this object's XML representation as a single string.java.lang.StringgetXMLSchema()Returns the XML schema for this object's XML representationvoidhandlePopupEvent(java.awt.event.ActionEvent e)Handles an event on this object's popup menu.voidhandleXMLElementEnd(java.lang.String localName)Handles the end of an XML element.voidhandleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)Handles the start of an XML element.voidhandleXMLString(java.lang.String s)Handles a string within an XML element.voidinit()booleanisAutoBackClip()booleanisDestroyed()Test whether this object has been destroyedbooleanisToolable(Tool tool)Tests whether this object is toolable bytoolvoidpostRender()Executes any post-rendering tasks, called through thepostSwapmethod ofPostRenderingCanvas3D.voidrepaintAxes()voidsetAutoCenter(boolean b)voidsetAxes(Axes3D axes)voidsetAxesSize(float size)voidsetBackgroundColour(java.awt.Color c)voidsetBoundsScale(float scale)voidsetCurrentSelection2D(ShapeSelectionSet selSet, boolean exclude)booleansetCurrentTool(Tool3D thisTool)booleansetDefaultTool(Tool3D tool)voidsetMap(Map map)voidsetModel(ShapeModel3D m)protected voidsetPickTolerance(float d)protected voidsetPopupShape(org.jogamp.java3d.BranchGroup shape)voidsetShowAxes(boolean b)booleansetSource(java.lang.Object source)Sets the source object for this panel.voidsetToolLock(boolean val)voidsetTreeNode(InterfaceTreeNode treeNode)Sets the children for this node'sInterfaceTreeNode.voidshapeModelChanged(ShapeModelEvent event)Fired when aShapeModel3Dis changed in some way.voidshapeUpdated(ShapeEvent e)A shape that this object is listening to has been updated.voidtoolDeactivated(ToolEvent e)java.lang.StringtoString()voidupdateAxes()voidupdateBackground()protected voidupdateClipDistances()voidupdateDisplay()Requests this panel to update its display.voidupdateScene()voidupdateScene(ShapeSet3DInt shapeSet)intupdateStatusBox(InterfaceGraphicTextBox box, java.awt.event.MouseEvent e)Notifies this window to update the given status text box with information as it sees fit.booleanwriteSnapshotToFile(java.io.File file)Temp screenshot while off screen rendering doesn't work...protected booleanwriteToFile(java.awt.image.BufferedImage image, java.io.File file)booleanwriteToFileBuffer(java.io.File file)Writes this window to a png image file.voidwriteXML(int tab, java.io.Writer writer, XMLOutputOptions options, ProgressUpdater progress_bar)Writes the XML representation of this object to file.Methods inherited from class mgui.interfaces.graphics.InterfaceGraphic
addGraphicListener, addMouseListener, addStatusListener, compareTo, fireGraphicListeners, getBackgroundColour, getMap, getMouseCoords, getName, getPopupLength, getSourceTypes, getStatusMessages, getTreeNode, getType, getTypeStr, isDisplayable, mapUpdated, mouseDragged, mouseMoved, removeGraphicListener, removeMouseListener, removeMouseObject, setExcludeToSelection, setName, setStatusBar, setTool, toolStateChanged, writeXML, writeXMLMethods inherited from class mgui.interfaces.InterfacePanel
_init, addDisplayListener, clean, cleanUpPanel, collapseAllCategories, collapseCategory, collapseOtherCategories, componentHidden, componentMoved, componentShown, expandAllCategories, expandCategory, fireDisplayListeners, getAttribute, getAttributes, getAttributeValue, getLocalAttributes, getPopupMenu, getTreeLabel, getType, issueTreeNode, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, removeDisplayListener, setAttribute, setAttributes, setType, showPanel, showPopupMenu, updateDisplays, updateFromDialog, updateTreeNodesMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Field Details
- 
currentTool
 - 
defaultTool
 - 
currentSelection
 - 
tempBounds
public org.jogamp.java3d.BoundingSphere tempBounds - 
canvas3D
 - 
ambientLight
public org.jogamp.java3d.AmbientLight ambientLight - 
lights
public java.util.ArrayList<org.jogamp.java3d.DirectionalLight> lights - 
lightSource
public org.jogamp.java3d.DirectionalLight lightSource - 
currentScene
 - 
currentSet
 - 
viewingPlatform
public org.jogamp.java3d.utils.universe.ViewingPlatform viewingPlatform - 
pickCanvasGeom
public org.jogamp.java3d.utils.pickfast.PickCanvas pickCanvasGeom - 
pickCanvasNode
public org.jogamp.java3d.utils.pickfast.PickCanvas pickCanvasNode - 
background
public org.jogamp.java3d.Background background - 
toolInput3DAdapter
 - 
lightNode
protected org.jogamp.java3d.BranchGroup lightNode - 
model
 - 
axes_transform
protected org.jogamp.java3d.TransformGroup axes_transform - 
min_screen_dim
protected float min_screen_dim - 
R_temp
protected org.jogamp.java3d.Transform3D R_temp - 
R_temp2
protected org.jogamp.java3d.Transform3D R_temp2 - 
M3_temp
protected org.jogamp.vecmath.Matrix3d M3_temp - 
axes
 - 
temp_popup_shape
protected org.jogamp.java3d.BranchGroup temp_popup_shape 
 - 
 - 
Constructor Details
- 
InterfaceGraphic3D
public InterfaceGraphic3D(java.lang.String theName) - 
InterfaceGraphic3D
public InterfaceGraphic3D() - 
InterfaceGraphic3D
 
 - 
 - 
Method Details
- 
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObjectReturns theIconassociated with this object.- Specified by:
 getObjectIconin interfaceIconObject- Overrides:
 getObjectIconin classInterfaceGraphic<Tool3D>- Returns:
 
 - 
destroy
public void destroy()Description copied from interface:InterfaceObjectDestroy this object (prepare it to be removed from memory)- Specified by:
 destroyin interfaceInterfaceObject- Specified by:
 destroyin interfaceShapeListener- Overrides:
 destroyin classInterfacePanel
 - 
isDestroyed
public boolean isDestroyed()Description copied from interface:InterfaceObjectTest whether this object has been destroyed- Specified by:
 isDestroyedin interfaceInterfaceObject- Specified by:
 isDestroyedin interfaceShapeListener- Overrides:
 isDestroyedin classInterfacePanel- Returns:
 
 - 
init
public void init()- Overrides:
 initin classInterfaceGraphic<Tool3D>
 - 
getClipDistances
public double[] getClipDistances() - 
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)- Specified by:
 actionPerformedin interfacejava.awt.event.ActionListener
 - 
axesChanged
- Specified by:
 axesChangedin interfaceAxesListener
 - 
setAxes
 - 
setMap
- Overrides:
 setMapin classInterfaceGraphic<Tool3D>
 - 
getView
public org.jogamp.java3d.View getView() - 
getInterfaceCanvas3D
 - 
getShowAxes
public boolean getShowAxes() - 
setShowAxes
public void setShowAxes(boolean b) - 
getAxesSize
public float getAxesSize() - 
setAxesSize
public void setAxesSize(float size) - 
repaintAxes
public void repaintAxes() - 
getMap3D
 - 
getBoundsScale
public float getBoundsScale() - 
setBoundsScale
public void setBoundsScale(float scale) - 
getAutoCenter
public boolean getAutoCenter() - 
setAutoCenter
public void setAutoCenter(boolean b) - 
setDefaultTool
- Specified by:
 setDefaultToolin interfaceToolable<Tool3D>- Overrides:
 setDefaultToolin classInterfaceGraphic<Tool3D>
 - 
setBackgroundColour
public void setBackgroundColour(java.awt.Color c)- Overrides:
 setBackgroundColourin classInterfaceGraphic<Tool3D>
 - 
updateBackground
public void updateBackground() - 
getCamera
 - 
setModel
 - 
getPickTolerance
protected float getPickTolerance() - 
setPickTolerance
protected void setPickTolerance(float d) - 
getMinScreenScale
protected org.jogamp.vecmath.Vector2f getMinScreenScale() - 
getMinScreenScaleWidth
protected float getMinScreenScaleWidth() - 
getMinScreenScaleHeight
protected float getMinScreenScaleHeight() - 
updateAxes
public void updateAxes() - 
componentResized
public void componentResized(java.awt.event.ComponentEvent e)Resize axes on window resize, after given delay (to avoid excessive updates)- Specified by:
 componentResizedin interfacejava.awt.event.ComponentListener- Overrides:
 componentResizedin classInterfacePanel
 - 
cameraAngleChanged
- Specified by:
 cameraAngleChangedin interfaceCamera3DListener
 - 
cameraChanged
- Specified by:
 cameraChangedin interfaceCamera3DListener
 - 
getModel
 - 
getPickCanvasGeom
public org.jogamp.java3d.utils.pickfast.PickCanvas getPickCanvasGeom() - 
getPickCanvasNode
public org.jogamp.java3d.utils.pickfast.PickCanvas getPickCanvasNode() - 
getViewingPlatform
public org.jogamp.java3d.utils.universe.ViewingPlatform getViewingPlatform() - 
addMouseListener
public void addMouseListener(java.awt.event.MouseListener m)- Overrides:
 addMouseListenerin classjava.awt.Component
 - 
addMouseMotionListener
public void addMouseMotionListener(java.awt.event.MouseMotionListener m)- Overrides:
 addMouseMotionListenerin classjava.awt.Component
 - 
addMouseWheelListener
public void addMouseWheelListener(java.awt.event.MouseWheelListener m)- Overrides:
 addMouseWheelListenerin classjava.awt.Component
 - 
attributeUpdated
Description copied from interface:AttributeListenerCalled when an Attribute's value has been updated.- Specified by:
 attributeUpdatedin interfaceAttributeListener- Overrides:
 attributeUpdatedin classInterfacePanel
 - 
updateClipDistances
protected void updateClipDistances() - 
isAutoBackClip
public boolean isAutoBackClip() - 
updateDisplay
public void updateDisplay()Description copied from class:InterfacePanelRequests this panel to update its display.- Specified by:
 updateDisplayin interfaceDisplayListener- Overrides:
 updateDisplayin classInterfacePanel
 - 
updateScene
public void updateScene() - 
updateScene
 - 
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
 setTreeNodein interfaceTreeObject- Overrides:
 setTreeNodein classInterfacePanel
 - 
shapeModelChanged
Description copied from interface:ShapeModel3DListenerFired when aShapeModel3Dis changed in some way. The specific change is indicated by theEventTypeof the ShapeModelEvent.- Specified by:
 shapeModelChangedin interfaceShapeModel3DListener
 - 
shapeUpdated
Description copied from interface:ShapeListenerA shape that this object is listening to has been updated. The specific type of event is defined by ShapeEvent.EventType.- Specified by:
 shapeUpdatedin interfaceShapeListener- Overrides:
 shapeUpdatedin classInterfacePanel
 - 
setCurrentTool
- Specified by:
 setCurrentToolin interfaceToolable<Tool3D>- Overrides:
 setCurrentToolin classInterfaceGraphic<Tool3D>
 - 
toolDeactivated
- Specified by:
 toolDeactivatedin interfaceToolListener- Overrides:
 toolDeactivatedin classInterfaceGraphic<Tool3D>
 - 
getTool
 - 
isToolable
Description copied from interface:ToolableTests whether this object is toolable bytool- Specified by:
 isToolablein interfaceToolable<Tool3D>- Overrides:
 isToolablein classInterfaceGraphic<Tool3D>- Returns:
 
 - 
getToolLock
public boolean getToolLock() - 
setToolLock
public void setToolLock(boolean val) - 
setCurrentSelection2D
 - 
toString
public java.lang.String toString()- Overrides:
 toStringin classjava.awt.Component
 - 
getTitle
public java.lang.String getTitle()- Overrides:
 getTitlein classInterfacePanel
 - 
setSource
public boolean setSource(java.lang.Object source)Description copied from class:InterfacePanelSets the source object for this panel.- Overrides:
 setSourcein classInterfacePanel- Returns:
 
 - 
getSource
public java.lang.Object getSource()Description copied from class:InterfacePanelReturns the source object for this panel; returnsnullif no source object is set.- Overrides:
 getSourcein classInterfacePanel- Returns:
 
 - 
getDisplayObjectsNode
public javax.swing.tree.DefaultMutableTreeNode getDisplayObjectsNode()Description copied from class:InterfaceGraphicReturns a tree node containing a list of objects displayable by a class of InterfaceGraphic. Must therefore be overriden by that class.- Overrides:
 getDisplayObjectsNodein classInterfaceGraphic<Tool3D>- Returns:
 - DefaultMutableTreeNode with a tree list of displayable objects
 
 - 
getPopupMenu
Description copied from interface:PopupMenuObjectProduces and returns a popup menu for this object.- Specified by:
 getPopupMenuin interfacePopupMenuObject- Overrides:
 getPopupMenuin classInterfaceGraphic<Tool3D>- Returns:
 
 - 
setPopupShape
protected void setPopupShape(org.jogamp.java3d.BranchGroup shape) - 
getCurrentTool
- Specified by:
 getCurrentToolin interfaceToolable<Tool3D>- Overrides:
 getCurrentToolin classInterfaceGraphic<Tool3D>
 - 
updateStatusBox
Description copied from class:InterfaceGraphicNotifies this window to update the given status text box with information as it sees fit. Boxes are mapped to indices within this class; By default, if the box's index is 1, the value will be set to the name of the current window; otherwise it will be set to an empty string. Overriding classes should call this super method first.- Overrides:
 updateStatusBoxin classInterfaceGraphic<Tool3D>- Parameters:
 box- Text box to update- Returns:
 - The index of the box; mostly useful for internal purposes
 
 - 
centerOnPoint
public void centerOnPoint(org.jogamp.vecmath.Point3f p) - 
handlePopupEvent
public void handlePopupEvent(java.awt.event.ActionEvent e)Description copied from interface:PopupMenuObjectHandles an event on this object's popup menu.- Specified by:
 handlePopupEventin interfacePopupMenuObject- Overrides:
 handlePopupEventin classInterfaceGraphic<Tool3D>
 - 
writeToFileBuffer
public boolean writeToFileBuffer(java.io.File file)Writes this window to a png image file.- Returns:
 - true if successful
 
 - 
writeSnapshotToFile
public boolean writeSnapshotToFile(java.io.File file)Temp screenshot while off screen rendering doesn't work...- Overrides:
 writeSnapshotToFilein classInterfaceGraphic<Tool3D>- Returns:
 
 - 
writeToFile
protected boolean writeToFile(java.awt.image.BufferedImage image, java.io.File file) - 
postRender
public void postRender()Executes any post-rendering tasks, called through thepostSwapmethod ofPostRenderingCanvas3D. - 
getDTD
public java.lang.String getDTD()Description copied from interface:XMLObjectReturns the Data Type Declaration (DTD) for this object's XML representationSee http://en.wikipedia.org/wiki/Document_Type_Definition for a description.
 - 
getLocalName
public java.lang.String getLocalName()Description copied from interface:XMLObjectReturns the local name associated with this XML object.- Specified by:
 getLocalNamein interfaceXMLObject- Returns:
 
 - 
getShortXML
public java.lang.String getShortXML(int tab)Description copied from interface:XMLObjectReturns a short XML representation of this object.- Specified by:
 getShortXMLin interfaceXMLObject- Returns:
 
 - 
getXML
public java.lang.String getXML()Description copied from interface:XMLObjectReturns this object's XML representation as a single string. NOTE: this is not feasible for larger objects and containers, thus may not be implemented for these objects. Use theXMLObject.writeXML(int,java.io.Writer,mgui.io.standard.xml.XMLOutputOptions,mgui.interfaces.ProgressUpdater)functions to write larger objects to file. - 
getXML
public java.lang.String getXML(int tab)Description copied from interface:XMLObjectReturns this object's XML representation as a single string. NOTE: this is not feasible for larger objects and containers, thus may not be implemented for these objects. Use theXMLObject.writeXML(int,java.io.Writer,mgui.io.standard.xml.XMLOutputOptions,mgui.interfaces.ProgressUpdater)functions to write larger objects to file. - 
getXMLSchema
public java.lang.String getXMLSchema()Description copied from interface:XMLObjectReturns the XML schema for this object's XML representation- Specified by:
 getXMLSchemain interfaceXMLObject- Returns:
 
 - 
handleXMLElementEnd
public void handleXMLElementEnd(java.lang.String localName)Description copied from interface:XMLObjectHandles the end of an XML element.- Specified by:
 handleXMLElementEndin interfaceXMLObject- Parameters:
 localName- Local name of the element
 - 
handleXMLElementStart
public void handleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)Description copied from interface:XMLObjectHandles the start of an XML element.- Specified by:
 handleXMLElementStartin interfaceXMLObject- Parameters:
 localName- Local name of the elementattributes- Set of element attributestype- TheXMLTypeof this element
 - 
handleXMLString
public void handleXMLString(java.lang.String s)Description copied from interface:XMLObjectHandles a string within an XML element.- Specified by:
 handleXMLStringin interfaceXMLObject- Parameters:
 s- String to handle
 - 
writeXML
public void writeXML(int tab, java.io.Writer writer, XMLOutputOptions options, ProgressUpdater progress_bar) throws java.io.IOExceptionDescription copied from interface:XMLObjectWrites the XML representation of this object to file. The basic contract for this method is that it should not write a newline character at its start or end. The default format ofXMLFormat.Asciiwill be used. 
 -