jjdh API

jjdh.java.util
Class FontTools

java.lang.Object
  extended by jjdh.java.util.FontTools

public class FontTools
extends Object


Constructor Summary
FontTools()
           
 
Method Summary
protected static Rectangle2D apply(Rectangle2D bounds, AffineTransform transform)
           
protected static void draw(Graphics2D g, String text, Font font, Color color)
           
protected static void draw(Graphics2D g, String text, Font font, Color color, AffineTransform transform)
           
static void draw(Graphics2D g, String text, Font font, Color color, float fontSize)
           
static void draw(Graphics2D g, String text, Font font, Color color, int x, int y, float fontSize)
           
static void draw(Graphics2D g, String text, Font font, Color color, int x, int y, int width, int height)
           
protected static void toOrigin(Rectangle2D bounds, AffineTransform transform)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontTools

public FontTools()
Method Detail

apply

protected static Rectangle2D apply(Rectangle2D bounds,
                                   AffineTransform transform)

toOrigin

protected static void toOrigin(Rectangle2D bounds,
                               AffineTransform transform)

draw

public static void draw(Graphics2D g,
                        String text,
                        Font font,
                        Color color,
                        int x,
                        int y,
                        int width,
                        int height)

draw

public static void draw(Graphics2D g,
                        String text,
                        Font font,
                        Color color,
                        float fontSize)

draw

public static void draw(Graphics2D g,
                        String text,
                        Font font,
                        Color color,
                        int x,
                        int y,
                        float fontSize)

draw

protected static void draw(Graphics2D g,
                           String text,
                           Font font,
                           Color color,
                           AffineTransform transform)

draw

protected static void draw(Graphics2D g,
                           String text,
                           Font font,
                           Color color)

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.