public class PositionControl extends ControlElement
| Modifier and Type | Class and Description |
|---|---|
static class |
PositionControl.MarkPosition |
static class |
PositionControl.MovePosition |
static class |
PositionControl.SetPosition |
| Modifier and Type | Field and Description |
|---|---|
static Float |
MARKED_POSITION
Use this value in
createSetPosition(Float, Float) to reset
either one or both coordinates to the marked position. |
NEWPAGE| Modifier and Type | Method and Description |
|---|---|
static PositionControl.MarkPosition |
createMarkPosition()
Add this element to a document to mark the current position.
|
static PositionControl.MovePosition |
createMovePosition(float relativeX,
float relativeY)
Add this element to a document to manipulate the current layout position
by a relative amount.
|
static PositionControl.SetPosition |
createSetPosition(Float newX,
Float newY)
Add this element to a document to manipulate the current layout position.
|
toStringpublic static final Float MARKED_POSITION
createSetPosition(Float, Float) to reset
either one or both coordinates to the marked position.public static PositionControl.MarkPosition createMarkPosition()
public static PositionControl.SetPosition createSetPosition(Float newX, Float newY)
null, the position won't be changed (useful if you want
to change only X or Y). If the value is MARKED_POSITION, it wil
be (re-)set to the marked position.newX - the new X position.newY - new new Y position.public static PositionControl.MovePosition createMovePosition(float relativeX, float relativeY)
null, the position won't be changed
(useful if you want to change only X or Y).relativeX - the value to change position in X direction.relativeY - the value to change position in Y direction.Copyright © 2022. All rights reserved.