infovis.utils
Class InfovisUtilities

java.lang.Object
  extended by infovis.utils.InfovisUtilities

public abstract class InfovisUtilities
extends Object

Utility methods for drawing.

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

Field Summary
static float[] DILATE_KERNEL
          The kernel of the dilatation convolution.
static BufferedImageOp DILATE_OP
          The convoluton ImageOp.
static Color TRANSPARENT
          The transparent Color.
static int[] TRANSPARENT_AND_WHITE
          The Color components of the IndexColorModel.
static Color WHITE
          The WHITE outline component.
 
Constructor Summary
InfovisUtilities()
           
 
Method Summary
static void drawString(Graphics2D graphics, String str, Rectangle2D bounds, float hjustif, float vjustif, boolean outlined)
           
static void drawString(Graphics2D graphics, String str, Rectangle2D labelBounds, Rectangle2D bounds, float hjustif, float vjustif, boolean outlined)
           
static void drawStringVertical(Graphics2D graphics, String str, Rectangle2D bounds, float hjustif, float vjustif, boolean outlined)
           
static void drawStringVertical(Graphics2D graphics, String str, Rectangle2D labelBounds, Rectangle2D bounds, float hjustif, float vjustif, boolean outlined)
           
static BufferedImage outlineString(String s, Font font, Rectangle rect)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DILATE_KERNEL

public static final float[] DILATE_KERNEL
The kernel of the dilatation convolution.


DILATE_OP

public static final BufferedImageOp DILATE_OP
The convoluton ImageOp.


TRANSPARENT_AND_WHITE

public static final int[] TRANSPARENT_AND_WHITE
The Color components of the IndexColorModel.


TRANSPARENT

public static final Color TRANSPARENT
The transparent Color.


WHITE

public static final Color WHITE
The WHITE outline component.

Constructor Detail

InfovisUtilities

public InfovisUtilities()
Method Detail

drawString

public static void drawString(Graphics2D graphics,
                              String str,
                              Rectangle2D labelBounds,
                              Rectangle2D bounds,
                              float hjustif,
                              float vjustif,
                              boolean outlined)

drawString

public static void drawString(Graphics2D graphics,
                              String str,
                              Rectangle2D bounds,
                              float hjustif,
                              float vjustif,
                              boolean outlined)

drawStringVertical

public static void drawStringVertical(Graphics2D graphics,
                                      String str,
                                      Rectangle2D labelBounds,
                                      Rectangle2D bounds,
                                      float hjustif,
                                      float vjustif,
                                      boolean outlined)

drawStringVertical

public static void drawStringVertical(Graphics2D graphics,
                                      String str,
                                      Rectangle2D bounds,
                                      float hjustif,
                                      float vjustif,
                                      boolean outlined)

outlineString

public static BufferedImage outlineString(String s,
                                          Font font,
                                          Rectangle rect)


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