|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiva.canvas.BasicZList.GSet
private abstract class BasicZList.GSet
The abstract class of Geometric sets on a zlist. Note that if a figure covered by a geometric set is decorated, the set will contain the decorator, not the figure directly.
| Field Summary | |
|---|---|
private java.util.ArrayList |
_currentFigures
|
private java.awt.geom.Rectangle2D |
_region
|
| Constructor Summary | |
|---|---|
BasicZList.GSet(java.awt.geom.Rectangle2D region)
Create a new set |
|
| Method Summary | |
|---|---|
abstract boolean |
_contains(Figure f,
java.awt.geom.Rectangle2D region)
Test if the given figure is within this set |
protected abstract void |
_filter(java.util.ArrayList result,
java.util.Iterator i,
java.awt.geom.Rectangle2D region)
|
boolean |
contains(Figure f)
Test if the given figure is within the bounds of this region. |
java.util.Iterator |
figures()
Return the figures in undefined order. |
java.util.Iterator |
figuresFromBack()
Return the figures from highest index to lowest index. |
java.util.Iterator |
figuresFromFront()
Return the figures from lowest index to highest index. |
java.awt.Shape |
getGeometry()
Get the geometry. |
void |
setGeometry(java.awt.Shape geometry)
Set the geometry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.awt.geom.Rectangle2D _region
private java.util.ArrayList _currentFigures
| Constructor Detail |
|---|
public BasicZList.GSet(java.awt.geom.Rectangle2D region)
| Method Detail |
|---|
public boolean contains(Figure f)
contains in interface FigureSetpublic java.util.Iterator figures()
figures in interface FigureSetpublic java.util.Iterator figuresFromBack()
figuresFromBack in interface FigureSetpublic java.util.Iterator figuresFromFront()
figuresFromFront in interface FigureSetpublic java.awt.Shape getGeometry()
getGeometry in interface GeometricSetpublic void setGeometry(java.awt.Shape geometry)
setGeometry in interface GeometricSet
public abstract boolean _contains(Figure f,
java.awt.geom.Rectangle2D region)
protected abstract void _filter(java.util.ArrayList result,
java.util.Iterator i,
java.awt.geom.Rectangle2D region)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||