Package org.jzy3d.plot3d.rendering.view
Class AWTNativeViewOverlay
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.view.AWTNativeViewOverlay
-
- All Implemented Interfaces:
IViewOverlay
public class AWTNativeViewOverlay extends Object implements IViewOverlay
Renders allTooltip
s andAWTRenderer2d
s on top of the scene. The current pixel scale is taken into account so that allAWTRenderer2d
do not have to worry about it.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.Logger
LOGGER
protected com.jogamp.opengl.util.awt.Overlay
overlay
protected Color
overlayBackground
protected boolean
useFullCanvas
-
Constructor Summary
Constructors Constructor Description AWTNativeViewOverlay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureG2DScale(View view, ViewportConfiguration viewport, ICanvas canvas, Graphics2D g2d)
boolean
isUseFullCanvas()
void
render(View view, ViewportConfiguration viewport, IPainter painter)
void
setUseFullCanvas(boolean useFullCanvas)
If true, the overlay will occupy the full canvas.
-
-
-
Field Detail
-
LOGGER
protected static org.apache.logging.log4j.Logger LOGGER
-
overlay
protected com.jogamp.opengl.util.awt.Overlay overlay
-
overlayBackground
protected Color overlayBackground
-
useFullCanvas
protected boolean useFullCanvas
-
-
Method Detail
-
render
public void render(View view, ViewportConfiguration viewport, IPainter painter)
- Specified by:
render
in interfaceIViewOverlay
-
configureG2DScale
protected void configureG2DScale(View view, ViewportConfiguration viewport, ICanvas canvas, Graphics2D g2d)
-
isUseFullCanvas
public boolean isUseFullCanvas()
-
setUseFullCanvas
public void setUseFullCanvas(boolean useFullCanvas)
If true, the overlay will occupy the full canvas. If false, it will only occupy the viewport used by the , hence won't overlay on the colorbar. If not occupying full canvas, a scale is applied to the Graphics2D instance of the overlay with additional rendering hints to avoid aliasing of the anti-stretch effect.
-
-