at.tuwien.ifs.somtoolbox.visualization.clustering
Class ClusterElementsStorage

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.visualization.clustering.ClusterElementsStorage
All Implemented Interfaces:
Serializable

public class ClusterElementsStorage
extends Object
implements Serializable

A container to store borders and labels of one level of a clustering

Version:
$Id: ClusterElementsStorage.java 3888 2010-11-02 17:42:53Z frank $
Author:
Angela Roiger
See Also:
Serialized Form

Field Summary
 ArrayList<edu.umd.cs.piccolo.PNode> clusterBorders
           
 ArrayList<ColoredClusterPNode> clusterColors
           
 ArrayList<edu.umd.cs.piccolo.PNode> clusterLabels
           
static Font defaultFont
           
private static long serialVersionUID
           
 boolean sticky
           
 
Constructor Summary
ClusterElementsStorage()
           
 
Method Summary
 void changeBorderStroke(BasicStroke bs)
          Changes the stroke of the clusters' border lines.
 void changeFont(Font f)
          Changes the Font of all labels texts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

clusterBorders

public ArrayList<edu.umd.cs.piccolo.PNode> clusterBorders

clusterLabels

public ArrayList<edu.umd.cs.piccolo.PNode> clusterLabels

clusterColors

public ArrayList<ColoredClusterPNode> clusterColors

sticky

public boolean sticky

defaultFont

public static Font defaultFont
Constructor Detail

ClusterElementsStorage

public ClusterElementsStorage()
Method Detail

changeBorderStroke

public void changeBorderStroke(BasicStroke bs)
Changes the stroke of the clusters' border lines.

Parameters:
bs - the new BasicStroke for the borders

changeFont

public void changeFont(Font f)
Changes the Font of all labels texts. If there is more than one text inside a label the first one will have the specified Font, and the others will have the same Font but only half fontsize. Changes the yOffset of the texts so they are not overlapping/too far apart.

Parameters:
f - the Font