Package net.sf.gridarta.gui.filter
Class FilterState
- java.lang.Object
-
- net.sf.gridarta.gui.filter.FilterState
-
public class FilterState extends java.lang.ObjectThe highlighted state while using aFilterControlinstance.
-
-
Constructor Summary
Constructors Constructor Description FilterState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisHighlightedSquare(int path)Returns whether the given path should be highlighted.voidreset()Resets the state to no highlights.voidsetHighlightedSquare(int path, boolean highlightedSquare)Sets the highlighted state for a given path.
-
-
-
Method Detail
-
reset
public void reset()
Resets the state to no highlights.
-
isHighlightedSquare
public boolean isHighlightedSquare(int path)
Returns whether the given path should be highlighted.- Parameters:
path- the path- Returns:
- the highlighted state
-
setHighlightedSquare
public void setHighlightedSquare(int path, boolean highlightedSquare)Sets the highlighted state for a given path.- Parameters:
path- the pathhighlightedSquare- the highlighted state
-
-