Region. It allows
the user to resize the region by pressed and dragging the region's edges. The resizing
behavior can be attached to any Region, modifying its preferred width and height as well
as its layout coordinates based on user interactions.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final EventHandler | |
| private final EventHandler | |
| private final EventHandler | |
| private final EventHandler | |
| private DoubleProperty | |
| private ObjectProperty | |
| private ResizingBehaviour. | |
| private final Region | |
| private BooleanProperty | |
| private static final String | |
| private double | |
| private double | |
| private final ListProperty |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final double | |
| public final BiConsumer | |
| public final ObservableList | |
| public static ResizingBehaviour | |
| public static boolean | Returns: true if the behavior is installed, false otherwisethe region to check for installation region)Checks if a ResizingBehaviour is installed on the provided region. |
| public boolean | Returns: true if installed, false otherwiseReturns true if this ResizingBehaviour is installed on the region. |
| public final boolean | |
| public final DoubleProperty | offsetProperty()
The offset from the edges in pixels where the user will be able to perform a press and drag to resize the pane. |
| private void | |
| private void | |
| private void | |
| public final ObjectProperty | Returns: the onResize callbackA callback that will be invoked whenever the region is resized. |
| public final BooleanProperty | Returns: true if the pane is resizableDetermines if the pane can currently be resized or not. |
| private void | |
| public final void | |
| public final void | |
| private void | |
| public final void | |
| public final void | |
| public final ListProperty | Returns: the list of supported operationsThe list of supported operations for resizing the region. |
| public void |
| mouseDraggedHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mouseDraggedHandler | |
| mouseMovedHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mouseMovedHandler | |
| mousePressedHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mousePressedHandler | |
| mouseReleasedHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mouseReleasedHandler | |
| offset | back to summary |
|---|---|
| private DoubleProperty offset | |
| onResize | back to summary |
|---|---|
| private ObjectProperty<BiConsumer<Double, Double>> onResize | |
| operation | back to summary |
|---|---|
| private ResizingBehaviour. | |
| region | back to summary |
|---|---|
| private final Region region | |
| resizable | back to summary |
|---|---|
| private BooleanProperty resizable | |
| RESIZE_BEHAVIOUR_INSTALLED | back to summary |
|---|---|
| private static final String RESIZE_BEHAVIOUR_INSTALLED | |
| startX | back to summary |
|---|---|
| private double startX | |
| startY | back to summary |
|---|---|
| private double startY | |
| supportedOperations | back to summary |
|---|---|
| private final ListProperty<ResizingBehaviour. | |
| ResizingBehaviour | back to summary |
|---|---|
| private ResizingBehaviour(Region region) Constructs a new pane with the given children. | |
| getOffset | back to summary |
|---|---|
| public final double getOffset() | |
| getOnResize | back to summary |
|---|---|
| public final BiConsumer | |
| getSupportedOperations | back to summary |
|---|---|
| public final ObservableList | |
| install | back to summary |
|---|---|
| public static ResizingBehaviour install(Region region) Installs the resizing behaviour on the given region. Once installed the user will be able to resize the given region (depending on the container the region lives in and the layout algorithms used by that container).
| |
| isInstalled | back to summary |
|---|---|
| public static boolean isInstalled(Region region) Checks if a ResizingBehaviour is installed on the provided region.
| |
| isInstalled | back to summary |
|---|---|
| public boolean isInstalled() Returns true if this ResizingBehaviour is installed on the region.
| |
| isResizable | back to summary |
|---|---|
| public final boolean isResizable() | |
| offsetProperty | back to summary |
|---|---|
| public final DoubleProperty offsetProperty() The offset from the edges in pixels where the user will be able to perform a press and drag to resize the pane. Default is 5. | |
| onMouseDragged | back to summary |
|---|---|
| private void onMouseDragged(MouseEvent evt) | |
| onMouseMove | back to summary |
|---|---|
| private void onMouseMove(MouseEvent evt) | |
| onMousePressed | back to summary |
|---|---|
| private void onMousePressed(MouseEvent evt) | |
| onResizeProperty | back to summary |
|---|---|
| public final ObjectProperty A callback that will be invoked whenever the region is resized.
| |
| resizableProperty | back to summary |
|---|---|
| public final BooleanProperty resizableProperty() Determines if the pane can currently be resized or not. Default is true.
| |
| setCursorIfOperationSupported | back to summary |
|---|---|
| private void setCursorIfOperationSupported(ResizingBehaviour. | |
| setOffset | back to summary |
|---|---|
| public final void setOffset(double offset) | |
| setOnResize | back to summary |
|---|---|
| public final void setOnResize(BiConsumer<Double, Double> onResize) | |
| setOperationIfSupported | back to summary |
|---|---|
| private void setOperationIfSupported(ResizingBehaviour. | |
| setResizable | back to summary |
|---|---|
| public final void setResizable(boolean resizable) | |
| setSupportedOperations | back to summary |
|---|---|
| public final void setSupportedOperations(ObservableList<ResizingBehaviour. | |
| supportedOperationsProperty | back to summary |
|---|---|
| public final ListProperty The list of supported operations for resizing the region. By default, all operations are supported.
| |
| uninstall | back to summary |
|---|---|
| public void uninstall() Uninstalls this ResizingBehaviour from the region, cleaning up all event handlers. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ResizingBehaviour. | |
| public static final ResizingBehaviour. | |
| public static final ResizingBehaviour. | |
| public static final ResizingBehaviour. | |
| public static final ResizingBehaviour. | |
| public static final ResizingBehaviour. | |
| public static final ResizingBehaviour. | |
| public static final ResizingBehaviour. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ResizingBehaviour. | |
| public static ResizingBehaviour. |
| RESIZE_E | back to summary |
|---|---|
| public static final ResizingBehaviour. | |
| RESIZE_N | back to summary |
|---|---|
| public static final ResizingBehaviour. | |
| RESIZE_NE | back to summary |
|---|---|
| public static final ResizingBehaviour. | |
| RESIZE_NW | back to summary |
|---|---|
| public static final ResizingBehaviour. | |
| RESIZE_S | back to summary |
|---|---|
| public static final ResizingBehaviour. | |
| RESIZE_SE | back to summary |
|---|---|
| public static final ResizingBehaviour. | |
| RESIZE_SW | back to summary |
|---|---|
| public static final ResizingBehaviour. | |
| RESIZE_W | back to summary |
|---|---|
| public static final ResizingBehaviour. | |
| Operation | back to summary |
|---|---|
| private Operation() | |
| valueOf | back to summary |
|---|---|
| public static ResizingBehaviour. | |
| values | back to summary |
|---|---|
| public static ResizingBehaviour. | |