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.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description protected ShapeModel3D
currentModel
ShapeSelectionSet
currentSelection
protected Tool
currentTool
protected java.util.ArrayList<DisplayPanelListener>
displayPanelListeners
boolean
excludeToSelection
protected InterfaceGraphic<?>
last_added_panel
protected InterfaceGraphic<?>
last_removed_panel
protected int
last_split_orientation
protected java.util.TreeSet<GraphicMouseListener>
mouse_listeners
protected InterfaceTreePanel
objectTree
protected InterfaceDisplayPanel
parent_panel
InterfaceFrame
parentFrame
java.util.ArrayList<mgui.interfaces.InterfaceDisplayPanel.SelIDRef>
selectionIndex
protected java.util.ArrayList<javax.swing.JLabel>
titles
boolean
toolLock
protected InterfaceGraphicWindow
window
protected InterfaceWorkspace
workspace
Fields inherited from class mgui.interfaces.InterfacePanel
attributes, displayListeners, last_click_point, statusBar, tree_nodes, treeNode, type
Fields inherited from class javax.swing.JComponent
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
accessibleContext, 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
Constructors Constructor Description InterfaceDisplayPanel(SessionFrame frame)
-
Method Summary
Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
addColourMap(ColourMap map)
void
addDisplayPanelListener(DisplayPanelListener l)
void
addGraphicMouseListener(GraphicMouseListener s)
ShapeSelectionSet
addSelectionSet(ShapeSelectionSet thisSet, ShapeModel3D model)
ShapeSelectionSet
addSelectionSet(ShapeSelectionSet thisSet, ShapeModel3D model, boolean listeners)
Deprecated.call model directlyvoid
addShape2D(Shape2DInt thisShape)
boolean
addShapeInt(Shape3DInt thisShape)
void
addShapeListener(ShapeListener s)
boolean
addWindow(InterfaceGraphicWindow new_window)
boolean
addWindow(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.void
close()
Called when this display panel is closedvoid
deregisterProgressBar()
void
destroy()
Destroy this object (prepare it to be removed from memory)protected void
fireDisplayPanelChanged(DisplayPanelEvent e)
java.util.ArrayList<InterfaceGraphicWindow>
getAllWindows()
java.util.ArrayList<ColourMap>
getColourMaps()
SectionSet3DInt
getCurrentSectionSet()
ShapeSelectionSet
getCurrentSelection()
ShapeModel3D
getCurrentShapeModel()
ShapeSet3DInt
getCurrentShapeSet()
Tool
getCurrentTool()
Tool2D
getCurrentTool2D()
Tool3D
getCurrentTool3D()
ToolGraph
getCurrentToolGraph()
java.lang.String
getDTD()
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.String
getLocalName()
Returns the local name associated with this XML object.java.util.ArrayList<NameMap>
getNameMaps()
protected InterfaceSplitPanel
getNextSplitPanel(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.Icon
getObjectIcon()
Returns theIcon
associated with this object.java.util.ArrayList<InterfaceTreeNode>
getPanelNodes()
java.util.ArrayList<InterfaceGraphicWindow>
getPanels()
Deprecated.UsegetWindows()
InterfaceFrame
getParentFrame()
InterfacePopupMenu
getPopupMenu()
Produces and returns a popup menu for this object.ShapeSet2DInt
getShapeSet2D()
java.lang.String
getShortXML(int tab)
Returns a short XML representation of this object.boolean
getToolLock()
java.lang.String
getTreeLabel()
Returns the label text to appear in a tree node.java.lang.String
getValidTitle(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.InterfaceWorkspace
getWorkspace()
java.lang.String
getXML()
Returns this object's XML representation as a single string.java.lang.String
getXML(int tab)
Returns this object's XML representation as a single string.java.lang.String
getXMLSchema()
Returns the XML schema for this object's XML representationvoid
handlePopupEvent(java.awt.event.ActionEvent e)
Handles an event on this object's popup menu.void
handleXMLElementEnd(java.lang.String localName)
Handles the end of an XML element.void
handleXMLElementStart(java.lang.String localName, org.xml.sax.Attributes attributes, XMLObject.XMLType type)
Handles the start of an XML element.void
handleXMLString(java.lang.String s)
Handles a string within an XML element.protected void
init()
boolean
isDestroyed()
Test whether this object has been destroyedboolean
isToolable(Tool tool)
Tests whether this object is toolable bytool
boolean
isValidTitle(java.lang.String title)
void
paintComponent(java.awt.Graphics g)
void
registerProgressBar(InterfaceProgressBar bar)
void
removeAllPanels()
void
removeDisplayPanelListener(DisplayPanelListener l)
void
removeGraphicMouseListener(GraphicMouseListener s)
boolean
removeWindow(java.lang.String name)
Removes the panel associated withname
, if it exists.void
removeWindow(InterfaceGraphicWindow child)
Removechild
from this container, and notify listeners.void
removeWindow(InterfaceGraphicWindow child, boolean notify)
Removechild
from this container.void
resetPanels()
Removes all panels from this display panel, and removes all mouse listeners registered on them.void
resetSelectionIndex()
void
setCurrentSection(SectionSet3DInt thisSect, int section)
void
setCurrentSectionSet(SectionSet3DInt thisSet)
void
setCurrentSelection(ShapeSelectionSet sel)
void
setCurrentShapeModel(ShapeModel3D model)
boolean
setCurrentTool(Tool tool)
boolean
setDefaultTool(Tool tool)
void
setObjectTree(InterfaceTreePanel treePanel)
void
setShapeSet2D()
void
setStatusBar(InterfaceStatusBarPanel p)
void
setToolLock(boolean val)
void
setTreeNode(InterfaceTreeNode treeNode)
Sets the children for this node'sInterfaceTreeNode
.void
shapeModelChanged(ShapeModelEvent event)
Fired when aShapeModel3D
is changed in some way.void
shapeUpdated(ShapeEvent e)
A shape that this object is listening to has been updated.void
splitPanelChanged(SplitPanelEvent e)
The split pane has changed.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.int
toggleExpandedWindow(java.lang.String name)
Toggles the expansion state of the window specified byname
.java.lang.String
toString()
void
updateDisplay()
Requests this panel to update its display.void
updateDisplays()
void
updatePanels()
Instructs this display panel to regenerate based on its current state.void
windowSourceChanged(WindowEvent e)
void
windowUpdated(WindowEvent e)
void
writeXML(int tab, java.io.Writer writer)
Writes the XML representation of this object to file.void
writeXML(int tab, java.io.Writer writer, ProgressUpdater progress_bar)
Writes the XML representation of this object to file, asXMLType.Normal
.void
writeXML(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, updateTreeNodes
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods 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, update
Methods 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, validateTree
Methods 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, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
init
in classInterfacePanel
-
getTreeLabel
public java.lang.String getTreeLabel()Description copied from interface:TreeObject
Returns the label text to appear in a tree node.- Specified by:
getTreeLabel
in interfaceTreeObject
- Overrides:
getTreeLabel
in classInterfacePanel
- Returns:
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObject
Returns theIcon
associated with this object.- Specified by:
getObjectIcon
in interfaceIconObject
- Overrides:
getObjectIcon
in classInterfacePanel
- Returns:
-
addDisplayPanelListener
-
removeDisplayPanelListener
-
getParentFrame
-
destroy
public void destroy()Description copied from interface:InterfaceObject
Destroy this object (prepare it to be removed from memory)- Specified by:
destroy
in interfaceInterfaceObject
- Specified by:
destroy
in interfaceShapeListener
- Overrides:
destroy
in classInterfacePanel
-
isDestroyed
public boolean isDestroyed()Description copied from interface:InterfaceObject
Test whether this object has been destroyed- Specified by:
isDestroyed
in interfaceInterfaceObject
- Specified by:
isDestroyed
in interfaceShapeListener
- Overrides:
isDestroyed
in classInterfacePanel
- Returns:
-
getWorkspace
-
getCurrentShapeModel
-
setCurrentShapeModel
-
shapeModelChanged
Description copied from interface:ShapeModel3DListener
Fired when aShapeModel3D
is changed in some way. The specific change is indicated by theEventType
of the ShapeModelEvent.- Specified by:
shapeModelChanged
in interfaceShapeModel3DListener
-
getCurrentShapeSet
-
addShapeListener
-
addShapeInt
-
splitPanelChanged
Description copied from interface:SplitPanelListener
The split pane has changed. TheSplitPanelEvent
will provide information about the nature of the change.- Specified by:
splitPanelChanged
in 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:
paintComponent
in 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_name
exists, 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_SPLIT
orJSplitPane.VERTICAL_SPLIT
is_left
- Iftrue
,window_to_split
goes on the left/top; opposite iffalse
.- Returns:
- The new split panel, or
null
if 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:
setCurrentTool
in interfaceToolable<Tool>
-
setDefaultTool
- Specified by:
setDefaultTool
in interfaceToolable<Tool>
-
getCurrentTool
- Specified by:
getCurrentTool
in interfaceToolable<Tool>
-
isToolable
Description copied from interface:Toolable
Tests whether this object is toolable bytool
- Specified by:
isToolable
in 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:WindowContainer
Removechild
from this container, and notify listeners.- Specified by:
removeWindow
in interfaceWindowContainer
-
removeWindow
Description copied from interface:WindowContainer
Removechild
from this container.- Specified by:
removeWindow
in interfaceWindowContainer
notify
- Whether to notify listeners
-
shapeUpdated
Description copied from interface:ShapeListener
A shape that this object is listening to has been updated. The specific type of event is defined by ShapeEvent.EventType.- Specified by:
shapeUpdated
in interfaceShapeListener
- Overrides:
shapeUpdated
in classInterfacePanel
-
updateDisplay
public void updateDisplay()Description copied from class:InterfacePanel
Requests this panel to update its display.- Specified by:
updateDisplay
in interfaceDisplayListener
- Overrides:
updateDisplay
in classInterfacePanel
-
updateDisplays
public void updateDisplays()- Overrides:
updateDisplays
in classInterfacePanel
-
resetSelectionIndex
public void resetSelectionIndex() -
getCurrentSelection
-
setCurrentSelection
-
setTreeNode
Description copied from interface:TreeObject
Sets the children for this node'sInterfaceTreeNode
.- Specified by:
setTreeNode
in interfaceTreeObject
- Overrides:
setTreeNode
in classInterfacePanel
-
getPanelNodes
-
toString
public java.lang.String toString()- Overrides:
toString
in 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:
setStatusBar
in classInterfacePanel
-
registerProgressBar
-
deregisterProgressBar
public void deregisterProgressBar() -
setCurrentSection
-
getPopupMenu
Description copied from interface:PopupMenuObject
Produces and returns a popup menu for this object.- Specified by:
getPopupMenu
in interfacePopupMenuObject
- Overrides:
getPopupMenu
in classInterfacePanel
- Returns:
-
handlePopupEvent
public void handlePopupEvent(java.awt.event.ActionEvent e)Description copied from interface:PopupMenuObject
Handles an event on this object's popup menu.- Specified by:
handlePopupEvent
in interfacePopupMenuObject
- Overrides:
handlePopupEvent
in 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:
actionPerformed
in 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:XMLObject
Returns 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:XMLObject
Returns the local name associated with this XML object.- Specified by:
getLocalName
in interfaceXMLObject
- Returns:
-
getShortXML
public java.lang.String getShortXML(int tab)Description copied from interface:XMLObject
Returns a short XML representation of this object.- Specified by:
getShortXML
in interfaceXMLObject
- Returns:
-
getXML
public java.lang.String getXML()Description copied from interface:XMLObject
Returns 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:XMLObject
Returns 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:XMLObject
Returns the XML schema for this object's XML representation- Specified by:
getXMLSchema
in interfaceXMLObject
- Returns:
-
handleXMLElementEnd
public void handleXMLElementEnd(java.lang.String localName)Description copied from interface:XMLObject
Handles the end of an XML element.- Specified by:
handleXMLElementEnd
in 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:XMLObject
Handles the start of an XML element.- Specified by:
handleXMLElementStart
in interfaceXMLObject
- Parameters:
localName
- Local name of the elementattributes
- Set of element attributestype
- TheXMLType
of this element
-
handleXMLString
public void handleXMLString(java.lang.String s)Description copied from interface:XMLObject
Handles a string within an XML element.- Specified by:
handleXMLString
in 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:XMLObject
Writes the XML representation of this object to file, asXMLType.Normal
. The default format ofXMLFormat.Ascii
will 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:XMLObject
Writes 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.Ascii
will be used. -
writeXML
public void writeXML(int tab, java.io.Writer writer) throws java.io.IOExceptionDescription copied from interface:XMLObject
Writes 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.Ascii
will be used. -
windowUpdated
- Specified by:
windowUpdated
in interfaceWindowListener
-
windowSourceChanged
- Specified by:
windowSourceChanged
in interfaceWindowListener
-