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

java.lang.Object
  extended by 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

Constructor Summary
LabelPositioning()
           
 
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
 

Constructor Detail

LabelPositioning

public LabelPositioning()
Method Detail

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.