public class Marker
extends java.lang.Object
Constructor and Description |
---|
Marker(int size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all marked points.
|
void |
clear(ConstPointList points)
Clear all points from a list.
|
void |
clear(GoPoint p)
Clear a marked point.
|
boolean |
get(GoPoint p)
Check if a point is marked.
|
boolean |
isCleared()
Check if no point is marked.
|
void |
set(ConstPointList points)
Mark all points from a list.
|
void |
set(GoPoint p)
Mark a point.
|
void |
set(GoPoint p,
boolean value)
Mark or clear a point.
|
public Marker(int size)
size
- Size of the board.public void clear()
public void clear(GoPoint p)
p
- The point to clear.public void clear(ConstPointList points)
points
- List of points.public boolean get(GoPoint p)
p
- The point to check.public boolean isCleared()
public void set(GoPoint p)
p
- The point to mark.public void set(GoPoint p, boolean value)
p
- The point to mark or clear.value
- true, if point should be marked; false, if point should
be cleared.public void set(ConstPointList points)
points
- List of points.