wt.clients.beans.monitor
Class MonitorCellRenderer

java.lang.Object
  extended byjava.awt.Component
      extended bywt.clients.beans.graph.AbstractGraphViewRenderer
          extended bywt.clients.beans.graph.DefaultGraphViewCellRenderer
              extended bywt.clients.beans.monitor.MonitorCellRenderer
All Implemented Interfaces:
GraphViewCellRenderer, ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
MonitorTimeCellRenderer

public class MonitorCellRenderer
extends DefaultGraphViewCellRenderer
implements Serializable

This class represent the painter used by the monitor for rendering the different node . It is designed to paint MonitorNode only !

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private static String CLASSNAME
           
private static Color CLOSED_ABORTED_COLOR
           
private static Color CLOSED_COMPLETED_EXECUTED_COLOR
           
private static Color CLOSED_COMPLETED_NOT_EXECUTED_COLOR
           
private static Color CLOSED_TERMINATED_COLOR
           
private  Hashtable colorCode
           
private static Color CONNECTOR_DISABLED_COLOR
           
private static Color CONNECTOR_ENABLED_COLOR
           
private static Color DEFAULT_ICON_BACKGROUND_COLOR
           
private static Color ICON_HIGHLIGHT_COLOR
           
private static Color ICON_TEXT_COLOR
           
private static Color OPEN_NOT_RUNNING_NOT_STARTED_COLOR
           
private static Color OPEN_NOT_RUNNING_SUSPENDED_COLOR
           
private static Color OPEN_NOT_RUNNING_SUSPENDED_DISABLED_COLOR
           
private static Color OPEN_NOT_RUNNING_SUSPENDED_INTERMITTED_COLOR
           
private static Color OPEN_RUNNING_COLOR
           
private static String RESOURCE
           
private static String versionID
           
 
Fields inherited from class wt.clients.beans.graph.DefaultGraphViewCellRenderer
f, fm
 
Fields inherited from class wt.clients.beans.graph.AbstractGraphViewRenderer
FONT_SIZE, GRAPH_VIEW, ICON_HEIGHT, ICON_WIDTH, MARGIN, PAD_HEIGHT, PAD_WIDTH
 
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
MonitorCellRenderer()
           
 
Method Summary
 Hashtable getColorCode()
          Gets the value of the attribute: colorCode.
 void paint(Graphics g)
           
 void setColorCode(Hashtable a_ColorCode)
          Sets the value of the attribute: colorCode.
 
Methods inherited from class wt.clients.beans.graph.DefaultGraphViewCellRenderer
getBackground, getGraphNode, getGraphViewCellRendererComponent, getLocation, getSelectionZone, setBackground, setGraphNode, setNode
 
Methods inherited from class wt.clients.beans.graph.AbstractGraphViewRenderer
getGraphView, setGraphView
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
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

colorCode

private Hashtable colorCode

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

DEFAULT_ICON_BACKGROUND_COLOR

private static final Color DEFAULT_ICON_BACKGROUND_COLOR

ICON_HIGHLIGHT_COLOR

private static final Color ICON_HIGHLIGHT_COLOR

ICON_TEXT_COLOR

private static final Color ICON_TEXT_COLOR

OPEN_RUNNING_COLOR

private static final Color OPEN_RUNNING_COLOR

OPEN_NOT_RUNNING_NOT_STARTED_COLOR

private static final Color OPEN_NOT_RUNNING_NOT_STARTED_COLOR

OPEN_NOT_RUNNING_SUSPENDED_COLOR

private static final Color OPEN_NOT_RUNNING_SUSPENDED_COLOR

CLOSED_TERMINATED_COLOR

private static final Color CLOSED_TERMINATED_COLOR

CLOSED_ABORTED_COLOR

private static final Color CLOSED_ABORTED_COLOR

OPEN_NOT_RUNNING_SUSPENDED_DISABLED_COLOR

private static final Color OPEN_NOT_RUNNING_SUSPENDED_DISABLED_COLOR

OPEN_NOT_RUNNING_SUSPENDED_INTERMITTED_COLOR

private static final Color OPEN_NOT_RUNNING_SUSPENDED_INTERMITTED_COLOR

CLOSED_COMPLETED_NOT_EXECUTED_COLOR

private static final Color CLOSED_COMPLETED_NOT_EXECUTED_COLOR

CLOSED_COMPLETED_EXECUTED_COLOR

private static final Color CLOSED_COMPLETED_EXECUTED_COLOR

CONNECTOR_ENABLED_COLOR

private static final Color CONNECTOR_ENABLED_COLOR

CONNECTOR_DISABLED_COLOR

private static final Color CONNECTOR_DISABLED_COLOR
Constructor Detail

MonitorCellRenderer

public MonitorCellRenderer()
Method Detail

getColorCode

public Hashtable getColorCode()
Gets the value of the attribute: colorCode.

Returns:
Hashtable

setColorCode

public void setColorCode(Hashtable a_ColorCode)
                  throws WTPropertyVetoException
Sets the value of the attribute: colorCode.

Parameters:
a_ColorCode -
Throws:
WTPropertyVetoException

paint

public void paint(Graphics g)
Overrides:
paint in class DefaultGraphViewCellRenderer
Parameters:
g -