Package mgui.interfaces
Class InterfaceDisplayPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
mgui.interfaces.InterfacePanel
mgui.interfaces.InterfaceDisplayPanel
- 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.util.EventListener,javax.accessibility.Accessible,AttributeListener,AttributeObject,DisplayListener,WindowContainer,WindowListener,InterfaceObject,CategoryObject,PopupMenuObject,NamedObject,ShapeModel3DListener,ShapeListener,SplitPanelListener,Toolable<Tool>,TreeObject,CleanableObject,XMLObject,IconObject
- Direct Known Subclasses:
InterfaceTabbedDisplayPanel
public class InterfaceDisplayPanel extends InterfacePanel implements java.awt.event.ActionListener, XMLObject, Toolable<Tool>, WindowContainer, SplitPanelListener, ShapeModel3DListener
Main interface panel for displaying data graphically. Contains a hierarchical set of
InterfaceGraphic objects which it displays in a particular order and size, based upon
the number of current windows. The framework is a set of embedded InterfaceSplitPanes,
each of which can contain further split panes. InterfaceDisplayPanel also has a reference to the
3D model shape set (ShapeSet3DInt modelSet), a list of data source shapeModels, a list of shape
selection sets, and a tree containing nodes for all of these objects. InterfaceGraphic
type-specific tools can also be set through this interface, affecting all relevant
windows.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
- See Also:
- Serialized Form
-
Nested Class Summary
Nested 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 protected ShapeModel3DcurrentModelShapeSelectionSetcurrentSelectionprotected ToolcurrentToolprotected java.util.ArrayList<DisplayPanelListener>displayPanelListenersbooleanexcludeToSelectionprotected InterfaceGraphic<?>last_added_panelprotected InterfaceGraphic<?>last_removed_panelprotected intlast_split_orientationprotected java.util.TreeSet<GraphicMouseListener>mouse_listenersprotected InterfaceTreePanelobjectTreeprotected InterfaceDisplayPanelparent_panelInterfaceFrameparentFramejava.util.ArrayList<mgui.interfaces.InterfaceDisplayPanel.SelIDRef>selectionIndexprotected java.util.ArrayList<javax.swing.JLabel>titlesbooleantoolLockprotected InterfaceGraphicWindowwindowprotected InterfaceWorkspaceworkspaceFields inherited from class mgui.interfaces.InterfacePanel
attributes, displayListeners, 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 InterfaceDisplayPanel(SessionFrame frame) -
Method Summary
Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidaddColourMap(ColourMap map)voidaddDisplayPanelListener(DisplayPanelListener l)voidaddGraphicMouseListener(GraphicMouseListener s)ShapeSelectionSetaddSelectionSet(ShapeSelectionSet thisSet, ShapeModel3D model)ShapeSelectionSetaddSelectionSet(ShapeSelectionSet thisSet, ShapeModel3D model, boolean listeners)Deprecated.call model directlyvoidaddShape2D(Shape2DInt thisShape)booleanaddShapeInt(Shape3DInt thisShape)voidaddShapeListener(ShapeListener s)booleanaddWindow(InterfaceGraphicWindow new_window)booleanaddWindow(InterfaceGraphicWindow new_window, java.lang.String title)Adds a panel to this display panel, using the default split position, which depends on the previous addition.voidclose()Called when this display panel is closedvoidderegisterProgressBar()voiddestroy()Destroy this object (prepare it to be removed from memory)protected voidfireDisplayPanelChanged(DisplayPanelEvent e)java.util.ArrayList<InterfaceGraphicWindow>getAllWindows()java.util.ArrayList<ColourMap>getColourMaps()SectionSet3DIntgetCurrentSectionSet()ShapeSelectionSetgetCurrentSelection()ShapeModel3DgetCurrentShapeModel()ShapeSet3DIntgetCurrentShapeSet()ToolgetCurrentTool()Tool2DgetCurrentTool2D()Tool3DgetCurrentTool3D()ToolGraphgetCurrentToolGraph()java.lang.StringgetDTD()Returns the Data Type Declaration (DTD) for this object's XML representationInterfaceGraphic<?>getLastAddedPanel()Retrieves the last added panelInterfaceGraphic<?>getLastRemovedPanel()Retrieves the last removed paneljava.lang.StringgetLocalName()Returns the local name associated with this XML object.java.util.ArrayList<NameMap>getNameMaps()protected InterfaceSplitPanelgetNextSplitPanel(InterfaceGraphicWindow new_window)Returns a new split panel, determined as the first non-split window encountered, searching through the nested stack of split panels.javax.swing.IcongetObjectIcon()Returns theIconassociated with this object.java.util.ArrayList<InterfaceTreeNode>getPanelNodes()java.util.ArrayList<InterfaceGraphicWindow>getPanels()Deprecated.UsegetWindows()InterfaceFramegetParentFrame()InterfacePopupMenugetPopupMenu()Produces and returns a popup menu for this object.ShapeSet2DIntgetShapeSet2D()java.lang.StringgetShortXML(int tab)Returns a short XML representation of this object.booleangetToolLock()java.lang.StringgetTreeLabel()Returns the label text to appear in a tree node.java.lang.StringgetValidTitle(java.lang.String desired_title)Returns a valid title for a new window in this display panel.java.util.ArrayList<InterfaceGraphicWindow>getWindows()Returns a list of the windows contained in this display panel.java.util.ArrayList<InterfaceGraphicWindow>getWindowsDepthFirst()Returns a list of the windows contained in this display panel.InterfaceWorkspacegetWorkspace()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.protected voidinit()booleanisDestroyed()Test whether this object has been destroyedbooleanisToolable(Tool tool)Tests whether this object is toolable bytoolbooleanisValidTitle(java.lang.String title)voidpaintComponent(java.awt.Graphics g)voidregisterProgressBar(InterfaceProgressBar bar)voidremoveAllPanels()voidremoveDisplayPanelListener(DisplayPanelListener l)voidremoveGraphicMouseListener(GraphicMouseListener s)booleanremoveWindow(java.lang.String name)Removes the panel associated withname, if it exists.voidremoveWindow(InterfaceGraphicWindow child)Removechildfrom this container, and notify listeners.voidremoveWindow(InterfaceGraphicWindow child, boolean notify)Removechildfrom this container.voidresetPanels()Removes all panels from this display panel, and removes all mouse listeners registered on them.voidresetSelectionIndex()voidsetCurrentSection(SectionSet3DInt thisSect, int section)voidsetCurrentSectionSet(SectionSet3DInt thisSet)voidsetCurrentSelection(ShapeSelectionSet sel)voidsetCurrentShapeModel(ShapeModel3D model)booleansetCurrentTool(Tool tool)booleansetDefaultTool(Tool tool)voidsetObjectTree(InterfaceTreePanel treePanel)voidsetShapeSet2D()voidsetStatusBar(InterfaceStatusBarPanel p)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.voidsplitPanelChanged(SplitPanelEvent e)The split pane has changed.InterfaceSplitPanelsplitWindow(InterfaceGraphicWindow window_to_split, InterfaceGraphicWindow window_to_add, int orientation, boolean is_left)Adds a new split panel to this display panel, in place ofwindow_to_split, which must already be a child of this display panel.inttoggleExpandedWindow(java.lang.String name)Toggles the expansion state of the window specified byname.java.lang.StringtoString()voidupdateDisplay()Requests this panel to update its display.voidupdateDisplays()voidupdatePanels()Instructs this display panel to regenerate based on its current state.voidwindowSourceChanged(WindowEvent e)voidwindowUpdated(WindowEvent e)voidwriteXML(int tab, java.io.Writer writer)Writes the XML representation of this object to file.voidwriteXML(int tab, java.io.Writer writer, ProgressUpdater progress_bar)Writes the XML representation of this object to file, asXMLType.Normal.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.InterfacePanel
_init, addDisplayListener, attributeUpdated, clean, cleanUpPanel, collapseAllCategories, collapseCategory, collapseOtherCategories, componentHidden, componentMoved, componentResized, componentShown, expandAllCategories, expandCategory, fireDisplayListeners, getAttribute, getAttributes, getAttributeValue, getLocalAttributes, getPopupMenu, getSource, getTitle, getType, issueTreeNode, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, removeDisplayListener, setAttribute, setAttributes, setSource, setType, showPanel, showPopupMenu, 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, 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, addMouseListener, addMouseMotionListener, addMouseWheelListener, 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, getName, 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, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mgui.interfaces.NamedObject
getName, setName
-
Field Details
-
window
-
titles
protected java.util.ArrayList<javax.swing.JLabel> titles -
currentTool
-
toolLock
public boolean toolLock -
selectionIndex
public java.util.ArrayList<mgui.interfaces.InterfaceDisplayPanel.SelIDRef> selectionIndex -
excludeToSelection
public boolean excludeToSelection -
objectTree
-
currentSelection
-
mouse_listeners
-
currentModel
-
displayPanelListeners
-
parentFrame
-
workspace
-
last_added_panel
-
last_removed_panel
-
parent_panel
-
last_split_orientation
protected int last_split_orientation
-
-
Constructor Details
-
InterfaceDisplayPanel
-
-
Method Details
-
init
protected void init()- Specified by:
initin classInterfacePanel
-
getTreeLabel
public java.lang.String getTreeLabel()Description copied from interface:TreeObjectReturns the label text to appear in a tree node.- Specified by:
getTreeLabelin interfaceTreeObject- Overrides:
getTreeLabelin classInterfacePanel- Returns:
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObjectReturns theIconassociated with this object.- Specified by:
getObjectIconin interfaceIconObject- Overrides:
getObjectIconin classInterfacePanel- Returns:
-
addDisplayPanelListener
-
removeDisplayPanelListener
-
getParentFrame
-
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:
-
getWorkspace
-
getCurrentShapeModel
-
setCurrentShapeModel
-
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
-
getCurrentShapeSet
-
addShapeListener
-
addShapeInt
-
splitPanelChanged
Description copied from interface:SplitPanelListenerThe split pane has changed. TheSplitPanelEventwill provide information about the nature of the change.- Specified by:
splitPanelChangedin interfaceSplitPanelListener
-
getWindows
Returns a list of the windows contained in this display panel. Breadth-first, if this panel contains split panels.- Returns:
-
getWindowsDepthFirst
Returns a list of the windows contained in this display panel. Depth-first, if this panel contains split panels.- Returns:
-
addGraphicMouseListener
-
removeGraphicMouseListener
-
paintComponent
public void paintComponent(java.awt.Graphics g)- Overrides:
paintComponentin classjavax.swing.JComponent
-
getLastAddedPanel
Retrieves the last added panel- Returns:
-
getLastRemovedPanel
Retrieves the last removed panel- Returns:
-
getNextSplitPanel
Returns a new split panel, determined as the first non-split window encountered, searching through the nested stack of split panels. This ensures that the highest-level window is always the next to be split by default.- Returns:
-
addWindow
-
addWindow
Adds a panel to this display panel, using the default split position, which depends on the previous addition. The convention for this is horizontal, then vertical, etc.- Parameters:
window-title-
-
isValidTitle
public boolean isValidTitle(java.lang.String title) -
getValidTitle
public java.lang.String getValidTitle(java.lang.String desired_title)Returns a valid title for a new window in this display panel. If no window by the namedesired_nameexists, returns the same name. Otherwise, Returns that name with "-{n}" appended, where n is an integer indicating the number of additional names encountered.- Parameters:
desired_title-- Returns:
-
splitWindow
public InterfaceSplitPanel splitWindow(InterfaceGraphicWindow window_to_split, InterfaceGraphicWindow window_to_add, int orientation, boolean is_left)Adds a new split panel to this display panel, in place ofwindow_to_split, which must already be a child of this display panel.- Parameters:
window_to_split- Window to be replaced by a split panelwindow_to_add- New window to share the new split panelorientation- One ofJSplitPane.HORIZONTAL_SPLITorJSplitPane.VERTICAL_SPLITis_left- Iftrue,window_to_splitgoes on the left/top; opposite iffalse.- Returns:
- The new split panel, or
nullif process failed
-
fireDisplayPanelChanged
-
addColourMap
-
getColourMaps
-
getNameMaps
-
updatePanels
public void updatePanels()Instructs this display panel to regenerate based on its current state. -
getCurrentTool2D
-
getCurrentTool3D
-
getCurrentToolGraph
-
setCurrentTool
- Specified by:
setCurrentToolin interfaceToolable<Tool>
-
setDefaultTool
- Specified by:
setDefaultToolin interfaceToolable<Tool>
-
getCurrentTool
- Specified by:
getCurrentToolin interfaceToolable<Tool>
-
isToolable
Description copied from interface:ToolableTests whether this object is toolable bytool- Specified by:
isToolablein interfaceToolable<Tool>- Returns:
-
resetPanels
public void resetPanels()Removes all panels from this display panel, and removes all mouse listeners registered on them. -
removeWindow
public boolean removeWindow(java.lang.String name)Removes the panel associated withname, if it exists. Also removes all listeners on this panel.- Parameters:
name-
-
setCurrentSectionSet
-
getCurrentSectionSet
-
setObjectTree
-
getAllWindows
-
getPanels
Deprecated.UsegetWindows()- Returns:
-
removeAllPanels
public void removeAllPanels() -
removeWindow
Description copied from interface:WindowContainerRemovechildfrom this container, and notify listeners.- Specified by:
removeWindowin interfaceWindowContainer
-
removeWindow
Description copied from interface:WindowContainerRemovechildfrom this container.- Specified by:
removeWindowin interfaceWindowContainernotify- Whether to notify listeners
-
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
-
updateDisplay
public void updateDisplay()Description copied from class:InterfacePanelRequests this panel to update its display.- Specified by:
updateDisplayin interfaceDisplayListener- Overrides:
updateDisplayin classInterfacePanel
-
updateDisplays
public void updateDisplays()- Overrides:
updateDisplaysin classInterfacePanel
-
resetSelectionIndex
public void resetSelectionIndex() -
getCurrentSelection
-
setCurrentSelection
-
setTreeNode
Description copied from interface:TreeObjectSets the children for this node'sInterfaceTreeNode.- Specified by:
setTreeNodein interfaceTreeObject- Overrides:
setTreeNodein classInterfacePanel
-
getPanelNodes
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.awt.Component
-
getShapeSet2D
-
addShape2D
-
setShapeSet2D
public void setShapeSet2D() -
addSelectionSet
-
addSelectionSet
@Deprecated public ShapeSelectionSet addSelectionSet(ShapeSelectionSet thisSet, ShapeModel3D model, boolean listeners)Deprecated.call model directly- Parameters:
thisSet-model-listeners-- Returns:
-
setStatusBar
- Overrides:
setStatusBarin classInterfacePanel
-
registerProgressBar
-
deregisterProgressBar
public void deregisterProgressBar() -
setCurrentSection
-
getPopupMenu
Description copied from interface:PopupMenuObjectProduces and returns a popup menu for this object.- Specified by:
getPopupMenuin interfacePopupMenuObject- Overrides:
getPopupMenuin classInterfacePanel- Returns:
-
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 classInterfacePanel
-
getToolLock
public boolean getToolLock() -
setToolLock
public void setToolLock(boolean val) -
toggleExpandedWindow
public int toggleExpandedWindow(java.lang.String name)Toggles the expansion state of the window specified byname.- Parameters:
name-- Returns:
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
close
public void close()Called when this display panel is closed -
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, ProgressUpdater progress_bar) throws java.io.IOExceptionDescription copied from interface:XMLObjectWrites the XML representation of this object to file, asXMLType.Normal. The default format ofXMLFormat.Asciiwill be used. The basic contract for this method is that it should not write a newline character at its start or end. -
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. -
writeXML
public void writeXML(int tab, java.io.Writer writer) 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. -
windowUpdated
- Specified by:
windowUpdatedin interfaceWindowListener
-
windowSourceChanged
- Specified by:
windowSourceChangedin interfaceWindowListener
-