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