Package org.jzy3d.chart.factories
Interface IPainterFactory
- All Known Implementing Classes:
AWTPainterFactory
,DepthPeelingPainterFactory
,EmulGLPainterFactory
,FallbackPainterFactory
,GraphWindowFactory
,JavaFXOffscreenPainterFactory
,JavaFXSwingPainterFactory
,NativePainterFactory
,NewtPainterFactory
,OffscreenWindowFactory
,SwingPainterFactory
,SWTBridgePainterFactory
,SWTPainterFactory
public interface IPainterFactory
An
) and software rendering (
).
Following interfaces allows flipping between native or software AWT, NEWT, SWT, Swing, JavaFX:
IPainterFactory
provides all Windowing toolkit dependent objects. It is a sub factory
of IChartFactory
and hence allows porting charts to any windowing toolkit by setting
IChartFactory.setPainterFactory(IPainterFactory)
.
The two main IPainterFactory
are NativePainterFactory
and
EmulGLPainterFactory
which enable a IChartFactory
for native or software
rendering. Each of these factories may be further overriden to cover a specific windowind toolkit
(AWT, NEWT, etc).
The IPainterFactory
provides the following objects :
The IPainter
itself allows flipping between native rendering
(
invalid @link
NativeDesktopPainter
invalid @link
EmulGLPainter
IViewOverlay
ICanvas
IFrame
- Controllers :
IMousePickingController
,ICameraKeyController
,IScreenshotKeyController
.
IAnimator
allows flipping between native or software continuous rendering.- Author:
- Martin Pernollet
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
newAnimator
(ICanvas canvas) newCanvas
(IChartFactory factory, Scene scene, Quality quality) newKeyboardCameraController
(Chart chart) newMouseCameraController
(Chart chart) newMousePickingController
(Chart chart, int clickWidth) newSymbolHandler
(IImageWrapper image) void
setChartFactory
(IChartFactory factory) 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
-
Method Details
-
newPainter
IPainter newPainter() -
newViewOverlay
IViewOverlay newViewOverlay() -
newViewportLayout
IViewportLayout newViewportLayout() -
newSymbolHandler
-
newCanvas
-
newAnimator
-
newMouseCameraController
-
newMousePickingController
-
newKeyboardCameraController
-
newKeyboardScreenshotController
-
newFrame
-
newFrame
-
setChartFactory
-
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
-
getOffscreenDimension
Dimension getOffscreenDimension() -
isDebugGL
boolean isDebugGL() -
setDebugGL
void setDebugGL(boolean debugGL) If true, will let GL triggerinvalid @link
GLException
-