infovis.visualization
Class EndLabelClipper

java.lang.Object
  extended by infovis.visualization.EndLabelClipper
All Implemented Interfaces:
LabelClipper

public class EndLabelClipper
extends Object
implements LabelClipper

Class EndLabelClipper

Version:
$Revision: 1.2 $
Author:
Jean-Daniel Fekete

Constructor Summary
EndLabelClipper()
           
 
Method Summary
 String clip(String label, Graphics2D graphics, Rectangle2D labelBounds, double width, double height)
          Clip a specified label string according to the width and height of its allocated bounds.
static EndLabelClipper getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndLabelClipper

public EndLabelClipper()
Method Detail

getInstance

public static EndLabelClipper getInstance()

clip

public String clip(String label,
                   Graphics2D graphics,
                   Rectangle2D labelBounds,
                   double width,
                   double height)
Description copied from interface: LabelClipper
Clip a specified label string according to the width and height of its allocated bounds.

Specified by:
clip in interface LabelClipper
Parameters:
label - the label
graphics - the graphics
labelBounds - the original bounds of the label. WARNING: On exit, it should be set to the new computed bounds.
width - the bounds width
height - the bounds height
Returns:
the string clipped.


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.