Top Description Fields Methods
org.fxmisc.flowless

pack-priv Interface TargetPosition

Additional top-level classes in compilation unit: TargetPositionVisitor, StartOffStart, EndOffEnd, MinDistanceTo, Offset.

Known Direct Implementers
org.fxmisc.flowless.StartOffStart, org.fxmisc.flowless.EndOffEnd, org.fxmisc.flowless.MinDistanceTo

Defines where the Navigator should place the anchor cell's node in the viewport. Its three implementations are StartOffStart, EndOffEnd, and MinDistanceTo.

Field Summary

Modifier and TypeField and Description
public static final TargetPosition

Method Summary

Modifier and TypeMethod and Description
public void
accept(TargetPositionVisitor visitor)

Visitor Pattern: prevents type-checking the implementation

public TargetPosition
clamp(int size)

Insures this position's item index is between 0 and size

public TargetPosition
scrollBy(double delta)

public TargetPosition
transformByChange(int
the cell index where the change begins
pos
,
int
the amount of cells that were removed, starting from pos
removedSize
,
int
the amount of cells that were added, starting from pos
addedSize
)

When the list of items, those displayed in the viewport, and those that are not, are modified, transforms this change to account for those modifications.

Field Detail

BEGINNINGback to summary
public static final TargetPosition BEGINNING

Method Detail

acceptback to summary
public void accept(TargetPositionVisitor visitor)

Visitor Pattern: prevents type-checking the implementation

clampback to summary
public TargetPosition clamp(int size)

Insures this position's item index is between 0 and size

scrollByback to summary
public TargetPosition scrollBy(double delta)
transformByChangeback to summary
public TargetPosition transformByChange(int pos, int removedSize, int addedSize)

When the list of items, those displayed in the viewport, and those that are not, are modified, transforms this change to account for those modifications.

Parameters
pos:int

the cell index where the change begins

removedSize:int

the amount of cells that were removed, starting from pos

addedSize:int

the amount of cells that were added, starting from pos