infovis.visualization
Interface LabelClipper

All Known Implementing Classes:
EndLabelClipper

public interface LabelClipper

Class LabelClipper

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

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.
 

Method Detail

clip

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.

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.