public abstract class VirtualFlowHit<C extends Cell<?,?>>
extends java.lang.Object
VirtualFlow.hit(double, double)
. Before calling
any of the getters, one should determine what kind of hit this object is via isCellHit()
,
isBeforeCells()
, and isAfterCells()
. Otherwise, calling the wrong getter will throw
an UnsupportedOperationException
.
Types of VirtualFlowHit:
getCell()
,
getCellIndex()
, and getCellOffset()
.
getOffsetBeforeCells()
.
getOffsetAfterCells()
.
Modifier and Type | Method and Description |
---|---|
abstract C |
getCell() |
abstract int |
getCellIndex() |
abstract javafx.geometry.Point2D |
getCellOffset() |
abstract javafx.geometry.Point2D |
getOffsetAfterCells() |
abstract javafx.geometry.Point2D |
getOffsetBeforeCells() |
abstract boolean |
isAfterCells() |
abstract boolean |
isBeforeCells() |
abstract boolean |
isCellHit() |
public abstract boolean isCellHit()
public abstract boolean isBeforeCells()
public abstract boolean isAfterCells()
public abstract int getCellIndex()
public abstract C getCell()
public abstract javafx.geometry.Point2D getCellOffset()
public abstract javafx.geometry.Point2D getOffsetBeforeCells()
public abstract javafx.geometry.Point2D getOffsetAfterCells()