Save This Page
Home » openjdk-7 » net.hivecell » hive » agent » hiveui » iconicui » [javadoc | source]
net.hivecell.hive.agent.hiveui.iconicui
public class: CellListCanvas [javadoc | source]
java.lang.Object
   java.awt.Component
      java.awt.Canvas
         net.hivecell.hive.support.BaseCanvas
            net.hivecell.hive.agent.hiveui.iconicui.CellListCanvas

All Implemented Interfaces:
    MouseListener, MouseMotionListener, Accessible, MenuContainer, Serializable, ImageObserver

Panel showing the cells being monitored and this information about them: - uptime - colored border legend - name - displaying icons or not (can be set) NOTE: This currently does not display the uptimes of remote cells. This is due to the fact that the CellListAgentImpl relies on a centralized "master" cell to give it updates every so often (this is currently pinot-noir, which is out of date. This also desperately needs to be made a little more efficient. right now it gets a vector of celllistinfo objects every time some happens -- it needs to be able to deal with more incremental information to deal with the bandwidth better
Field Summary
protected  BaseGUIAgentImpl uiAgent     
protected  Vector monitoredCells     
protected  Vector orderedCells     
protected  Hashtable cellColors     
protected  Hashtable cellInfo     
protected  Hashtable cellRects     
protected  Hashtable shortNames     
protected  Dimension rectSize     
protected  CellAddress selectedCell     
protected  Color unmonitoredCellColor     
Fields inherited from net.hivecell.hive.support.BaseCanvas:
imageBuffer,  imageBufferSize,  doubleBuffering
Fields inherited from java.awt.Component:
TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  RIGHT_ALIGNMENT,  LEFT_ALIGNMENT,  treeLock,  x,  y,  width,  height,  foreground,  background,  font,  peerFont,  cursor,  locale,  ignoreRepaint,  visible,  enabled,  valid,  dropTarget,  popups,  name,  nameExplicitlySet,  focusable,  isFocusTraversableOverridden,  focusTraversalKeys,  focusTraversalKeysEnabled,  minSize,  prefSize,  newEventsOnly,  eventMask,  changeSupport,  isPacked,  componentSerializedDataVersion,  accessibleContext,  componentListener,  focusListener,  keyListener,  mouseListener,  mouseMotionListener,  mouseWheelListener,  inputMethodListener,  hierarchyListener,  hierarchyBoundsListener,  parent,  peer,  orientation,  graphicsConfig,  bufferStrategy
Constructor:
 public CellListCanvas(BaseGUIAgentImpl uiAgent) 
Method from net.hivecell.hive.agent.hiveui.iconicui.CellListCanvas Summary:
addMonitoredCell,   addUnmonitoredCell,   getColor,   getUI,   mouseClicked,   mouseDragged,   mouseEntered,   mouseExited,   mouseMoved,   mousePressed,   mouseReleased,   newCellInfo,   render,   stopMonitoringCell
Methods from net.hivecell.hive.support.BaseCanvas:
adjustDisplayToNewSize,   clearImageBuffer,   paint,   render,   render,   setDoubleBuffering,   update,   update
Methods from java.awt.Canvas:
addNotify,   constructComponentName,   createBufferStrategy,   createBufferStrategy,   getAccessibleContext,   getBufferStrategy,   paint,   postsOldMouseEvents,   update
Methods from 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,   dispatchEventImpl,   doLayout,   enable,   enable,   enableEvents,   enableInputMethods,   eventTypeEnabled,   findNextFocusComponent,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   generateName,   getAccessibleContext,   getAlignmentX,   getAlignmentY,   getBackground,   getBounds,   getBounds,   getColorModel,   getComponentAt,   getComponentAt,   getComponentListeners,   getComponentOrientation,   getCursor,   getDropTarget,   getFocusCycleRootAncestor,   getFocusListeners,   getFocusTraversalKeys,   getFocusTraversalKeysEnabled,   getFont,   getFontMetrics,   getForeground,   getGraphics,   getGraphicsConfiguration,   getGraphicsConfigurationImpl,   getHeight,   getHierarchyBoundsListeners,   getHierarchyListeners,   getIgnoreRepaint,   getInputContext,   getInputMethodListeners,   getInputMethodRequests,   getKeyListeners,   getListeners,   getLocale,   getLocation,   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,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusable,   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,   paint,   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,   setBackground,   setBounds,   setBounds,   setComponentOrientation,   setCursor,   setDropTarget,   setEnabled,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusable,   setFont,   setForeground,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setName,   setPeer,   setSize,   setSize,   setVisible,   show,   show,   size,   toString,   transferFocus,   transferFocusBackward,   transferFocusUpCycle,   translateEvent,   update,   validate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.hivecell.hive.agent.hiveui.iconicui.CellListCanvas Detail:
 public Color addMonitoredCell(CellAddress cell) 
    Create a color that the UI will use to distinguish this cell from the others.
 public  void addUnmonitoredCell(CellAddress cell) 
 public Color getColor(CellAddress cell) 
    Get the color of cell's border.
 public BaseGUIAgentImpl getUI() 
 public  void mouseClicked(MouseEvent event) 
 public  void mouseDragged(MouseEvent event) 
 public  void mouseEntered(MouseEvent event) 
 public  void mouseExited(MouseEvent event) 
 public  void mouseMoved(MouseEvent event) 
 public  void mousePressed(MouseEvent event) 
    Mouse handling code
 public  void mouseReleased(MouseEvent event) 
    We don't care about these events
 public  void newCellInfo(Vector v) 
    Called by the CellListAgentImpl in its update loop,
 public  void render(Graphics g) 
 public  void stopMonitoringCell(CellAddress cell) 
    Remove a cell and its appropriate color from the database.