Package org.jzy3d.plot3d.rendering.view
Class AWTNativeViewOverlay
java.lang.Object
org.jzy3d.plot3d.rendering.view.AWTNativeViewOverlay
- All Implemented Interfaces:
IViewOverlay
Renders all
Tooltips and AWTRenderer2ds 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
FieldsModifier and TypeFieldDescriptionprotected static org.apache.logging.log4j.Loggerprotected com.jogamp.opengl.util.awt.Overlayprotected Colorprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureG2DScale(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.booleanvoidrender(View view, ViewportConfiguration viewport, IPainter painter) voidsetUseFullCanvas(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:
renderin 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.
-