org.jdrawing
Interface IndexedDrawingModel

All Superinterfaces:
DrawingModel

public interface IndexedDrawingModel
extends DrawingModel

The interface that defines a data model with some optimization capabilities. This model can filter set of elements according to properties of their geometry.


Method Summary
 java.util.Enumeration elements(java.awt.geom.Point2D point)
          Returns an enumeration of the elements of this model which probably contain given point.
 java.util.Enumeration elements(java.awt.geom.Rectangle2D rectangle)
          Returns an enumeration of the elements of this model which probably intersect with given rectangle.
 
Methods inherited from interface org.jdrawing.DrawingModel
addDrawingModelListener, elements, removeDrawingModelListener, sortElements
 

Method Detail

elements

public java.util.Enumeration elements(java.awt.geom.Point2D point)
Returns an enumeration of the elements of this model which probably contain given point. The returned Enumeration object will generate all elements in this model, which contain given point and maybe some extra elements. The elements will be generated by this enumeration in order suitable for painting.

Parameters:
point - the Point2D
Returns:
an enumeration of the elements of this model

elements

public java.util.Enumeration elements(java.awt.geom.Rectangle2D rectangle)
Returns an enumeration of the elements of this model which probably intersect with given rectangle. The returned Enumeration object will generate all elements in this model, which contain given rectangle and maybe some extra elements. The elements will be generated by this enumeration in order suitable for painting.

Parameters:
rectangle - the Rectangle2D
Returns:
an enumeration of the elements of this model