Package org.jzy3d.chart.factories
Class EmulGLPainterFactory
- java.lang.Object
-
- org.jzy3d.chart.factories.EmulGLPainterFactory
-
- All Implemented Interfaces:
IPainterFactory
public class EmulGLPainterFactory extends Object implements IPainterFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected IChartFactory
chartFactory
protected boolean
debugGL
protected int
height
protected EmulGLCanvas
internalCanvas
protected EmulGLPainter
internalPainter
protected boolean
offscreen
protected int
width
-
Constructor Summary
Constructors Constructor Description EmulGLPainterFactory()
-
Method Summary
-
-
-
Field Detail
-
chartFactory
protected IChartFactory chartFactory
-
internalCanvas
protected EmulGLCanvas internalCanvas
-
internalPainter
protected EmulGLPainter internalPainter
-
offscreen
protected boolean offscreen
-
width
protected int width
-
height
protected int height
-
debugGL
protected boolean debugGL
-
-
Method Detail
-
newPainter
public EmulGLPainter newPainter()
- Specified by:
newPainter
in interfaceIPainterFactory
-
newViewOverlay
public IViewOverlay newViewOverlay()
- Specified by:
newViewOverlay
in interfaceIPainterFactory
-
newViewportLayout
public ViewAndColorbarsLayout newViewportLayout()
This override intend to use jGL image rendering fallback based on AWT to render colorbar. This is due to the fact that jGL hardly handles the originalGL#glDrawPixel()
primitives.- Specified by:
newViewportLayout
in interfaceIPainterFactory
-
newSymbolHandler
public SymbolHandler newSymbolHandler(IImageWrapper image)
- Specified by:
newSymbolHandler
in interfaceIPainterFactory
-
newAnimator
public EmulGLAnimator newAnimator(ICanvas canvas)
- Specified by:
newAnimator
in interfaceIPainterFactory
-
newFrame
public FrameAWT newFrame(Chart chart, Rectangle bounds, String title)
- Specified by:
newFrame
in interfaceIPainterFactory
-
newFrame
public IFrame newFrame(Chart chart)
- Specified by:
newFrame
in interfaceIPainterFactory
-
newCanvas
public EmulGLCanvas newCanvas(IChartFactory factory, Scene scene, Quality quality)
- Specified by:
newCanvas
in interfaceIPainterFactory
-
newEmulGLCanvas
protected EmulGLCanvas newEmulGLCanvas(IChartFactory factory, Scene scene, Quality quality)
-
link
protected void link(int width, int height)
-
newMouseCameraController
public AWTCameraMouseController newMouseCameraController(Chart chart)
- Specified by:
newMouseCameraController
in interfaceIPainterFactory
-
newRateLimiter
public RateLimiter newRateLimiter(Chart chart)
-
newRateLimiter
public RateLimiter newRateLimiter(EmulGLCanvas canvas)
-
newKeyboardCameraController
public AWTCameraKeyController newKeyboardCameraController(Chart chart)
- Specified by:
newKeyboardCameraController
in interfaceIPainterFactory
-
newMousePickingController
public IMousePickingController newMousePickingController(Chart chart, int clickWidth)
- Specified by:
newMousePickingController
in interfaceIPainterFactory
-
newKeyboardScreenshotController
public IScreenshotKeyController newKeyboardScreenshotController(Chart chart)
- Specified by:
newKeyboardScreenshotController
in interfaceIPainterFactory
-
getChartFactory
public IChartFactory getChartFactory()
- Specified by:
getChartFactory
in interfaceIPainterFactory
-
setChartFactory
public void setChartFactory(IChartFactory chartFactory)
- Specified by:
setChartFactory
in interfaceIPainterFactory
-
isOffscreen
public boolean isOffscreen()
- Specified by:
isOffscreen
in interfaceIPainterFactory
-
setOffscreenDisabled
public void setOffscreenDisabled()
- Specified by:
setOffscreenDisabled
in interfaceIPainterFactory
-
setOffscreen
public void setOffscreen(int width, int height)
Description copied from interface:IPainterFactory
The size of the offscreen chart dimension. Native implementation will really make the chart offscreen. EmulGL will configure the chart for offscreen rendering but won't prevent to open the chart. Note that if the chart is opened on an HiDPI screen, further screenshot may be bigger than expected due to pixel scale capabilities discovered only once the component is rendered on a screen.- Specified by:
setOffscreen
in interfaceIPainterFactory
-
setOffscreen
public void setOffscreen(Rectangle rectangle)
- Specified by:
setOffscreen
in interfaceIPainterFactory
-
getOffscreenDimension
public Dimension getOffscreenDimension()
- Specified by:
getOffscreenDimension
in interfaceIPainterFactory
-
isDebugGL
public boolean isDebugGL()
- Specified by:
isDebugGL
in interfaceIPainterFactory
-
setDebugGL
public void setDebugGL(boolean debugGL)
If true, will let GL triggerGLException
if an error occur in OpenGL which ease debugging. Default is false.- Specified by:
setDebugGL
in interfaceIPainterFactory
-
-