Package diva.canvas

A Java2D structured graphics package. The Diva canvas is designed to be a useful construction toolkit for interactive 2D editors, viewers, and visualization tools. It aims to be useful and flexible without constraining clients to conventional user interface idioms.

This top-level package, diva.canvas, provides the essential infrastructure of the canvas. Other sub-packages, with the exception of diva.canvas.event (which is also essential) provide additional functionality, complexity, or ease-of-use of the basic infrastructure.

This package provides:

  • A Swing component, JCanvas.
  • A layered canvas pane, CanvasPane, and a basic implementation, BasicCanvasPane, which provide a screen-independent coordinate system.
  • A set of layers, including CanvasLayer and FigureLayer, which map onto a canvas pane and which display graphics or handle events.
  • A set of abstract and concrete persistent object classes, including Figure, LeafFigure, SimpleFigure, and CompositeFigure.
  • Various support classes and interfaces.

Since:
Ptolemy II 1.0