wt.clients.beans.graph
Class GraphNodeComponent

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended bywt.clients.beans.graph.GraphComponent
              extended bywt.clients.beans.graph.GraphNodeComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class GraphNodeComponent
extends GraphComponent

See Also:
Serialized Form

Nested Class Summary
(package private)  class GraphNodeComponent.NameMouseListener
           
(package private)  class GraphNodeComponent.NodeMouseListener
           
 
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
(package private)  ActionListener actionListener
           
private  ActionLoader actionLoader
           
(package private)  String clickHyperlinkAction
           
(package private)  Color color
           
(package private)  Point drawAt
           
(package private)  Image image
           
(package private)  GraphLabelComponent labelComponent
           
(package private)  PopupMenu menu
           
(package private)  GraphNode node
           
private static String versionID
           
 
Fields inherited from class wt.clients.beans.graph.GraphComponent
selected
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GraphNodeComponent()
           
GraphNodeComponent(GraphNode node)
           
 
Method Summary
 void addActionListener(ActionListener listener)
           
 void addNotify()
           
(package private)  boolean containsGlobal(int x, int y)
           
 ActionLoader getActionLoader()
          Gets the value of the attribute: actionLoader.
 String getClickHyperlinkAction()
          Gets the value of the attribute: clickHyperlinkAction.
(package private)  Point getFromPoint()
           
 GraphNode getGraphNode()
           
 GraphLabelComponent getLabelComponent()
           
(package private)  Point getToPoint()
           
 void paint(Graphics g)
           
 void setActionLoader(ActionLoader a_ActionLoader)
          Sets the value of the attribute: actionLoader.
 void setClickHyperlinkAction(String a_ClickHyperlinkAction)
          Sets the value of the attribute: clickHyperlinkAction.
 void setGraphNode(GraphNode node)
           
 void setLocation(Point location)
           
 void setPopupMenu(PopupMenu menu)
           
 void setSelected(boolean selected)
           
 String toString()
           
 void updateDescription()
           
 void updateImage()
           
 
Methods inherited from class wt.clients.beans.graph.GraphComponent
isSelected, update
 
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, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, setName, setSize, setSize, setVisible, show, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

node

GraphNode node

image

Image image

color

Color color

menu

PopupMenu menu

labelComponent

GraphLabelComponent labelComponent

drawAt

Point drawAt

clickHyperlinkAction

String clickHyperlinkAction

actionLoader

private ActionLoader actionLoader

actionListener

transient ActionListener actionListener
Constructor Detail

GraphNodeComponent

public GraphNodeComponent()

GraphNodeComponent

public GraphNodeComponent(GraphNode node)
Method Detail

setGraphNode

public void setGraphNode(GraphNode node)

getGraphNode

public GraphNode getGraphNode()

getLabelComponent

public GraphLabelComponent getLabelComponent()

getActionLoader

public ActionLoader getActionLoader()
Gets the value of the attribute: actionLoader.

Returns:
ActionLoader

setActionLoader

public void setActionLoader(ActionLoader a_ActionLoader)
Sets the value of the attribute: actionLoader.

Parameters:
a_ActionLoader -

getClickHyperlinkAction

public String getClickHyperlinkAction()
Gets the value of the attribute: clickHyperlinkAction.

Returns:
String

setClickHyperlinkAction

public void setClickHyperlinkAction(String a_ClickHyperlinkAction)
Sets the value of the attribute: clickHyperlinkAction.


addActionListener

public void addActionListener(ActionListener listener)

setPopupMenu

public void setPopupMenu(PopupMenu menu)

addNotify

public void addNotify()

setLocation

public void setLocation(Point location)

updateImage

public void updateImage()

updateDescription

public void updateDescription()

getFromPoint

Point getFromPoint()

getToPoint

Point getToPoint()

paint

public void paint(Graphics g)

setSelected

public void setSelected(boolean selected)
Overrides:
setSelected in class GraphComponent

toString

public String toString()

containsGlobal

boolean containsGlobal(int x,
                       int y)