Package org.jzy3d.chart.factories
Class EmulGLPainterFactory
java.lang.Object
org.jzy3d.chart.factories.EmulGLPainterFactory
- All Implemented Interfaces:
IPainterFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IChartFactoryprotected booleanprotected intprotected EmulGLCanvasprotected EmulGLPainterprotected booleanprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()booleanbooleanprotected voidlink(int width, int height) newAnimator(ICanvas canvas) newCanvas(IChartFactory factory, Scene scene, Quality quality) protected EmulGLCanvasnewEmulGLCanvas(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.voidsetChartFactory(IChartFactory chartFactory) voidsetDebugGL(boolean debugGL) If true, will let GL triggerif an error occur in OpenGL which ease debugging.invalid @link
GLExceptionvoidsetOffscreen(int width, int height) The size of the offscreen chart dimension.voidsetOffscreen(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:
newPainterin interfaceIPainterFactory
-
newViewOverlay
- Specified by:
newViewOverlayin 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 originalprimitives.invalid @link
GL#glDrawPixel()- Specified by:
newViewportLayoutin interfaceIPainterFactory
-
newSymbolHandler
- Specified by:
newSymbolHandlerin interfaceIPainterFactory
-
newAnimator
- Specified by:
newAnimatorin interfaceIPainterFactory
-
newFrame
- Specified by:
newFramein interfaceIPainterFactory
-
newFrame
- Specified by:
newFramein interfaceIPainterFactory
-
newCanvas
- Specified by:
newCanvasin interfaceIPainterFactory
-
newEmulGLCanvas
-
link
protected void link(int width, int height) -
newMouseCameraController
- Specified by:
newMouseCameraControllerin interfaceIPainterFactory
-
newRateLimiter
-
newRateLimiter
-
newKeyboardCameraController
- Specified by:
newKeyboardCameraControllerin interfaceIPainterFactory
-
newMousePickingController
- Specified by:
newMousePickingControllerin interfaceIPainterFactory
-
newKeyboardScreenshotController
- Specified by:
newKeyboardScreenshotControllerin interfaceIPainterFactory
-
getChartFactory
- Specified by:
getChartFactoryin interfaceIPainterFactory
-
setChartFactory
- Specified by:
setChartFactoryin interfaceIPainterFactory
-
isOffscreen
public boolean isOffscreen()- Specified by:
isOffscreenin interfaceIPainterFactory
-
setOffscreenDisabled
public void setOffscreenDisabled()- Specified by:
setOffscreenDisabledin interfaceIPainterFactory
-
setOffscreen
public void setOffscreen(int width, int height) Description copied from interface:IPainterFactoryThe 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:
setOffscreenin interfaceIPainterFactory
-
setOffscreen
- Specified by:
setOffscreenin interfaceIPainterFactory
-
getOffscreenDimension
- Specified by:
getOffscreenDimensionin interfaceIPainterFactory
-
isDebugGL
public boolean isDebugGL()- Specified by:
isDebugGLin interfaceIPainterFactory
-
setDebugGL
public void setDebugGL(boolean debugGL) If true, will let GL triggerif an error occur in OpenGL which ease debugging. Default is false.invalid @link
GLException- Specified by:
setDebugGLin interfaceIPainterFactory
-
dispose
public void dispose()
-