Class AWTNativeViewOverlay

java.lang.Object
org.jzy3d.plot3d.rendering.view.AWTNativeViewOverlay
All Implemented Interfaces:
IViewOverlay

public class AWTNativeViewOverlay extends Object implements 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 Details

    • 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
  • Constructor Details

    • AWTNativeViewOverlay

      public AWTNativeViewOverlay()
  • Method Details

    • render

      public void render(View view, ViewportConfiguration viewport, IPainter painter)
      Specified by:
      render in interface IViewOverlay
    • 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.