Additional top-level classes in compilation unit: TargetPositionVisitor, StartOffStart, EndOffEnd, MinDistanceTo, Offset.
Navigator should place the anchor cell's node in the viewport. Its three implementations
are StartOffStart, EndOffEnd, and MinDistanceTo.
| Modifier and Type | Field and Description |
|---|---|
| public static final TargetPosition |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public TargetPosition | |
| public TargetPosition | |
| public TargetPosition | transformByChange(int
the cell index where the change begins pos, int the amount of cells that were removed, starting from removedSize, int posthe amount of cells that were added, starting from addedSize)posWhen the list of items, those displayed in the viewport, and those that are not, are modified, transforms this change to account for those modifications. |
| BEGINNING | back to summary |
|---|---|
| public static final TargetPosition BEGINNING | |
| accept | back to summary |
|---|---|
| public void accept(TargetPositionVisitor visitor) Visitor Pattern: prevents type-checking the implementation | |
| clamp | back to summary |
|---|---|
| public TargetPosition clamp(int size) Insures this position's item index is between 0 and | |
| scrollBy | back to summary |
|---|---|
| public TargetPosition scrollBy(double delta) | |
| transformByChange | back 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.
| |