Package org.jzy3d.chart.factories
Class EmulGLPainterFactory
java.lang.Object
org.jzy3d.chart.factories.EmulGLPainterFactory
- All Implemented Interfaces:
IPainterFactory
-
Field Summary
Modifier and TypeFieldDescriptionprotected IChartFactory
protected boolean
protected int
protected EmulGLCanvas
protected EmulGLPainter
protected boolean
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
boolean
boolean
protected void
link
(int width, int height) newAnimator
(ICanvas canvas) newCanvas
(IChartFactory factory, Scene scene, Quality quality) protected EmulGLCanvas
newEmulGLCanvas
(IChartFactory factory, Scene scene, Quality quality) newKeyboardCameraController
(Chart chart) newMouseCameraController
(Chart chart) newMousePickingController
(Chart chart, int clickWidth) newRateLimiter
(Chart chart) newRateLimiter
(EmulGLCanvas canvas) newSymbolHandler
(IImageWrapper image) This override intend to use jGL image rendering fallback based on AWT to render colorbar.void
setChartFactory
(IChartFactory chartFactory) void
setDebugGL
(boolean debugGL) If true, will let GL triggerinvalid @link
GLException
void
setOffscreen
(int width, int height) The size of the offscreen chart dimension.void
setOffscreen
(Rectangle rectangle) void
-
Field Details
-
chartFactory
-
internalCanvas
-
internalPainter
-
offscreen
protected boolean offscreen -
width
protected int width -
height
protected int height -
debugGL
protected boolean debugGL
-
-
Constructor Details
-
EmulGLPainterFactory
public EmulGLPainterFactory()
-
-
Method Details
-
newPainter
- Specified by:
newPainter
in interfaceIPainterFactory
-
newViewOverlay
- Specified by:
newViewOverlay
in interfaceIPainterFactory
-
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 originalinvalid @link
GL#glDrawPixel()
- Specified by:
newViewportLayout
in interfaceIPainterFactory
-
newSymbolHandler
- Specified by:
newSymbolHandler
in interfaceIPainterFactory
-
newAnimator
- Specified by:
newAnimator
in interfaceIPainterFactory
-
newFrame
- Specified by:
newFrame
in interfaceIPainterFactory
-
newFrame
- Specified by:
newFrame
in interfaceIPainterFactory
-
newCanvas
- Specified by:
newCanvas
in interfaceIPainterFactory
-
newEmulGLCanvas
-
link
protected void link(int width, int height) -
newMouseCameraController
- Specified by:
newMouseCameraController
in interfaceIPainterFactory
-
newRateLimiter
-
newRateLimiter
-
newKeyboardCameraController
- Specified by:
newKeyboardCameraController
in interfaceIPainterFactory
-
newMousePickingController
- Specified by:
newMousePickingController
in interfaceIPainterFactory
-
newKeyboardScreenshotController
- Specified by:
newKeyboardScreenshotController
in interfaceIPainterFactory
-
getChartFactory
- Specified by:
getChartFactory
in interfaceIPainterFactory
-
setChartFactory
- 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
- Specified by:
setOffscreen
in interfaceIPainterFactory
-
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 triggerinvalid @link
GLException
- Specified by:
setDebugGL
in interfaceIPainterFactory
-
dispose
public void dispose()
-