Class ShadowedTextStyle
- java.lang.Object
-
- org.jzy3d.plot3d.text.renderers.jogl.style.ShadowedTextStyle
-
- All Implemented Interfaces:
com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
public class ShadowedTextStyle extends Object implements com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected static ColorDROP_SHADOW_COLOR
-
Constructor Summary
Constructors Constructor Description ShadowedTextStyle(float gradientSize, int dropShadowDepth, Color color1, Color color2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(Graphics2D graphics, String str, int x, int y)voiddrawGlyphVector(Graphics2D graphics, GlyphVector str, int x, int y)Rectangle2DgetBounds(GlyphVector gv, FontRenderContext frc)Rectangle2DgetBounds(CharSequence str, Font font, FontRenderContext frc)Rectangle2DgetBounds(String str, Font font, FontRenderContext frc)booleanintensityOnly()
-
-
-
Field Detail
-
DROP_SHADOW_COLOR
protected static final Color DROP_SHADOW_COLOR
-
-
Method Detail
-
intensityOnly
public boolean intensityOnly()
- Specified by:
intensityOnlyin interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
getBounds
public Rectangle2D getBounds(CharSequence str, Font font, FontRenderContext frc)
- Specified by:
getBoundsin interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
getBounds
public Rectangle2D getBounds(String str, Font font, FontRenderContext frc)
- Specified by:
getBoundsin interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
getBounds
public Rectangle2D getBounds(GlyphVector gv, FontRenderContext frc)
- Specified by:
getBoundsin interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
drawGlyphVector
public void drawGlyphVector(Graphics2D graphics, GlyphVector str, int x, int y)
- Specified by:
drawGlyphVectorin interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
draw
public void draw(Graphics2D graphics, String str, int x, int y)
- Specified by:
drawin interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
-