diva.canvas
Interface GeometricSet

All Superinterfaces:
FigureSet
All Known Implementing Classes:
BasicZList.EnclosedGSet, BasicZList.GSet, BasicZList.IntersectedGSet

public interface GeometricSet
extends FigureSet

An interface for figure sets with that have their contents defined geometrically. The geometry of the set is a Shape, and the contents of the set is somehow determined by that shape. A number of the methods defined here are optional, so implementors are not obliged to implement them. For example, some implementations might not allow the geometry to be changed, so they can throw an exception on the setGeometry(), freshFigures(), and staleFigures() methods.

Version:
$Id: GeometricSet.java 38798 2005-07-08 20:00:01Z cxh $
Author:
John Reekie
Accepted Rating:
Red

Method Summary
 java.awt.Shape getGeometry()
          Get the geometry.
 void setGeometry(java.awt.Shape geometry)
          Set the geometry.
 
Methods inherited from interface diva.canvas.FigureSet
contains, figures, figuresFromBack, figuresFromFront
 

Method Detail

getGeometry

java.awt.Shape getGeometry()
Get the geometry. The client must not modify the returned shape.


setGeometry

void setGeometry(java.awt.Shape geometry)
Set the geometry. All previously-obtained iterators are invalid and must be discarded. This is an optional operation. Implementors may choose to throw an exception if the particular Shape class passed in as the geometry is not suitable.