diva.canvas.demo
Class SimplePane

java.lang.Object
  extended by diva.canvas.CanvasPane
      extended by diva.canvas.GraphicsPane
          extended by diva.canvas.demo.SimplePane
All Implemented Interfaces:
CanvasComponent, EventAcceptor

public class SimplePane
extends GraphicsPane

A pane containing instances of some basic figures. The figures can be dragged about with the mouse.

Version:
$Id: SimplePane.java 38798 2005-07-08 20:00:01Z cxh $
Author:
John Reekie

Field Summary
(package private)  BasicController controller
          The controller
(package private)  FigureLayer figureLayer
          The layer to draw all figure in
(package private)  SelectionInteractor selectionInteractor
          The interactor to give to all figures
 
Fields inherited from class diva.canvas.GraphicsPane
_backgroundEventLayer, _backgroundLayer, _foregroundEventLayer, _foregroundLayer, _layers, _overlayLayer
 
Constructor Summary
SimplePane()
          Constructor
 
Method Summary
 void drawFigures()
          Draw some figures
 SelectionInteractor getSelectionInteractor()
          Return the selection interactor
 
Methods inherited from class diva.canvas.GraphicsPane
_rebuildLayerArray, getBackgroundEventLayer, getBackgroundLayer, getForegroundEventLayer, getForegroundLayer, getOverlayLayer, layersFromBack, layersFromFront, setBackgroundEventLayer, setBackgroundLayer, setForegroundEventLayer, setForegroundLayer, setOverlayLayer
 
Methods inherited from class diva.canvas.CanvasPane
_initNewLayer, _nullifyLayer, dispatchEvent, getCanvas, getParent, getSize, getToolTipText, getTransformContext, isAntialiasing, isEnabled, layers, paint, paint, processLayerEvent, repaint, repaint, scale, setAntialiasing, setCanvas, setEnabled, setParent, setSize, setSize, setTransform, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

BasicController controller
The controller


selectionInteractor

SelectionInteractor selectionInteractor
The interactor to give to all figures


figureLayer

FigureLayer figureLayer
The layer to draw all figure in

Constructor Detail

SimplePane

public SimplePane()
Constructor

Method Detail

drawFigures

public void drawFigures()
Draw some figures


getSelectionInteractor

public SelectionInteractor getSelectionInteractor()
Return the selection interactor