Top Description Inners Constructors Methods
org.fxmisc.flowless

public abstract Class VirtualFlowHit<C extends Cell<?, ?>>

extends Object
Class Inheritance
Known Direct Subclasses
org.fxmisc.flowless.VirtualFlowHit.CellHit, org.fxmisc.flowless.VirtualFlowHit.HitBeforeCells, org.fxmisc.flowless.VirtualFlowHit.HitAfterCells
Imports
javafx.geometry.Point2D

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:

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
VirtualFlowHit.CellHit<C extends Cell<?, ?>>

private static class
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static <C extends Cell<?, ?>> VirtualFlowHit<C>
cellHit(int cellIndex, C cell, double x, double y)

public abstract C
public abstract int
public abstract Point2D
public abstract Point2D
public abstract Point2D
pack-priv static <C extends Cell<?, ?>> VirtualFlowHit<C>
hitAfterCells(double x, double y)

pack-priv static <C extends Cell<?, ?>> VirtualFlowHit<C>
hitBeforeCells(double x, double y)

public abstract boolean
public abstract boolean
public abstract boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VirtualFlowHitback to summary
private VirtualFlowHit()

Method Detail

cellHitback to summary
pack-priv static <C extends Cell<?, ?>> VirtualFlowHit<C> cellHit(int cellIndex, C cell, double x, double y)
getCellback to summary
public abstract C getCell()
getCellIndexback to summary
public abstract int getCellIndex()
getCellOffsetback to summary
public abstract Point2D getCellOffset()
getOffsetAfterCellsback to summary
public abstract Point2D getOffsetAfterCells()
getOffsetBeforeCellsback to summary
public abstract Point2D getOffsetBeforeCells()
hitAfterCellsback to summary
pack-priv static <C extends Cell<?, ?>> VirtualFlowHit<C> hitAfterCells(double x, double y)
hitBeforeCellsback to summary
pack-priv static <C extends Cell<?, ?>> VirtualFlowHit<C> hitBeforeCells(double x, double y)
isAfterCellsback to summary
public abstract boolean isAfterCells()
isBeforeCellsback to summary
public abstract boolean isBeforeCells()
isCellHitback to summary
public abstract boolean isCellHit()
org.fxmisc.flowless back to summary

private Class VirtualFlowHit.CellHit<C extends Cell<?, ?>>

extends VirtualFlowHit<C extends Cell<?, ?>>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final C
private final int
private final Point2D

Constructor Summary

AccessConstructor and Description
pack-priv
CellHit(int cellIdx, C cell, Point2D cellOffset)

Method Summary

Modifier and TypeMethod and Description
public C
public int
public Point2D
public Point2D
public Point2D
public boolean
public boolean
public boolean
Inherited from org.fxmisc.flowless.VirtualFlowHit:
cellHithitAfterCellshitBeforeCells

Field Detail

cellback to summary
private final C cell
cellIdxback to summary
private final int cellIdx
cellOffsetback to summary
private final Point2D cellOffset

Constructor Detail

CellHitback to summary
pack-priv CellHit(int cellIdx, C cell, Point2D cellOffset)

Method Detail

getCellback to summary
public C getCell()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCell.

Annotations
@Override
getCellIndexback to summary
public int getCellIndex()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCellIndex.

Annotations
@Override
getCellOffsetback to summary
public Point2D getCellOffset()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCellOffset.

Annotations
@Override
getOffsetAfterCellsback to summary
public Point2D getOffsetAfterCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getOffsetAfterCells.

Annotations
@Override
getOffsetBeforeCellsback to summary
public Point2D getOffsetBeforeCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getOffsetBeforeCells.

Annotations
@Override
isAfterCellsback to summary
public boolean isAfterCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isAfterCells.

Annotations
@Override
isBeforeCellsback to summary
public boolean isBeforeCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isBeforeCells.

Annotations
@Override
isCellHitback to summary
public boolean isCellHit()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isCellHit.

Annotations
@Override
org.fxmisc.flowless back to summary

private Class VirtualFlowHit.HitAfterCells<C extends Cell<?, ?>>

extends VirtualFlowHit<C extends Cell<?, ?>>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Point2D

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public C
public int
public Point2D
public Point2D
public Point2D
public boolean
public boolean
public boolean
Inherited from org.fxmisc.flowless.VirtualFlowHit:
cellHithitAfterCellshitBeforeCells

Field Detail

offsetback to summary
private final Point2D offset

Constructor Detail

HitAfterCellsback to summary
pack-priv HitAfterCells(Point2D offset)

Method Detail

getCellback to summary
public C getCell()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCell.

Annotations
@Override
getCellIndexback to summary
public int getCellIndex()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCellIndex.

Annotations
@Override
getCellOffsetback to summary
public Point2D getCellOffset()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCellOffset.

Annotations
@Override
getOffsetAfterCellsback to summary
public Point2D getOffsetAfterCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getOffsetAfterCells.

Annotations
@Override
getOffsetBeforeCellsback to summary
public Point2D getOffsetBeforeCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getOffsetBeforeCells.

Annotations
@Override
isAfterCellsback to summary
public boolean isAfterCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isAfterCells.

Annotations
@Override
isBeforeCellsback to summary
public boolean isBeforeCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isBeforeCells.

Annotations
@Override
isCellHitback to summary
public boolean isCellHit()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isCellHit.

Annotations
@Override
org.fxmisc.flowless back to summary

private Class VirtualFlowHit.HitBeforeCells<C extends Cell<?, ?>>

extends VirtualFlowHit<C extends Cell<?, ?>>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Point2D

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public C
public int
public Point2D
public Point2D
public Point2D
public boolean
public boolean
public boolean
Inherited from org.fxmisc.flowless.VirtualFlowHit:
cellHithitAfterCellshitBeforeCells

Field Detail

offsetback to summary
private final Point2D offset

Constructor Detail

HitBeforeCellsback to summary
pack-priv HitBeforeCells(Point2D offset)

Method Detail

getCellback to summary
public C getCell()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCell.

Annotations
@Override
getCellIndexback to summary
public int getCellIndex()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCellIndex.

Annotations
@Override
getCellOffsetback to summary
public Point2D getCellOffset()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getCellOffset.

Annotations
@Override
getOffsetAfterCellsback to summary
public Point2D getOffsetAfterCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getOffsetAfterCells.

Annotations
@Override
getOffsetBeforeCellsback to summary
public Point2D getOffsetBeforeCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.getOffsetBeforeCells.

Annotations
@Override
isAfterCellsback to summary
public boolean isAfterCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isAfterCells.

Annotations
@Override
isBeforeCellsback to summary
public boolean isBeforeCells()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isBeforeCells.

Annotations
@Override
isCellHitback to summary
public boolean isCellHit()

Implements abstract org.fxmisc.flowless.VirtualFlowHit.isCellHit.

Annotations
@Override