anl.aida.viz
Class SimilarityClusterDisplay<T>

java.lang.Object
  extended by edu.umd.cs.piccolo.PNode
      extended by edu.umd.cs.piccolo.PLayer
          extended by anl.aida.viz.SimilarityClusterDisplay<T>
All Implemented Interfaces:
AIDA2DLayer, java.awt.print.Printable, java.io.Serializable, java.lang.Cloneable

public class SimilarityClusterDisplay<T>
extends edu.umd.cs.piccolo.PLayer
implements AIDA2DLayer

Date: Feb 11, 2009 11:43:03 AM

See Also:
Serialized Form

Nested Class Summary
private  class SimilarityClusterDisplay.BoundsFilter
           
 
Nested classes/interfaces inherited from class edu.umd.cs.piccolo.PNode
edu.umd.cs.piccolo.PNode.PSceneGraphDelegate
 
Field Summary
private  Canvas2D canvas
           
static java.lang.String CENTER
           
static java.lang.String CENTROID
           
private  Clusters<T> clusters
           
private  SimilarityClusterLayout<T> layout
           
private  SelectionListener<T> lensListener
           
private static java.awt.Color NODE_COLOR
           
private  SelectionManager<T> selection
           
private  ItemSelectionHandler selectionHandler
           
 
Fields inherited from class edu.umd.cs.piccolo.PLayer
PROPERTY_CAMERAS, PROPERTY_CODE_CAMERAS
 
Fields inherited from class edu.umd.cs.piccolo.PNode
PROPERTY_BOUNDS, PROPERTY_CHILDREN, PROPERTY_CHILDREN_PICKABLE, PROPERTY_CLIENT_PROPERTIES, PROPERTY_CODE_BOUNDS, PROPERTY_CODE_CHILDREN, PROPERTY_CODE_CHILDREN_PICKABLE, PROPERTY_CODE_CLIENT_PROPERTIES, PROPERTY_CODE_FULL_BOUNDS, PROPERTY_CODE_PAINT, PROPERTY_CODE_PARENT, PROPERTY_CODE_PICKABLE, PROPERTY_CODE_TRANSFORM, PROPERTY_CODE_TRANSPARENCY, PROPERTY_CODE_VISIBLE, PROPERTY_FULL_BOUNDS, PROPERTY_PAINT, PROPERTY_PARENT, PROPERTY_PICKABLE, PROPERTY_TRANSFORM, PROPERTY_TRANSPARENCY, PROPERTY_VISIBLE, SCENE_GRAPH_DELEGATE
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
SimilarityClusterDisplay(Clusters<T> clusters, java.awt.Dimension size)
           
 
Method Summary
 void addToCanvas(Canvas2D canvas)
           
private  void create()
           
 void initialize()
           
 void initToolBar(javax.swing.JToolBar bar, javax.swing.ButtonGroup grp)
           
 void lensOver(edu.umd.cs.piccolo.util.PBounds bounds, double radius, Canvas2D canvas)
           
static void main(java.lang.String[] args)
           
 void marqueeOver(edu.umd.cs.piccolo.util.PBounds bounds, boolean ctrlDown)
           
 void nodeSelected(edu.umd.cs.piccolo.PNode node, boolean ctrlDown)
          Called when an individual node has been selected.
 void reset()
           
 void resized(java.awt.Dimension size)
           
 void selectionEnabled(boolean enabled)
          Called when selection mode is enabled or disabled.
 void setLensListener(SelectionListener<T> listener)
           
 
Methods inherited from class edu.umd.cs.piccolo.PLayer
addCamera, addCamera, getCamera, getCameraCount, getCamerasReference, notifyCameras, removeCamera, removeCamera, repaintFrom
 
