wt.clients.beans.graph
Class AbstractGraphView
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
wt.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
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
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 |
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
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()
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