|Modifier and Type||Method and Description|
Method, called by
void visit(long coordinatesInMatrix, long indexInArray)
ConnectedObjectScanner.clear(ArrayContext, ConnectedObjectScanner.ElementVisitor, long, boolean)for every visited unit element of the scanned matrix.
Important: coordinatesInMatrix argument can be null here!
So, if you need to know the coordinates, you must check this argument and use
Matrix.coordinates(long, long) method (or equivalent code) when it is null.
If coordinatesInMatrix is not null, this method may modify elements of the passed coordinatesInMatrix: it will not affect to the behavior of the scanning algorithms.
coordinatesInMatrix- the coordinates of the element in the bit matrix or, maybe, null.
indexInArray- the index of this element in the underlying array.