Methods inherited from class edu.umd.cs.piccolo.PNode
addActivity, addAttribute, addChild, addChild, addChildren, addClientProperty, addInputEventListener, addPropertyChangeListener, addPropertyChangeListener, animateToBounds, animateToColor, animateToPositionScaleRotation, animateToTransform, animateToTransparency, animateTransformToBounds, centerBoundsOnPoint, centerFullBoundsOnPoint, clone, computeFullBounds, endResizeBounds, findIntersectingNodes, fireChildPropertyChange, firePropertyChange, fullIntersects, fullPaint, fullPick, getAllNodes, getAllNodes, getAttribute, getAttribute, getBooleanAttribute, getBounds, getBoundsChanged, getBoundsReference, getBoundsVolatile, getChild, getChildBoundsInvalid, getChildBoundsVolatile, getChildPaintInvalid, getChildrenCount, getChildrenIterator, getChildrenPickable, getChildrenReference, getClientProperties, getClientProperty, getClientPropertyKeysEnumeration, getClientPropertyKeysIterator, getDoubleAttribute, getFullBounds, getFullBoundsInvalid, getFullBoundsReference, getGlobalBounds, getGlobalFullBounds, getGlobalRotation, getGlobalScale, getGlobalToLocalTransform, getGlobalTranslation, getHeight, getIntegerAttribute, getInverseTransform, getListenerList, getLocalToGlobalTransform, getOccluded, getOffset, getPaint, getPaintInvalid, getParent, getPickable, getPropertyChangeParentMask, getRoot, getRotation, getScale, getTransform, getTransformReference, getTransparency, getUnionOfChildrenBounds, getVisible, getWidth, getX, getXOffset, getY, getYOffset, globalToLocal, globalToLocal, globalToLocal, indexOfChild, internalUpdateBounds, intersects, invalidateFullBounds, invalidateLayout, invalidatePaint, isAncestorOf, isDescendentOf, isDescendentOfRoot, isOpaque, layoutChildren, lerp, localToGlobal, localToGlobal, localToGlobal, localToParent, localToParent, localToParent, moveInBackOf, moveInFrontOf, moveToBack, moveToFront, offset, paint, paintAfterChildren, paramString, parentBoundsChanged, parentToLocal, parentToLocal, parentToLocal, pick, pickAfterChildren, position, print, print, removeAllChildren, removeChild, removeChild, removeChildren, removeFromParent, removeInputEventListener, removePropertyChangeListener, removePropertyChangeListener, repaint, reparent, replaceWith, resetBounds, rotate, rotateAboutPoint, rotateAboutPoint, rotateInPlace, scale, scaleAboutPoint, scaleAboutPoint, setBounds, setBounds, setBoundsChanged, setChildBoundsInvalid, setChildBoundsVolatile, setChildPaintInvalid, setChildrenPickable, setFullBoundsInvalid, setGlobalRotation, setGlobalScale, setGlobalTranslation, setHeight, setOccluded, setOffset, setOffset, setPaint, setPaintInvalid, setParent, setPickable, setPropertyChangeParentMask, setRotation, setScale, setTransform, setTransparency, setVisible, setWidth, setX, setY, signalBoundsChanged, startResizeBounds, toImage, toImage, toImage, toString, transformBy, translate, validateFullBounds, validateFullPaint
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CENTROID

public static final java.lang.String CENTROID
See Also:
Constant Field Values

CENTER

public static final java.lang.String CENTER
See Also:
Constant Field Values

layout

private SimilarityClusterLayout<T> layout

clusters

private Clusters<T> clusters

lensListener

private SelectionListener<T> lensListener

NODE_COLOR

private static final java.awt.Color NODE_COLOR

selection

private SelectionManager<T> selection

selectionHandler

private ItemSelectionHandler selectionHandler

canvas

private Canvas2D canvas
Constructor Detail

SimilarityClusterDisplay

public SimilarityClusterDisplay(Clusters<T> clusters,
                                java.awt.Dimension size)
Method Detail

setLensListener

public void setLensListener(SelectionListener<T> listener)

initialize

public void initialize()

create

private void create()

reset

public void reset()

lensOver

public void lensOver(edu.umd.cs.piccolo.util.PBounds bounds,
                     double radius,
                     Canvas2D canvas)
Specified by:
lensOver in interface AIDA2DLayer

marqueeOver

public void marqueeOver(edu.umd.cs.piccolo.util.PBounds bounds,
                        boolean ctrlDown)
Specified by:
marqueeOver in interface AIDA2DLayer

addToCanvas

public void addToCanvas(Canvas2D canvas)
Specified by:
addToCanvas in interface AIDA2DLayer

selectionEnabled

public void selectionEnabled(boolean enabled)
Called when selection mode is enabled or disabled.

Specified by:
selectionEnabled in interface AIDA2DLayer
Parameters:
enabled - state of selection mode.

nodeSelected

public void nodeSelected(edu.umd.cs.piccolo.PNode node,
                         boolean ctrlDown)
Called when an individual node has been selected.

Specified by:
nodeSelected in interface AIDA2DLayer
Parameters:
node - the selected node
ctrlDown - whether or not the the ctrl key was down when the node was selected

initToolBar

public void initToolBar(javax.swing.JToolBar bar,
                        javax.swing.ButtonGroup grp)
Specified by:
initToolBar in interface AIDA2DLayer

resized

public void resized(java.awt.Dimension size)
Specified by:
resized in interface AIDA2DLayer

main

public static void main(java.lang.String[] args)