Package adams.gui.visualization.image
Class AbstractObjectOverlayFromReport.SelectedObjectFilter
- java.lang.Object
-
- adams.gui.visualization.image.AbstractObjectOverlayFromReport.SelectedObjectFilter
-
- All Implemented Interfaces:
LocatedObjectFilter
,Serializable
- Enclosing class:
- AbstractObjectOverlayFromReport
public static final class AbstractObjectOverlayFromReport.SelectedObjectFilter extends Object implements Serializable, LocatedObjectFilter
Filter for located objects that only accepts the currently selected ones.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<LocatedObject>
m_Selected
the selected objects.
-
Constructor Summary
Constructors Constructor Description SelectedObjectFilter(Set<LocatedObject> selected)
Initializes the filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(LocatedObject obj)
Whether to accept the located object.
-
-
-
Field Detail
-
m_Selected
protected Set<LocatedObject> m_Selected
the selected objects.
-
-
Constructor Detail
-
SelectedObjectFilter
public SelectedObjectFilter(Set<LocatedObject> selected)
Initializes the filter.- Parameters:
selected
- the only objects to object
-
-
Method Detail
-
accept
public boolean accept(LocatedObject obj)
Whether to accept the located object.- Specified by:
accept
in interfaceLocatedObjectFilter
- Parameters:
obj
- the object to check- Returns:
- true if accepted
-
-