|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Public Member Functions | |
| boolean | intensityOnly () |
| Indicates whether the backing store of this TextRenderer should be intensity-only (the default) or full-color. More... | |
| Rectangle2D | getBounds (final CharSequence str, final Font font, final FontRenderContext frc) |
| Computes the bounds of the given character sequence relative to the origin. More... | |
| Rectangle2D | getBounds (final String str, final Font font, final FontRenderContext frc) |
| Computes the bounds of the given String relative to the origin. More... | |
| Rectangle2D | getBounds (final GlyphVector gv, final FontRenderContext frc) |
| Computes the bounds of the given GlyphVector, already assumed to have been created for a particular Font, relative to the origin. More... | |
| void | drawGlyphVector (final Graphics2D graphics, final GlyphVector str, final int x, final int y) |
| Render the passed GlyphVector at the designated location using the supplied Graphics2D instance. More... | |
| void | draw (final Graphics2D graphics, final String str, final int x, final int y) |
| Render the passed character sequence at the designated location using the supplied Graphics2D instance. More... | |
| boolean | intensityOnly () |
| Indicates whether the backing store of this TextRenderer should be intensity-only (the default) or full-color. More... | |
| Rectangle2D | getBounds (String str, Font font, FontRenderContext frc) |
| Computes the bounds of the given String relative to the origin. More... | |
| Rectangle2D | getBounds (CharSequence str, Font font, FontRenderContext frc) |
| Computes the bounds of the given character sequence relative to the origin. More... | |
| Rectangle2D | getBounds (GlyphVector gv, FontRenderContext frc) |
| Computes the bounds of the given GlyphVector, already assumed to have been created for a particular Font, relative to the origin. More... | |
| void | draw (Graphics2D graphics, String str, int x, int y) |
| Render the passed character sequence at the designated location using the supplied Graphics2D instance. More... | |
| void | drawGlyphVector (Graphics2D graphics, GlyphVector str, int x, int y) |
| Render the passed GlyphVector at the designated location using the supplied Graphics2D instance. More... | |
Definition at line 1350 of file TextRenderer.java.
| void com.jogamp.opengl.util.awt.TextRenderer.DefaultRenderDelegate.draw | ( | final Graphics2D | graphics, |
| final String | str, | ||
| final int | x, | ||
| final int | y | ||
| ) |
Render the passed character sequence at the designated location using the supplied Graphics2D instance.
The surrounding region will already have been cleared to the RGB color (0, 0, 0) with zero alpha. The initial drawing context of the passed Graphics2D will be set to use AlphaComposite.Src, the color white, the Font specified in the TextRenderer's constructor, and the rendering hints specified in the TextRenderer constructor. Changes made by the end user may be visible in successive calls to this method, but are not guaranteed to be preserved. Implementors of this method should reset the Graphics2D's state to that desired each time this method is called, in particular those states which are not the defaults.
Implements com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate.
Definition at line 1382 of file TextRenderer.java.
| void com.jogamp.opengl.util.awt.TextRenderer.DefaultRenderDelegate.drawGlyphVector | ( | final Graphics2D | graphics, |
| final GlyphVector | str, | ||
| final int | x, | ||
| final int | y | ||
| ) |
Render the passed GlyphVector at the designated location using the supplied Graphics2D instance.
The surrounding region will already have been cleared to the RGB color (0, 0, 0) with zero alpha. The initial drawing context of the passed Graphics2D will be set to use AlphaComposite.Src, the color white, the Font specified in the TextRenderer's constructor, and the rendering hints specified in the TextRenderer constructor. Changes made by the end user may be visible in successive calls to this method, but are not guaranteed to be preserved. Implementors of this method should reset the Graphics2D's state to that desired each time this method is called, in particular those states which are not the defaults.
Implements com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate.
Definition at line 1376 of file TextRenderer.java.
| Rectangle2D com.jogamp.opengl.util.awt.TextRenderer.DefaultRenderDelegate.getBounds | ( | final CharSequence | str, |
| final Font | font, | ||
| final FontRenderContext | frc | ||
| ) |
Computes the bounds of the given character sequence relative to the origin.
Implements com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate.
Definition at line 1357 of file TextRenderer.java.
| Rectangle2D com.jogamp.opengl.util.awt.TextRenderer.DefaultRenderDelegate.getBounds | ( | final GlyphVector | gv, |
| final FontRenderContext | frc | ||
| ) |
Computes the bounds of the given GlyphVector, already assumed to have been created for a particular Font, relative to the origin.
Implements com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate.
Definition at line 1371 of file TextRenderer.java.
| Rectangle2D com.jogamp.opengl.util.awt.TextRenderer.DefaultRenderDelegate.getBounds | ( | final String | str, |
| final Font | font, | ||
| final FontRenderContext | frc | ||
| ) |
Computes the bounds of the given String relative to the origin.
Implements com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate.
Definition at line 1365 of file TextRenderer.java.
| boolean com.jogamp.opengl.util.awt.TextRenderer.DefaultRenderDelegate.intensityOnly | ( | ) |
Indicates whether the backing store of this TextRenderer should be intensity-only (the default) or full-color.
Implements com.jogamp.opengl.util.awt.TextRenderer.RenderDelegate.
Definition at line 1352 of file TextRenderer.java.