infovis.visualization
Class EndLabelClipper
java.lang.Object
infovis.visualization.EndLabelClipper
- All Implemented Interfaces:
- LabelClipper
public class EndLabelClipper
- extends Object
- implements LabelClipper
Class EndLabelClipper
- Version:
- $Revision: 1.2 $
- Author:
- Jean-Daniel Fekete
EndLabelClipper
public EndLabelClipper()
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 labelgraphics
- the graphicslabelBounds
- the original bounds of the label.
WARNING: On exit, it should be set to the new computed bounds.width
- the bounds widthheight
- the bounds height
- Returns:
- the string clipped.
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.