|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wilmascope.patterns.Prototype
org.wilmascope.view.GraphElementView
org.wilmascope.view.NodeView
org.wilmascope.view.ClusterView
public abstract class ClusterView
Title: Description: Copyright: Copyright (c) 2001 Company:
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.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 |
---|
public ClusterView()
Method Detail |
---|
public void draw()
draw
in interface Viewable
draw
in class NodeView
public void setExpandedView()
public void setCollapsedView()
protected float getCollapsedRadius(float density)
public Cluster getCluster()
public javax.swing.ImageIcon getIcon()
getIcon
in class NodeView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |