Package org.jzy3d.chart.factories
Interface IPainterFactory
-
- All Known Implementing Classes:
AWTPainterFactory,DepthPeelingPainterFactory,EmulGLPainterFactory,FallbackPainterFactory,GraphWindowFactory,NativePainterFactory,NewtPainterFactory,OffscreenWindowFactory,SwingPainterFactory,SWTBridgePainterFactory,SWTPainterFactory
public interface IPainterFactoryAnIPainterFactoryprovides all Windowing toolkit dependent objects. It is a sub factory ofIChartFactoryand hence allows porting charts to any windowing toolkit by settingIChartFactory.setPainterFactory(IPainterFactory). The two mainIPainterFactoryareNativePainterFactoryandEmulGLPainterFactorywhich enable aIChartFactoryfor native or software rendering. Each of these factories may be further overriden to cover a specific windowind toolkit (AWT, NEWT, etc). TheIPainterFactoryprovides the following objects : TheIPainteritself allows flipping between native rendering (NativeDesktopPainter) and software rendering (EmulGLPainter). Following interfaces allows flipping between native or software AWT, NEWT, SWT, Swing, JavaFX:IViewOverlayICanvasIFrame- Controllers :
IMousePickingController,ICameraKeyController,IScreenshotKeyController.
IAnimatorallows flipping between native or software continuous rendering.- Author:
- Martin Pernollet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IChartFactorygetChartFactory()DimensiongetOffscreenDimension()booleanisOffscreen()IAnimatornewAnimator(ICanvas canvas)ICanvasnewCanvas(IChartFactory factory, Scene scene, Quality quality)IFramenewFrame(Chart chart)IFramenewFrame(Chart chart, Rectangle bounds, String title)ICameraKeyControllernewKeyboardCameraController(Chart chart)IScreenshotKeyControllernewKeyboardScreenshotController(Chart chart)ICameraMouseControllernewMouseCameraController(Chart chart)IMousePickingControllernewMousePickingController(Chart chart, int clickWidth)IPainternewPainter()SymbolHandlernewSymbolHandler(IImageWrapper image)IViewOverlaynewViewOverlay()IViewportLayoutnewViewportLayout()voidsetChartFactory(IChartFactory factory)voidsetOffscreen(int width, int height)The size of the offscreen chart dimension.voidsetOffscreen(Rectangle rectangle)voidsetOffscreenDisabled()
-
-
-
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()
-
-