Package org.jzy3d.javafx.offscreen
Class JavaFXOffscreenBinding
java.lang.Object
org.jzy3d.javafx.offscreen.JavaFXOffscreenBinding
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCanvasSizeChangedListener
(Chart chart, javafx.scene.canvas.Canvas canvas) Listen to canvas size change in order to reset offscreen chart dimensions.void
addSceneSizeChangedListener
(Chart chart, javafx.scene.Scene scene) Deprecated.protected void
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.protected void
Deprecated.javafx.scene.canvas.Canvas
bindCanvas
(AWTNativeChart chart, boolean mouseController, boolean keyController) Return aninvalid @link
{@link @ResizableCanvas
AWTChart
expected to render offscreen and to use aJavaFXOffscreenRenderer3d
poping Images when the chart is redrawn.javafx.scene.image.ImageView
bindImageView
(AWTNativeChart chart) Deprecated.protected JavaFXOffscreenRenderer3d
getRenderer
(AWTChart chart) protected void
Reset theOffscreenCanvas
dimensions 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 aninvalid @link
{@link @ResizableCanvas
AWTChart
expected to render offscreen and to use aJavaFXOffscreenRenderer3d
poping Images when the chart is redrawn. Also attaches aJavaFXCameraMouseController
andJavaFXCameraKeyController
to the returnedCanvas
.- Parameters:
chart
-- Returns:
- an
Canvas
displaying 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 theOffscreenCanvas
dimensions according to inputs.- Parameters:
chart
-width
-height
-
-
bindImageView
Deprecated.Return anImageView
from anAWTChart
expected to render offscreen and to use aJavaFXOffscreenRenderer3d
poping Images when the chart is redrawn. Also attaches aJavaFXCameraMouseController
andJavaFXCameraKeyController
to the returnedImageView
.- Parameters:
chart
-- Returns:
- an
ImageView
displaying 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
-
-