public class ShadowedTextStyle extends Object implements ITextStyle
Modifier and Type | Field and Description |
---|---|
protected static Color |
DROP_SHADOW_COLOR |
Constructor and Description |
---|
ShadowedTextStyle(float gradientSize,
int dropShadowDepth,
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() |
protected static final Color DROP_SHADOW_COLOR
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.