wt.clients.beans.graph
Class AbstractGraphView

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.beans.graph.AbstractGraphView
All Implemented Interfaces:
Accessible, EventListener, FocusListener, GraphModelListener, GraphSelectionModelListener, ImageObserver, MenuContainer, MouseListener, MouseMotionListener, Serializable
Direct Known Subclasses:
DefaultGraphView, GraphView

public abstract class AbstractGraphView
extends Panel
implements GraphModelListener, GraphSelectionModelListener, FocusListener, MouseMotionListener, MouseListener, Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private static String CLASSNAME
           
static String FOCUSED_COMPONENT
          Label for the attribute.
private static AbstractGraphView focusedComponent
           
private  GraphModel model
           
static String MODEL
          Label for the attribute.
private static String RESOURCE
           
static String SELECTION_MODEL
          Label for the attribute.
private  GraphSelectionModel selectionModel
           
private static boolean VERBOSE
           
private static String versionID
           
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface wt.clients.beans.graph.GraphModelListener
LINK_INSERTED, LINK_REMOVED, NODE_INSERTED, NODE_REMOVED, STRUCTURE_CHANGED
 
Fields inherited from interface wt.clients.beans.graph.GraphSelectionModelListener
LINK_SELECTED, LINK_UNSELECTED, NODE_SELECTED, NODE_UNSELECTED, SELECTION_CLEARED
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AbstractGraphView()
           
AbstractGraphView(GraphModel pGraphModel)
           
AbstractGraphView(GraphModel pGraphModel, GraphSelectionModel pGraphSelectionModel)
           
AbstractGraphView(GraphSelectionModel pGraphSelectionModel)
           
 
Method Summary
static GraphModel createDefaultGraphModel()
           
static GraphSelectionModel createDefaultGraphSelectionModel()
           
 void focusGained(FocusEvent e)
           
 void focusLost(FocusEvent e)
           
static AbstractGraphView getFocusedComponent()
          Gets the value of the attribute: FOCUSED_COMPONENT.
 GraphModel getModel()
          Gets the object for the association that plays role: MODEL.
 GraphSelectionModel getSelectionModel()
          Gets the object for the association that plays role: SELECTION_MODEL.
 void graphLinkChanged(PropertyChangeEvent e)
           
 void graphLinkInserted(GraphModelEvent e)
           
 void graphLinkRemoved(GraphModelEvent e)
           
 void graphLinkSelected(GraphSelectionModelEvent e)
           
 void graphLinkUnselected(GraphSelectionModelEvent e)
           
 void graphNodeChanged(PropertyChangeEvent e)
           
 void graphNodeInserted(GraphModelEvent e)
           
 void graphNodeRemoved(GraphModelEvent e)
           
 void graphNodeSelected(GraphSelectionModelEvent e)
           
 void graphNodeUnselected(GraphSelectionModelEvent e)
           
 void graphSelectionCleared(GraphSelectionModelEvent e)
           
 void graphStructureChanged(GraphModelEvent e)
           
abstract  boolean isObjectExisting(Point position)
           
private  void modelValidate(GraphModel a_Model)
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
private  void selectionModelValidate(GraphSelectionModel a_SelectionModel)
           
static void setFocusedComponent(AbstractGraphView a_FocusedComponent)
          Sets the value of the attribute: FOCUSED_COMPONENT.
 void setModel(GraphModel a_Model)
          Sets the object for the association that plays role: MODEL.
 void setSelectionModel(GraphSelectionModel a_SelectionModel)
          Sets the object for the association that plays role: SELECTION_MODEL.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

FOCUSED_COMPONENT

public static final String FOCUSED_COMPONENT
Label for the attribute.

See Also:
Constant Field Values

focusedComponent

private static AbstractGraphView focusedComponent

MODEL

public static final String MODEL
Label for the attribute.

See Also:
Constant Field Values

model

private GraphModel model

SELECTION_MODEL

public static final String SELECTION_MODEL
Label for the attribute.

See Also:
Constant Field Values

selectionModel

private GraphSelectionModel selectionModel

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE
Constructor Detail

AbstractGraphView

public AbstractGraphView(GraphModel pGraphModel,
                         GraphSelectionModel pGraphSelectionModel)
Parameters:
pGraphModel -
pGraphSelectionModel -

AbstractGraphView

public AbstractGraphView(GraphSelectionModel pGraphSelectionModel)
Parameters:
pGraphSelectionModel -

AbstractGraphView

public AbstractGraphView(GraphModel pGraphModel)
Parameters:
pGraphModel -

