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 IChartFactorychartFactoryprotected booleandebugGLprotected intheightprotected EmulGLCanvasinternalCanvasprotected EmulGLPainterinternalPainterprotected booleanoffscreenprotected intwidth
-
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:
newPainterin interfaceIPainterFactory
-
newViewOverlay
public IViewOverlay newViewOverlay()
- Specified by:
newViewOverlayin 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:
newViewportLayoutin interfaceIPainterFactory
-
newSymbolHandler
public SymbolHandler newSymbolHandler(IImageWrapper image)
- Specified by:
newSymbolHandlerin interfaceIPainterFactory
-
newAnimator
public EmulGLAnimator newAnimator(ICanvas canvas)
- Specified by:
newAnimatorin interfaceIPainterFactory
-
newFrame
public FrameAWT newFrame(Chart chart, Rectangle bounds, String title)
- Specified by:
newFramein interfaceIPainterFactory
-
newFrame
public IFrame newFrame(Chart chart)
- Specified by:
newFramein interfaceIPainterFactory
-
newCanvas
public EmulGLCanvas newCanvas(IChartFactory factory, Scene scene, Quality quality)
- Specified by:
newCanvasin 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:
newMouseCameraControllerin interfaceIPainterFactory
-
newRateLimiter
public RateLimiter newRateLimiter(Chart chart)
-
newRateLimiter
public RateLimiter newRateLimiter(EmulGLCanvas canvas)
-
newKeyboardCameraController
public AWTCameraKeyController newKeyboardCameraController(Chart chart)
- Specified by:
newKeyboardCameraControllerin interfaceIPainterFactory
-
newMousePickingController
public IMousePickingController newMousePickingController(Chart chart, int clickWidth)
- Specified by:
newMousePickingControllerin interfaceIPainterFactory
-
newKeyboardScreenshotController
public IScreenshotKeyController newKeyboardScreenshotController(Chart chart)
- Specified by:
newKeyboardScreenshotControllerin interfaceIPainterFactory
-
getChartFactory
public IChartFactory getChartFactory()
- Specified by:
getChartFactoryin interfaceIPainterFactory
-
setChartFactory
public void setChartFactory(IChartFactory chartFactory)
- 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
public void setOffscreen(Rectangle rectangle)
- Specified by:
setOffscreenin interfaceIPainterFactory
-
getOffscreenDimension
public Dimension getOffscreenDimension()
- Specified by:
getOffscreenDimensionin interfaceIPainterFactory
-
isDebugGL
public boolean isDebugGL()
- Specified by:
isDebugGLin interfaceIPainterFactory
-
setDebugGL
public void setDebugGL(boolean debugGL)
If true, will let GL triggerGLExceptionif an error occur in OpenGL which ease debugging. Default is false.- Specified by:
setDebugGLin interfaceIPainterFactory
-
-