VirtualFlow's Gravity value, and any remaining unused space counts as the "sky."
| Modifier and Type | Field and Description |
|---|---|
| private final CellListManager | |
| private final MemoizationList | |
| private TargetPosition | |
| private int | |
| private final ObjectProperty | |
| private final Subscription | |
| private int | |
| private final OrientationHelper | |
| private final CellPositioner | |
| private final SizeTracker | |
| private TargetPosition |
| Access | Constructor and Description |
|---|---|
| public | Navigator(CellListManager<T, C> cellListManager, CellPositioner<T, C> positioner, OrientationHelper orientation, ObjectProperty<VirtualFlow.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public void | |
| private double | |
| private double | |
| private int | |
| private int | |
| private int | |
| pack-priv int | |
| private int | |
| private int | |
| private int | |
| pack-priv int | |
| private int | |
| private int | |
| private int | |
| private void | fillViewportFrom(int
the index of the anchor cell itemIndex)Starting from the anchor cell's node, fills the viewport from the anchor to the "ground" and then from the anchor to the "sky". |
| private TargetPosition | |
| public int | Returns: The index of the first visible cellGet the index of the first visible cell (at the time of the last layout). |
| public int | Returns: The index of the last visible cellGet the index of the last visible cell (at the time of the last layout). |
| private void | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | scrollCurrentPositionBy(double delta)
Sets the |
| public void | setTargetPosition(TargetPosition targetPosition)
Sets the |
| private void | |
| pack-priv void | |
| public void | |
| public void | |
| public void |
| cellListManager | back to summary |
|---|---|
| private final CellListManager<T, C> cellListManager | |
| cells | back to summary |
|---|---|
| private final MemoizationList<C> cells | |
| currentPosition | back to summary |
|---|---|
| private TargetPosition currentPosition | |
| firstVisibleIndex | back to summary |
|---|---|
| private int firstVisibleIndex | |
| gravity | back to summary |
|---|---|
| private final ObjectProperty<VirtualFlow. | |
| itemsSubscription | back to summary |
|---|---|
| private final Subscription itemsSubscription | |
| lastVisibleIndex | back to summary |
|---|---|
| private int lastVisibleIndex | |
| orientation | back to summary |
|---|---|
| private final OrientationHelper orientation | |
| positioner | back to summary |
|---|---|
| private final CellPositioner<T, C> positioner | |
| sizeTracker | back to summary |
|---|---|
| private final SizeTracker sizeTracker | |
| targetPosition | back to summary |
|---|---|
| private TargetPosition targetPosition | |
| Navigator | back to summary |
|---|---|
| public Navigator(CellListManager<T, C> cellListManager, CellPositioner<T, C> positioner, OrientationHelper orientation, ObjectProperty<VirtualFlow. | |
| cropToNeighborhoodOf | back to summary |
|---|---|
| private void cropToNeighborhoodOf(int itemIndex) | |
| cropToNeighborhoodOf | back to summary |
|---|---|
| private void cropToNeighborhoodOf(int itemIndex, double additionalOffset) | |
| dispose | back to summary |
|---|---|
| public void dispose() | |
| distanceFromGround | back to summary |
|---|---|
| private double distanceFromGround(int itemIndex) | |
| distanceFromSky | back to summary |
|---|---|
| private double distanceFromSky(int itemIndex) | |
| fillBackwardFrom | back to summary |
|---|---|
| private int fillBackwardFrom(int itemIndex) | |
| fillBackwardFrom | back to summary |
|---|---|
| private int fillBackwardFrom(int itemIndex, double upTo) | |
| fillBackwardFrom0 | back to summary |
|---|---|
| private int fillBackwardFrom0(int itemIndex) | |
| fillBackwardFrom0 | back to summary |
|---|---|
| pack-priv int fillBackwardFrom0(int itemIndex, double upTo) | |
| fillForwardFrom | back to summary |
|---|---|
| private int fillForwardFrom(int itemIndex) | |
| fillForwardFrom | back to summary |
|---|---|
| private int fillForwardFrom(int itemIndex, double upTo) | |
| fillForwardFrom0 | back to summary |
|---|---|
| private int fillForwardFrom0(int itemIndex) | |
| fillForwardFrom0 | back to summary |
|---|---|
| pack-priv int fillForwardFrom0(int itemIndex, double upTo) | |
| fillTowardsGroundFrom0 | back to summary |
|---|---|
| private int fillTowardsGroundFrom0(int itemIndex) | |
| fillTowardsGroundFrom0 | back to summary |
|---|---|
| private int fillTowardsGroundFrom0(int itemIndex, double upTo) | |
| fillTowardsSkyFrom0 | back to summary |
|---|---|
| private int fillTowardsSkyFrom0(int itemIndex) | |
| fillViewportFrom | back to summary |
|---|---|
| private void fillViewportFrom(int itemIndex) Starting from the anchor cell's node, fills the viewport from the anchor to the "ground" and then from the anchor to the "sky".
| |
| getCurrentPosition | back to summary |
|---|---|
| private TargetPosition getCurrentPosition() | |
| getFirstVisibleIndex | back to summary |
|---|---|
| public int getFirstVisibleIndex() Get the index of the first visible cell (at the time of the last layout).
| |
| getLastVisibleIndex | back to summary |
|---|---|
| public int getLastVisibleIndex() Get the index of the last visible cell (at the time of the last layout).
| |
| itemsChanged | back to summary |
|---|---|
| private void itemsChanged(QuasiListChange<?> ch) | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| placeEndOffEndMayCrop | back to summary |
|---|---|
| private void placeEndOffEndMayCrop(int itemIndex, double endOffEnd) | |
| placeEndOffStartMayCrop | back to summary |
|---|---|
| private void placeEndOffStartMayCrop(int itemIndex, double endOffStart) | |
| placeStartAtMayCrop | back to summary |
|---|---|
| private void placeStartAtMayCrop(int itemIndex, double startOffStart) | |
| placeStartOffEndMayCrop | back to summary |
|---|---|
| private void placeStartOffEndMayCrop(int itemIndex, double startOffEnd) | |
| placeToViewport | back to summary |
|---|---|
| private void placeToViewport(int itemIndex, Offset from, Offset to) | |
| placeToViewport | back to summary |
|---|---|
| private void placeToViewport(int itemIndex, double fromY, double toY) | |
| scrollCurrentPositionBy | back to summary |
|---|---|
| public void scrollCurrentPositionBy(double delta) Sets the | |
| setTargetPosition | back to summary |
|---|---|
| public void setTargetPosition(TargetPosition targetPosition) Sets the | |
| shiftCellsTowardsGround | back to summary |
|---|---|
| private void shiftCellsTowardsGround(int groundCellIndex, int lastCellIndex, double amount) | |
| showLengthRegion | back to summary |
|---|---|
| pack-priv void showLengthRegion(int itemIndex, double fromY, double toY) | |
| visit | back to summary |
|---|---|
| public void visit(StartOffStart targetPosition) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(EndOffEnd targetPosition) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(MinDistanceTo targetPosition) Implements org.
| |