org.jzy3d.plot3d.text.overlay
Class TextOverlay
- java.lang.Object
-
- org.jzy3d.plot3d.text.overlay.TextOverlay
-
- All Implemented Interfaces:
- Renderer2d
- Direct Known Subclasses:
- SwingTextOverlay
public class TextOverlay extends java.lang.Object implements Renderer2d
Highly experimental text renderer. TheTextOverlayallows computing the 2d position of a text in the window, according to its required position in the 3d environment (using appenText method). As a 2nd pass, it might be rendered into a javaGraphicscontext. The interesting thing, compared to the currently usedTextBitmapRenderer, is that the user may select any java Font, whereas theTextBitmapRendereronly relies on Helvetica font provided by opengl. Actually no need to urgently correct these following todo: due to the problems related to post/pre rendering (blinking), this text Renderer is not used. An alternative would be to render the java text could be renderer into a Java Image that could in turn be rendered by opengl. // TODO: Verify alignement constants // TODO: Complete text renderer: select font, size, zoom // TODO: there may be a bug of non-rendering without resizing at init -> check that // TODO: the 1<->N relation TextRenderer<->Canvas won't work because TextRenderer has only one target Component.
-
-
Constructor Summary
Constructors Constructor and Description TextOverlay(ICanvas canvas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidappendText(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam, java.lang.String s, Coord3d position, Halign halign, Valign valign, Color color)voiddispose()voidpaint(java.awt.Graphics g)
-
-
-
Constructor Detail
-
TextOverlay
public TextOverlay(ICanvas canvas)
-
-
Method Detail
-
dispose
public void dispose()
-
appendText
public void appendText(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam, java.lang.String s, Coord3d position, Halign halign, Valign valign, Color color)
-
paint
public void paint(java.awt.Graphics g)
- Specified by:
paintin interfaceRenderer2d
-
-
DMelt 3.0 © DataMelt by jWork.ORG