AbstractGraphView

public AbstractGraphView()
Method Detail

getFocusedComponent

public static AbstractGraphView getFocusedComponent()
Gets the value of the attribute: FOCUSED_COMPONENT.

Returns:
AbstractGraphView

setFocusedComponent

public static void setFocusedComponent(AbstractGraphView a_FocusedComponent)
Sets the value of the attribute: FOCUSED_COMPONENT.

Parameters:
a_FocusedComponent -

getModel

public GraphModel getModel()
Gets the object for the association that plays role: MODEL.

Returns:
GraphModel

setModel

public void setModel(GraphModel a_Model)
              throws WTPropertyVetoException
Sets the object for the association that plays role: MODEL.

Parameters:
a_Model -
Throws:
WTPropertyVetoException

modelValidate

private void modelValidate(GraphModel a_Model)
                    throws WTPropertyVetoException
Parameters:
a_Model -
Throws:
WTPropertyVetoException

getSelectionModel

public GraphSelectionModel getSelectionModel()
Gets the object for the association that plays role: SELECTION_MODEL.

Returns:
GraphSelectionModel

setSelectionModel

public void setSelectionModel(GraphSelectionModel a_SelectionModel)
                       throws WTPropertyVetoException
Sets the object for the association that plays role: SELECTION_MODEL.

Parameters:
a_SelectionModel -
Throws:
WTPropertyVetoException

selectionModelValidate

private void selectionModelValidate(GraphSelectionModel a_SelectionModel)
                             throws WTPropertyVetoException
Parameters:
a_SelectionModel -
Throws:
WTPropertyVetoException

createDefaultGraphModel

public static GraphModel createDefaultGraphModel()
Returns:
GraphModel

createDefaultGraphSelectionModel

public static GraphSelectionModel createDefaultGraphSelectionModel()
Returns:
GraphSelectionModel

focusGained

public void focusGained(FocusEvent e)
Specified by:
focusGained in interface FocusListener
Parameters:
e -

focusLost

public void focusLost(FocusEvent e)
Specified by:
focusLost in interface FocusListener
Parameters:
e -

graphNodeSelected

public void graphNodeSelected(GraphSelectionModelEvent e)
Specified by:
graphNodeSelected in interface GraphSelectionModelListener
Parameters:
e -

graphNodeUnselected

public void graphNodeUnselected(GraphSelectionModelEvent e)
Specified by:
graphNodeUnselected in interface GraphSelectionModelListener
Parameters:
e -

graphLinkSelected

public void graphLinkSelected(GraphSelectionModelEvent e)
Specified by:
graphLinkSelected in interface GraphSelectionModelListener
Parameters:
e -

graphLinkUnselected

public void graphLinkUnselected(GraphSelectionModelEvent e)
Specified by:
graphLinkUnselected in interface GraphSelectionModelListener
Parameters:
e -

graphSelectionCleared

public void graphSelectionCleared(GraphSelectionModelEvent e)
Specified by:
graphSelectionCleared in interface GraphSelectionModelListener
Parameters:
e -

graphNodeInserted

public void graphNodeInserted(GraphModelEvent e)
Specified by:
graphNodeInserted in interface GraphModelListener
Parameters:
e -

graphNodeChanged

public void graphNodeChanged(PropertyChangeEvent e)
Specified by:
graphNodeChanged in interface GraphModelListener
Parameters:
e -

graphNodeRemoved

public void graphNodeRemoved(GraphModelEvent e)
Specified by:
graphNodeRemoved in interface GraphModelListener
Parameters:
e -

graphLinkInserted

public void graphLinkInserted(GraphModelEvent e)
Specified by:
graphLinkInserted in interface GraphModelListener
Parameters:
e -

graphLinkChanged

public void graphLinkChanged(PropertyChangeEvent e)
Specified by:
graphLinkChanged in interface GraphModelListener
Parameters:
e -

graphLinkRemoved

public void graphLinkRemoved(GraphModelEvent e)
Specified by:
graphLinkRemoved in interface GraphModelListener
Parameters:
e -

graphStructureChanged

public void graphStructureChanged(GraphModelEvent e)
Specified by:
graphStructureChanged in interface GraphModelListener
Parameters:
e -

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener
Parameters:
e -

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Parameters:
e -

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Parameters:
e -

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener
Parameters:
e -

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener
Parameters:
e -

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener
Parameters:
e -

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener
Parameters:
e -

isObjectExisting

public abstract boolean isObjectExisting(Point position)
Parameters:
position -
Returns:
boolean