org.otvl.sbxbsamp.simple
Class Drawing

java.lang.Object
  extended byorg.otvl.sbxbsamp.simple.Drawing

public class Drawing
extends java.lang.Object

A drawing, collection of abstract shapes.

Version:
Author:

Constructor Summary
Drawing()
           
 
Method Summary
 void addTheShapes(int index, Shape aShape)
          Inserts a target in link theShapes.
 void addTheShapes(Shape aShape)
          Adds a target at end of link theShapes.
 void clearTheShapes()
          Clears all targets in link theShapes
 java.lang.String getPaper()
          Returns the paper.
 Shape getTheShapes(int index)
          Returns a target in link theShapes.
 java.util.Iterator iteratorTheShapes()
          Returns an iterator for targets in links theShapes
 void removeTheShapes(int index)
          Removes a target in link theShapes
 void setPaper(java.lang.String paper)
          Sets the paper.
 int sizeTheShapes()
          Returns the size of the collection theShapes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Drawing

public Drawing()
Method Detail

getPaper

public java.lang.String getPaper()
Returns the paper.

Returns:
String

setPaper

public void setPaper(java.lang.String paper)
Sets the paper.

Parameters:
paper - The paper to set

getTheShapes

public Shape getTheShapes(int index)
Returns a target in link theShapes.

Parameters:
index - offset in the array
Returns:
Shape

iteratorTheShapes

public java.util.Iterator iteratorTheShapes()
Returns an iterator for targets in links theShapes

Returns:
java.util.Iterator

sizeTheShapes

public int sizeTheShapes()
Returns the size of the collection theShapes

Returns:
int

addTheShapes

public void addTheShapes(int index,
                         Shape aShape)
Inserts a target in link theShapes.

Parameters:
index - offset in the list
aShape - The Shape to insert

addTheShapes

public void addTheShapes(Shape aShape)
Adds a target at end of link theShapes.

Parameters:
aShape - The Shape to insert

removeTheShapes

public void removeTheShapes(int index)
Removes a target in link theShapes

Parameters:
index - offset in the list

clearTheShapes

public void clearTheShapes()
Clears all targets in link theShapes



Copyright © 2003-2006 Thierry Beigbeder. All Rights Reserved.