Package org.jzy3d.javafx.offscreen
Class JavaFXOffscreenBinding
java.lang.Object
org.jzy3d.javafx.offscreen.JavaFXOffscreenBinding
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCanvasSizeChangedListener(Chart chart, javafx.scene.canvas.Canvas canvas) Listen to canvas size change in order to reset offscreen chart dimensions.voidaddSceneSizeChangedListener(Chart chart, javafx.scene.Scene scene) Deprecated.protected voidA two way binding between a javafx resizable canvas and chart, allowing to update canvas when the chart renderer update display internally as well as resizing chart renderer when the javafx canvas resizes.protected voidDeprecated.javafx.scene.canvas.CanvasbindCanvas(AWTNativeChart chart, boolean mouseController, boolean keyController) Return an} from aninvalid @link
{@link @ResizableCanvasAWTChartexpected to render offscreen and to use aJavaFXOffscreenRenderer3dpoping Images when the chart is redrawn.javafx.scene.image.ImageViewbindImageView(AWTNativeChart chart) Deprecated.protected JavaFXOffscreenRenderer3dgetRenderer(AWTChart chart) protected voidReset theOffscreenCanvasdimensions according to inputs.
-
Field Details
-
LOGGER
protected static org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
JavaFXOffscreenBinding
public JavaFXOffscreenBinding()
-
-
Method Details
-
bindCanvas
public javafx.scene.canvas.Canvas bindCanvas(AWTNativeChart chart, boolean mouseController, boolean keyController) Return an} from aninvalid @link
{@link @ResizableCanvasAWTChartexpected to render offscreen and to use aJavaFXOffscreenRenderer3dpoping Images when the chart is redrawn. Also attaches aJavaFXCameraMouseControllerandJavaFXCameraKeyControllerto the returnedCanvas.- Parameters:
chart-- Returns:
- an
Canvasdisplaying the chart content interactively
-
bind
A two way binding between a javafx resizable canvas and chart, allowing to update canvas when the chart renderer update display internally as well as resizing chart renderer when the javafx canvas resizes.- Parameters:
canvas-chart-
-
getRenderer
-
addCanvasSizeChangedListener
Listen to canvas size change in order to reset offscreen chart dimensions.- Parameters:
chart-canvas-
-
resetTo
Reset theOffscreenCanvasdimensions according to inputs.- Parameters:
chart-width-height-
-
bindImageView
Deprecated.Return anImageViewfrom anAWTChartexpected to render offscreen and to use aJavaFXOffscreenRenderer3dpoping Images when the chart is redrawn. Also attaches aJavaFXCameraMouseControllerandJavaFXCameraKeyControllerto the returnedImageView.- Parameters:
chart-- Returns:
- an
ImageViewdisplaying the chart content interactively
-
bind
Deprecated.Register for renderer notifications with a new JavaFX Image- Parameters:
imageView-chart-
-
addSceneSizeChangedListener
Deprecated.Listen to scene size change in order to reset offscreen chart dimensions.- Parameters:
chart-scene-
-