at.tuwien.ifs.somtoolbox.visualization.clustering
Class LabelPositioning
java.lang.Object
at.tuwien.ifs.somtoolbox.visualization.clustering.LabelPositioning
public class LabelPositioning
- extends Object
Methods for positioning the label inside a cluster.
- Version:
- $Id: LabelPositioning.java 3358 2010-02-11 14:35:07Z mayer $
- Author:
- Angela Roiger
Method Summary |
static void |
center(ClusterNode cluster,
edu.umd.cs.piccolo.PNode label)
Place the label in the center of the surrounding rectangle of the cluster. |
static void |
centroid(ClusterNode cluster,
edu.umd.cs.piccolo.PNode label)
Place the label in the centroid of the cluster. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabelPositioning
public LabelPositioning()
center
public static void center(ClusterNode cluster,
edu.umd.cs.piccolo.PNode label)
- Place the label in the center of the surrounding rectangle of the cluster.
centroid
public static void centroid(ClusterNode cluster,
edu.umd.cs.piccolo.PNode label)
- Place the label in the centroid of the cluster.