edu.jhu.ece.iacl.jist.pipeline.graph
Class PipeAlgorithmGroupView.ActivityRenderer

java.lang.Object
  extended by VertexRenderer
      extended by edu.jhu.ece.iacl.jist.pipeline.graph.PipeAlgorithmGroupView.ActivityRenderer
Enclosing class:
PipeAlgorithmGroupView

public static class PipeAlgorithmGroupView.ActivityRenderer
extends VertexRenderer

The Class ActivityRenderer.


Field Summary
protected  java.awt.Color graphForeground
          Holds the background and foreground of the graph.
static java.awt.Rectangle handle
          Default handle bounds for renderer, '+' or '-'.
protected  java.awt.Color handleColor
          Holds the background and foreground of the graph.
protected  boolean isGroup
          Specifies whether the current view is a rich text value, and if the image should be stretched.
 
Constructor Summary
PipeAlgorithmGroupView.ActivityRenderer()
           
 
Method Summary
 java.awt.Dimension getPreferredSize()
          Return a slightly larger preferred size than for a rectangle.
 java.awt.Component getRendererComponent(JGraph graph, CellView view, boolean sel, boolean focus, boolean preview)
          Overrides the parent implementation to return the value component stored in the user object instead of this renderer if a value component exists.
 boolean inHitRegion(java.awt.geom.Point2D pt)
          Detect whether or not a point has hit the group/ungroup image.
 void paint(java.awt.Graphics g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handle

public static java.awt.Rectangle handle
Default handle bounds for renderer, '+' or '-'.


isGroup

protected boolean isGroup
Specifies whether the current view is a rich text value, and if the image should be stretched.


handleColor

protected java.awt.Color handleColor
Holds the background and foreground of the graph.


graphForeground

protected java.awt.Color graphForeground
Holds the background and foreground of the graph.

Constructor Detail

PipeAlgorithmGroupView.ActivityRenderer

public PipeAlgorithmGroupView.ActivityRenderer()
Method Detail

getPreferredSize

public java.awt.Dimension getPreferredSize()
Return a slightly larger preferred size than for a rectangle.

Returns:
the preferred size

getRendererComponent

public java.awt.Component getRendererComponent(JGraph graph,
                                               CellView view,
                                               boolean sel,
                                               boolean focus,
                                               boolean preview)
Overrides the parent implementation to return the value component stored in the user object instead of this renderer if a value component exists. This applies some of the values installed to this renderer to the value component (border, opaque) if the latter is a JComponent.

Parameters:
graph - the graph
view - the view
sel - the sel
focus - the focus
preview - the preview
Returns:
Returns a configured renderer for the specified view.

inHitRegion

public boolean inHitRegion(java.awt.geom.Point2D pt)
Detect whether or not a point has hit the group/ungroup image.

Parameters:
pt - the point to check
Returns:
whether or not the point lies within the handle

paint

public void paint(java.awt.Graphics g)