public class GradientTextStyle extends Object implements ITextStyle
Constructor and Description |
---|
GradientTextStyle(float gradientSize,
Color color1,
Color color2) |
Modifier and Type | Method and Description |
---|---|
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() |
public boolean intensityOnly()
intensityOnly
in interface com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
public Rectangle2D getBounds(CharSequence str, Font font, FontRenderContext frc)
getBounds
in interface com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
public Rectangle2D getBounds(String str, Font font, FontRenderContext frc)
getBounds
in interface com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
public Rectangle2D getBounds(GlyphVector gv, FontRenderContext frc)
getBounds
in interface com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
public void drawGlyphVector(Graphics2D graphics, GlyphVector str, int x, int y)
drawGlyphVector
in interface com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
public void draw(Graphics2D graphics, String str, int x, int y)
draw
in interface com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
Copyright © 2016. All rights reserved.