diva.canvas.tutorial
Class ManipulatorTutorial

java.lang.Object
  extended by diva.canvas.tutorial.ManipulatorTutorial

public class ManipulatorTutorial
extends java.lang.Object

This tutorial shows how to add different types of manipulators to figures.

Version:
$Id: ManipulatorTutorial.java 38840 2005-07-11 18:33:22Z cxh $
Author:
John Reekie

Field Summary
private  BasicEllipse _circle
           
private  BasicFigure _line
           
private  BasicRectangle _rectangle
           
private  BasicFigure _shape
           
private  JCanvas canvas
           
private  GraphicsPane graphicsPane
           
 
Constructor Summary
ManipulatorTutorial()
          Create a JCanvas and put it into a window
 
Method Summary
 void createFigures()
          Create the figures.
 void createInteraction()
          Create the interaction on the figures.
static void main(java.lang.String[] argv)
          Main function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rectangle

private BasicRectangle _rectangle

_circle

private BasicEllipse _circle

_line

private BasicFigure _line

_shape

private BasicFigure _shape

canvas

private JCanvas canvas

graphicsPane

private GraphicsPane graphicsPane
Constructor Detail

ManipulatorTutorial

public ManipulatorTutorial()
Create a JCanvas and put it into a window

Method Detail

createFigures

public void createFigures()
Create the figures.


createInteraction

public void createInteraction()
Create the interaction on the figures. We make a different selection interactor for each figure, because each has a different type of manipulator attached to it. Usually, each selection interactor will be attached to many figures.


main

public static void main(java.lang.String[] argv)
Main function