ix.iview.igraph
Class GExpansionEditor

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by ix.iview.AConstructEditorPanel
                      extended by ix.iview.igraph.GExpansionEditor
All Implemented Interfaces:
ConstructEditing, UndoEditing, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class GExpansionEditor
extends AConstructEditorPanel
implements ConstructEditing, java.awt.event.ActionListener, UndoEditing

A graphical editor/viewer panel for activity expansion structures

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
 
Field Summary
protected  lt.monarch.graph.view.looks.NodeViewBase currentNode
           
(package private)  javax.swing.ImageIcon deleteGNodesIcon
           
 IXToolItem deleteGNodesItem
           
(package private)  javax.swing.ImageIcon layoutIcon
           
 IXToolItem layoutItem
           
(package private)  javax.swing.ImageIcon layoutLeftIcon
           
 IXToolItem layoutLeftItem
           
(package private)  javax.swing.ImageIcon newGNodeIcon
           
 IXToolItem newGNodeItem
           
(package private)  java.awt.Point newNodeLocation
           
protected  ActionEditorPanel parent
           
(package private)  javax.swing.JToolBar toolBar
           
 
Fields inherited from class ix.iview.AConstructEditorPanel
uiConstruct
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GExpansionEditor()
           
GExpansionEditor(ActionEditorPanel parent)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Wakes up the ActionListener with a user action.
 void autoAutoLayout(lt.monarch.graph.GraphView graphView)
           
 void autoLayout(lt.monarch.graph.GraphView graphView)
           
 void autoLayoutLeft(lt.monarch.graph.GraphView graphView)
           
 void displayFieldData(java.lang.String fieldName)
           
 void expandNode()
           
 void layoutFromGraph(IGraph graph)
           
 void loadFromObject()
          load the data for the panel from the current object.
 void populateExpansionsMenu()
           
 void saveExpansionGraph(UIRefinement uir)
           
 void saveToGivenObject(UIRefinement uir)
           
 void saveToObject(EditableObject object)
          Save the data from the panel into the given object.
 void setAction(UIRefinement uir)
           
 void setUIConstruct(UIObject construct)
          Sets the current UI construct.
 void setUIConstructOnly(UIObject construct)
          Sets the current UI construct.
 java.lang.Object undoGetValue(java.lang.String field)
          Gets the given field to the given value in the editor.
 void undoSetValue(java.lang.String field, java.lang.Object value)
          Sets the given field to the given value in the editor.
 void userAutoLayout(lt.monarch.graph.GraphView graphView)
           
 void userAutoLayoutLeft(lt.monarch.graph.GraphView graphView)
           
 
Methods inherited from class ix.iview.AConstructEditorPanel
getConstruct, getUIConstruct, getUIDomain, setConstruct
 
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, 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, transferFocusBackward, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ix.iview.ConstructEditing
getConstruct, getUIConstruct, getUIDomain, setConstruct
 

Field Detail

parent

protected ActionEditorPanel parent

currentNode

protected lt.monarch.graph.view.looks.NodeViewBase currentNode

toolBar

javax.swing.JToolBar toolBar

newGNodeIcon

javax.swing.ImageIcon newGNodeIcon

deleteGNodesIcon

javax.swing.ImageIcon deleteGNodesIcon

layoutIcon

javax.swing.ImageIcon layoutIcon

layoutLeftIcon

javax.swing.ImageIcon layoutLeftIcon

newGNodeItem

public IXToolItem newGNodeItem

deleteGNodesItem

public IXToolItem deleteGNodesItem

layoutItem

public IXToolItem layoutItem

layoutLeftItem

public IXToolItem layoutLeftItem

newNodeLocation

final java.awt.Point newNodeLocation
Constructor Detail

GExpansionEditor

public GExpansionEditor()

GExpansionEditor

public GExpansionEditor(ActionEditorPanel parent)
Method Detail

populateExpansionsMenu

public void populateExpansionsMenu()

setAction

public void setAction(UIRefinement uir)

layoutFromGraph

public void layoutFromGraph(IGraph graph)

expandNode

public void expandNode()

saveExpansionGraph

public void saveExpansionGraph(UIRefinement uir)

undoSetValue

public void undoSetValue(java.lang.String field,
                         java.lang.Object value)
Sets the given field to the given value in the editor.

Specified by:
undoSetValue in interface UndoEditing

undoGetValue

public java.lang.Object undoGetValue(java.lang.String field)
Gets the given field to the given value in the editor.

Specified by:
undoGetValue in interface UndoEditing

setUIConstruct

public void setUIConstruct(UIObject construct)
Sets the current UI construct.

Specified by:
setUIConstruct in interface ConstructEditing
Specified by:
setUIConstruct in class AConstructEditorPanel

setUIConstructOnly

public void setUIConstructOnly(UIObject construct)
Sets the current UI construct.

Specified by:
setUIConstructOnly in interface ConstructEditing

saveToObject

public void saveToObject(EditableObject object)
Save the data from the panel into the given object.

Specified by:
saveToObject in interface ConstructEditing
Specified by:
saveToObject in class AConstructEditorPanel

saveToGivenObject

public void saveToGivenObject(UIRefinement uir)

loadFromObject

public void loadFromObject()
load the data for the panel from the current object.

Specified by:
loadFromObject in interface ConstructEditing

displayFieldData

public void displayFieldData(java.lang.String fieldName)

autoAutoLayout

public void autoAutoLayout(lt.monarch.graph.GraphView graphView)

userAutoLayout

public void userAutoLayout(lt.monarch.graph.GraphView graphView)

userAutoLayoutLeft

public void userAutoLayoutLeft(lt.monarch.graph.GraphView graphView)

autoLayout

public void autoLayout(lt.monarch.graph.GraphView graphView)

autoLayoutLeft

public void autoLayoutLeft(lt.monarch.graph.GraphView graphView)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Wakes up the ActionListener with a user action. This is called when a KeyStroke happens in which the ActionListener registered its interest.

Specified by:
actionPerformed in interface java.awt.event.ActionListener