at.tuwien.ifs.somtoolbox.visualization.clustering
Class ClusterElementsStorage
java.lang.Object
at.tuwien.ifs.somtoolbox.visualization.clustering.ClusterElementsStorage
- All Implemented Interfaces:
- java.io.Serializable
public class ClusterElementsStorage
- extends java.lang.Object
- implements java.io.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
Method Summary |
void |
changeBorderStroke(java.awt.BasicStroke bs)
Changes the stroke of the clusters' border lines. |
void |
changeFont(java.awt.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 |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
clusterBorders
public java.util.ArrayList<edu.umd.cs.piccolo.PNode> clusterBorders
clusterLabels
public java.util.ArrayList<edu.umd.cs.piccolo.PNode> clusterLabels
clusterColors
public java.util.ArrayList<ColoredClusterPNode> clusterColors
sticky
public boolean sticky
defaultFont
public static java.awt.Font defaultFont
ClusterElementsStorage
public ClusterElementsStorage()
changeBorderStroke
public void changeBorderStroke(java.awt.BasicStroke bs)
- Changes the stroke of the clusters' border lines.
- Parameters:
bs
- the new BasicStroke for the borders
changeFont
public void changeFont(java.awt.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