org.wilmascope.view
Class ClusterView

java.lang.Object
  extended by org.wilmascope.patterns.Prototype
      extended by org.wilmascope.view.GraphElementView
          extended by org.wilmascope.view.NodeView
              extended by org.wilmascope.view.ClusterView
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, NodeAbility, NodeView, Viewable, View2D
Direct Known Subclasses:
BoxClusterView, CollapsedClusterView, ColumnClusterView, ConeClusterView, DefaultClusterView, DiscClusterView, EllipsoidClusterView, TubeClusterView

public abstract class ClusterView
extends NodeView

Title: Description: Copyright: Copyright (c) 2001 Company:

Version:
1.0
Author:
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.wilmascope.view.GraphElementView
t3d
 
Constructor Summary
ClusterView()
           
 
Method Summary
 void draw()
          update the cluster's size and position on screen
 Cluster getCluster()
           
protected  float getCollapsedRadius(float density)
           
 javax.swing.ImageIcon getIcon()
           
 void setCollapsedView()
          the collapsed cluster view will be opaque and will have radius proportional to the mass where: mass = density * volume = 4/3 PI r^3 density is arbitrarily chosen to make the collapsed cluster a convenient size
 void setExpandedView()
           
 
Methods inherited from class org.wilmascope.view.NodeView
addGeometryObserver, draw2D, getCanvasPosition, getNode, getProperties, getRadius, getVWorldPosition, hideAnchor, moveToCanvasPos, setColour, setNode, setProperties, setRadius, showAnchor, showLabel
 
Methods inherited from class org.wilmascope.view.GraphElementView
addLabel, addLiveBranch, addPickingClient, addShape, addTransformGroupChild, defaultColour, delete, getAppearance, getAxisAngle4f, getBranchGroup, getColor3f, getColour, getDefaultColour, getGraphCanvas, getLabel, getTransformGroup, getUserData, hide, highlightColour, init, initGraphElement, isDefaultColour, makePickable, picked, removeLabel, removePickingClient, setColour, setColour, setFullTransform, setFullTransform, setLabel, setLabel, setLabel, setPickable, setResizeTranslateTransform, setTransformGroupTransform, setTranslation, setTransparencyAttributes, setupDefaultAppearance, setupDefaultMaterial, setupHighlightAppearance, setupHighlightMaterial, setUserData, show, transform
 
Methods inherited from class org.wilmascope.patterns.Prototype
clone, getTypeName, setTypeName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wilmascope.graph.Viewable
delete, hide, setPickable, show
 

Constructor Detail

ClusterView

public ClusterView()
Method Detail

draw

public void draw()
update the cluster's size and position on screen

Specified by:
draw in interface Viewable
Overrides:
draw in class NodeView

setExpandedView

public void setExpandedView()

setCollapsedView

public void setCollapsedView()
the collapsed cluster view will be opaque and will have radius proportional to the mass where: mass = density * volume = 4/3 PI r^3 density is arbitrarily chosen to make the collapsed cluster a convenient size


getCollapsedRadius

protected float getCollapsedRadius(float density)

getCluster

public Cluster getCluster()

getIcon

public javax.swing.ImageIcon getIcon()
Overrides:
getIcon in class NodeView