com.sun.opengl.util.j2d

Class TextRenderer.DefaultRenderDelegate

Enclosing Class:
TextRenderer
Implemented Interfaces:
TextRenderer.RenderDelegate

public static class TextRenderer.DefaultRenderDelegate
extends Object
implements TextRenderer.RenderDelegate

Method Summary

void
draw(Graphics2D graphics, String str, int x, int y)
void
drawGlyphVector(Graphics2D graphics, GlyphVector str, int x, int y)
Rectangle2D
getBounds(CharSequence str, Font font, FontRenderContext frc)
Rectangle2D
getBounds(GlyphVector gv, FontRenderContext frc)
Rectangle2D
getBounds(String str, Font font, FontRenderContext frc)
boolean
intensityOnly()

Method Details

draw

public void draw(Graphics2D graphics,
                 String str,
                 int x,
                 int y)
Specified by:
draw in interface TextRenderer.RenderDelegate

drawGlyphVector

public void drawGlyphVector(Graphics2D graphics,
                            GlyphVector str,
                            int x,
                            int y)
Specified by:
drawGlyphVector in interface TextRenderer.RenderDelegate

getBounds

public Rectangle2D getBounds(CharSequence str,
                             Font font,
                             FontRenderContext frc)
Specified by:
getBounds in interface TextRenderer.RenderDelegate

getBounds

public Rectangle2D getBounds(GlyphVector gv,
                             FontRenderContext frc)
Specified by:
getBounds in interface TextRenderer.RenderDelegate

getBounds

public Rectangle2D getBounds(String str,
                             Font font,
                             FontRenderContext frc)
Specified by:
getBounds in interface TextRenderer.RenderDelegate

intensityOnly

public boolean intensityOnly()
Specified by:
intensityOnly in interface TextRenderer.RenderDelegate

Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.