Package org.jzy3d.chart.factories
Interface IPainterFactory
-
- All Known Implementing Classes:
AWTPainterFactory
,DepthPeelingPainterFactory
,EmulGLPainterFactory
,FallbackPainterFactory
,GraphWindowFactory
,NativePainterFactory
,NewtPainterFactory
,OffscreenWindowFactory
,SwingPainterFactory
,SWTBridgePainterFactory
,SWTPainterFactory
public interface IPainterFactory
AnIPainterFactory
provides all Windowing toolkit dependent objects. It is a sub factory ofIChartFactory
and hence allows porting charts to any windowing toolkit by settingIChartFactory.setPainterFactory(IPainterFactory)
. The two mainIPainterFactory
areNativePainterFactory
andEmulGLPainterFactory
which enable aIChartFactory
for native or software rendering. Each of these factories may be further overriden to cover a specific windowind toolkit (AWT, NEWT, etc). TheIPainterFactory
provides the following objects : TheIPainter
itself allows flipping between native rendering (NativeDesktopPainter
) and software rendering (EmulGLPainter
). Following interfaces allows flipping between native or software AWT, NEWT, SWT, Swing, JavaFX:IViewOverlay
ICanvas
IFrame
- Controllers :
IMousePickingController
,ICameraKeyController
,IScreenshotKeyController
.
IAnimator
allows flipping between native or software continuous rendering.- Author:
- Martin Pernollet
-
-
Method Summary
-
-
-
Method Detail
-
newPainter
IPainter newPainter()
-
newViewOverlay
IViewOverlay newViewOverlay()
-
newViewportLayout
IViewportLayout newViewportLayout()
-
newSymbolHandler
SymbolHandler newSymbolHandler(IImageWrapper image)
-
newCanvas
ICanvas newCanvas(IChartFactory factory, Scene scene, Quality quality)
-
newMouseCameraController
ICameraMouseController newMouseCameraController(Chart chart)
-
newMousePickingController
IMousePickingController newMousePickingController(Chart chart, int clickWidth)
-
newKeyboardCameraController
ICameraKeyController newKeyboardCameraController(Chart chart)
-
newKeyboardScreenshotController
IScreenshotKeyController newKeyboardScreenshotController(Chart chart)
-
setChartFactory
void setChartFactory(IChartFactory factory)
-
getChartFactory
IChartFactory getChartFactory()
-
isOffscreen
boolean isOffscreen()
-
setOffscreenDisabled
void setOffscreenDisabled()
-
setOffscreen
void setOffscreen(int width, int height)
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.- Parameters:
width
-height
-
-
setOffscreen
void setOffscreen(Rectangle rectangle)
-
getOffscreenDimension
Dimension getOffscreenDimension()
-
isDebugGL
boolean isDebugGL()
-
setDebugGL
void setDebugGL(boolean debugGL)
If true, will let GL triggerGLException
if an error occur in OpenGL which ease debugging. Default is false.
-
-