Interface IScreenCanvas

All Superinterfaces:
ICanvas
All Known Implementing Classes:
CanvasAWT, CanvasNewtAwt, CanvasNewtSWT, CanvasSwing, EmulGLCanvas

public interface IScreenCanvas extends ICanvas
An IScreenCanvas defines a panel into which rendering occurs, and that can be integrated in an existing GUI. An IScreenCanvas implementation allows to render 3d content for a given Windowing toolkit:
  • CanvasAWT is a base implementation suitable for AWT, Swing or SWT applications.
  • CanvasNewtAwt is a new implementation (since 0.9.1) using JOGL's recommended windowing toolkit.
  • CanvasSwing is a deprecated implementation for Swing (since 0.9.1)
An IScreenCanvas provides access to an IAnimator instance. This offers the alternative of repaint-on-demand-model based on Controllers, and repaint-continuously model based on the Animator (default behaviour). The actual IScreenCanvas initialize by a given chart will depend on:
  • The Windowing toolkit parameter of the chart (new Chart("awt"))
  • The Windowing toolkit parameters supported by
    invalid @link
    {@link ChartComponentFactory.initializeCanvas(...)
    }
In other word, if creating another canvas implementation is required, simply extends the component factory.
Author:
Martin Pernollet
  • Method Details

    • display

      void display()
    • getAnimation

      IAnimator getAnimation()