diva.canvas.tutorial
Class VectorFigureTutorial

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

public class VectorFigureTutorial
extends java.lang.Object

An example showing how to use VectorFigure.

The VectorFigure class provides a simple way to make figures that are fairly complex graphically. It has no inherent shape, but draws a series of shapes that are added one at a time to it.

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

Field Summary
private  JCanvas canvas
           
private  GraphicsPane graphicsPane
           
 
Constructor Summary
VectorFigureTutorial()
          Create a JCanvas and put it into a window.
 
Method Summary
 void createFigures()
          Create instances of Vector Figures and make them draggable and resizeable.
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

canvas

private JCanvas canvas

graphicsPane

private GraphicsPane graphicsPane
Constructor Detail

VectorFigureTutorial

public VectorFigureTutorial()
Create a JCanvas and put it into a window.

Method Detail

createFigures

public void createFigures()
Create instances of Vector Figures and make them draggable and resizeable.


main

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