Class JavaFXOffscreenBinding

java.lang.Object
org.jzy3d.javafx.offscreen.JavaFXOffscreenBinding

public class JavaFXOffscreenBinding extends Object
  • 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
      invalid @link
      {@link @ResizableCanvas
      } from an AWTChart expected to render offscreen and to use a JavaFXOffscreenRenderer3d poping Images when the chart is redrawn. Also attaches a JavaFXCameraMouseController and JavaFXCameraKeyController to the returned Canvas.
      Parameters:
      chart -
      Returns:
      an Canvas displaying the chart content interactively
    • bind

      protected void bind(javafx.scene.canvas.Canvas canvas, AWTChart chart)
      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

      protected JavaFXOffscreenRenderer3d getRenderer(AWTChart chart)
    • addCanvasSizeChangedListener

      public void addCanvasSizeChangedListener(Chart chart, javafx.scene.canvas.Canvas canvas)
      Listen to canvas size change in order to reset offscreen chart dimensions.
      Parameters:
      chart -
      canvas -
    • resetTo

      protected void resetTo(Chart chart, double width, double height)
      Reset the OffscreenCanvas dimensions according to inputs.
      Parameters:
      chart -
      width -
      height -
    • bindImageView

      @Deprecated public javafx.scene.image.ImageView bindImageView(AWTNativeChart chart)
      Deprecated.
      Return an ImageView from an AWTChart expected to render offscreen and to use a JavaFXOffscreenRenderer3d poping Images when the chart is redrawn. Also attaches a JavaFXCameraMouseController and JavaFXCameraKeyController to the returned ImageView.
      Parameters:
      chart -
      Returns:
      an ImageView displaying the chart content interactively
    • bind

      @Deprecated protected void bind(javafx.scene.image.ImageView imageView, AWTChart chart)
      Deprecated.
      Register for renderer notifications with a new JavaFX Image
      Parameters:
      imageView -
      chart -
    • addSceneSizeChangedListener

      @Deprecated public void addSceneSizeChangedListener(Chart chart, javafx.scene.Scene scene)
      Deprecated.
      Listen to scene size change in order to reset offscreen chart dimensions.
      Parameters:
      chart -
      scene -