Class GradientTextStyle
- java.lang.Object
-
- org.jzy3d.plot3d.text.renderers.jogl.style.GradientTextStyle
-
- All Implemented Interfaces:
com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
public class GradientTextStyle extends Object implements com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
-
Constructor Summary
Constructors Constructor Description GradientTextStyle(float gradientSize, Color color1, Color color2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(Graphics2D graphics, String str, int x, int y)
void
drawGlyphVector(Graphics2D graphics, GlyphVector str, int x, int y)
Rectangle2D
getBounds(GlyphVector gv, FontRenderContext frc)
Rectangle2D
getBounds(CharSequence str, Font font, FontRenderContext frc)
Rectangle2D
getBounds(String str, Font font, FontRenderContext frc)
boolean
intensityOnly()
-
-
-
Method Detail
-
intensityOnly
public boolean intensityOnly()
- Specified by:
intensityOnly
in interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
getBounds
public Rectangle2D getBounds(CharSequence str, Font font, FontRenderContext frc)
- Specified by:
getBounds
in interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
getBounds
public Rectangle2D getBounds(String str, Font font, FontRenderContext frc)
- Specified by:
getBounds
in interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
getBounds
public Rectangle2D getBounds(GlyphVector gv, FontRenderContext frc)
- Specified by:
getBounds
in interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
drawGlyphVector
public void drawGlyphVector(Graphics2D graphics, GlyphVector str, int x, int y)
- Specified by:
drawGlyphVector
in interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
draw
public void draw(Graphics2D graphics, String str, int x, int y)
- Specified by:
draw
in interfacecom.jogamp.opengl.util.awt.TextRenderer.RenderDelegate
-
-