Class VirtualFlowHit<C extends Cell<?,?> >
java.lang.Object
org.fxmisc.flowless.VirtualFlowHit<C>
Stores the result of a
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:
-
Cell Hit: a hit occurs on a displayed cell's node. One can call
getCell(),getCellIndex(), andgetCellOffset(). -
Hit Before Cells: a hit occurred before the displayed cells. One can call
getOffsetBeforeCells(). -
Hit After Cells: a hit occurred after the displayed cells. One can call
getOffsetAfterCells().
-
Method Details
-
isCellHit
public abstract boolean isCellHit() -
isBeforeCells
public abstract boolean isBeforeCells() -
isAfterCells
public abstract boolean isAfterCells() -
getCellIndex
public abstract int getCellIndex() -
getCell
-
getCellOffset
public abstract javafx.geometry.Point2D getCellOffset() -
getOffsetBeforeCells
public abstract javafx.geometry.Point2D getOffsetBeforeCells() -
getOffsetAfterCells
public abstract javafx.geometry.Point2D getOffsetAfterCells()
-