Class BasicClutterFilter

  • All Implemented Interfaces:
    ClutterFilter

    public class BasicClutterFilter
    extends java.lang.Object
    implements ClutterFilter
    A simple clutter filter that compares bounding rectangles to each other.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.awt.geom.Rectangle2D> rectList  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • rectList

        protected java.util.List<java.awt.geom.Rectangle2D> rectList
    • Constructor Detail

      • BasicClutterFilter

        public BasicClutterFilter()
    • Method Detail

      • clear

        protected void clear()
      • intersects

        protected java.awt.geom.Rectangle2D intersects​(java.awt.geom.Rectangle2D rectangle)
        Indicates whether a specified region intersects a region in the filter.
        Parameters:
        rectangle - the region to test.
        Returns:
        true if the region intersects one or more other regions in the filter, otherwise false.