org.jzy3d.plot3d.text.renderers.jogl
Class ShadowedTextStyle

java.lang.Object
  extended by org.jzy3d.plot3d.text.renderers.jogl.ShadowedTextStyle
All Implemented Interfaces:
com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate, ITextStyle

public class ShadowedTextStyle
extends Object
implements ITextStyle


Field Summary
protected static Color DROP_SHADOW_COLOR
           
 
Constructor Summary
ShadowedTextStyle(float gradientSize, int dropShadowDepth, Color color1, Color color2)
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DROP_SHADOW_COLOR

protected static final Color DROP_SHADOW_COLOR
Constructor Detail

ShadowedTextStyle

public ShadowedTextStyle(float gradientSize,
                         int dropShadowDepth,
                         Color color1,
                         Color color2)
Method Detail

intensityOnly

public boolean intensityOnly()
Specified by:
intensityOnly in interface com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate

getBounds

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

getBounds

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

getBounds

public Rectangle2D getBounds(GlyphVector gv,
                             FontRenderContext frc)
Specified by:
getBounds in interface com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate

drawGlyphVector

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

draw

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