Package org.jzy3d.plot3d.rendering.view
Class AWTNativeViewOverlay
java.lang.Object
org.jzy3d.plot3d.rendering.view.AWTNativeViewOverlay
- All Implemented Interfaces:
IViewOverlay
Renders all
Tooltip
s and AWTRenderer2d
s on top of the scene.
The current pixel scale is taken into account so that all AWTRenderer2d
do not have to
worry about it.-
Field Summary
Modifier and TypeFieldDescriptionprotected static org.apache.logging.log4j.Logger
protected com.jogamp.opengl.util.awt.Overlay
protected Color
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureG2DScale
(View view, ViewportConfiguration viewport, ICanvas canvas, Graphics2D g2d) Enable multiple stuff for HiDPI make overlay HiDPI aware so that legend and its text content remain the same size than axis text and constant over different screen.boolean
void
render
(View view, ViewportConfiguration viewport, IPainter painter) void
setUseFullCanvas
(boolean useFullCanvas) If true, the overlay will occupy the full canvas.
-
Field Details
-
LOGGER
protected static org.apache.logging.log4j.Logger LOGGER -
overlay
protected com.jogamp.opengl.util.awt.Overlay overlay -
overlayBackground
-
useFullCanvas
protected boolean useFullCanvas
-
-
Constructor Details
-
AWTNativeViewOverlay
public AWTNativeViewOverlay()
-
-
Method Details
-
render
- Specified by:
render
in interfaceIViewOverlay
-
configureG2DScale
protected void configureG2DScale(View view, ViewportConfiguration viewport, ICanvas canvas, Graphics2D g2d) Enable multiple stuff for HiDPI- make overlay HiDPI aware so that legend and its text content remain the same size than axis text and constant over different screen.
- avoid a stretch effect when viewport does not occupy full canvas (occurs when adding a colorbar for native charts)
- enable antialiasing and clean interpolation
-
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.
-