public class BasicClutterFilter extends Object implements ClutterFilter
Modifier and Type | Field and Description |
---|---|
protected List<Rectangle2D> |
rectList |
Constructor and Description |
---|
BasicClutterFilter() |
Modifier and Type | Method and Description |
---|---|
void |
apply(DrawContext dc,
List<Declutterable> shapes)
Applies the filter for a specified list of
Declutterable shapes. |
protected void |
clear() |
protected Rectangle2D |
intersects(Rectangle2D rectangle)
Indicates whether a specified region intersects a region in the filter.
|
protected List<Rectangle2D> rectList
public void apply(DrawContext dc, List<Declutterable> shapes)
ClutterFilter
Declutterable
shapes.apply
in interface ClutterFilter
dc
- the current draw context.shapes
- the shapes to declutter.protected void clear()
protected Rectangle2D intersects(Rectangle2D rectangle)
rectangle
- the region to test.