public final class LayoutFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LayoutFactory.ConnectionWidgetLayoutAlignment
Alignment of children widgets within a calculated connection widgets used by default layout used in a connection widget.
|
static class |
LayoutFactory.SerialAlignment
Alignment of children widgets within a calculated widget used by FlowLayout (vertical and horizontal flow layout).
|
Modifier and Type | Method and Description |
---|---|
static Layout |
createAbsoluteLayout()
Creates an absolute layout where widgets are located at placed defined by their preferredLocation.
|
static Layout |
createCardLayout(Widget cardLayoutWidget)
Creates a card layout where all children widgets except the active one are hidden.
|
static SceneLayout |
createDevolveWidgetLayout(Widget widget,
Layout devolveLayout,
boolean animate)
Returns a scene layout which performs one-time layout using specified devolve-layout.
|
static Layout |
createFillLayout()
Deprecated.
use createOverlayLayout method instead
|
static Layout |
createHorizontalFlowLayout()
Creates a horizontal flow layout with default style where widgets are placed horizontally one to the right from another.
|
static Layout |
createHorizontalFlowLayout(LayoutFactory.SerialAlignment alignment,
int gap)
Creates a horizontal flow layout with a specific style where widgets are placed horizontally one to the right from another.
|
static Layout |
createHorizontalLayout()
Deprecated.
use createHorizontalFlowLayout method instead
|
static Layout |
createHorizontalLayout(LayoutFactory.SerialAlignment alignment,
int gap)
Deprecated.
use createHorizontalFlowLayout (alignment, gap) method instead
|
static Layout |
createOverlayLayout()
Returns a overlay layout where all children widgets has the boundary at the biggest one of them or
they are expanded to the parent widget boundaries during justification.
|
static <N,E> SceneLayout |
createSceneGraphLayout(GraphPinScene<N,E,?> graphPinScene,
GraphLayout<N,E> graphLayout)
Creates a scene layout which performs a specified graph-oriented layout on a specified GraphPinScene.
|
static <N,E> SceneLayout |
createSceneGraphLayout(GraphScene<N,E> graphScene,
GraphLayout<N,E> graphLayout)
Creates a scene layout which performs a specified graph-oriented layout on a specified GraphScene.
|
static Layout |
createVerticalFlowLayout()
Creates a vertical flow layout with default style where widgets are placed vertically one to the bottom from another.
|
static Layout |
createVerticalFlowLayout(LayoutFactory.SerialAlignment alignment,
int gap)
Creates a vertical flow layout with a specific style where widgets are placed vertically one to the bottom from another.
|
static Layout |
createVerticalLayout()
Deprecated.
use createVerticalFlowLayout method instead
|
static Layout |
createVerticalLayout(LayoutFactory.SerialAlignment alignment,
int gap)
Deprecated.
use createVerticalFlowLayout (alignment, gap) method instead
|
static Widget |
getActiveCard(Widget cardLayoutWidget)
Returns active card of a specified widget where a card layout is used.
|
static void |
setActiveCard(Widget widget,
Widget activeChildWidget)
Sets active card of a specified widget where a card layout is used.
|
public static Layout createAbsoluteLayout()
@Deprecated public static Layout createVerticalLayout()
@Deprecated public static Layout createVerticalLayout(LayoutFactory.SerialAlignment alignment, int gap)
alignment
- the alignmentgap
- the gap between widgetspublic static Layout createVerticalFlowLayout()
public static Layout createVerticalFlowLayout(LayoutFactory.SerialAlignment alignment, int gap)
alignment
- the alignmentgap
- the gap between widgets@Deprecated public static Layout createHorizontalLayout()
@Deprecated public static Layout createHorizontalLayout(LayoutFactory.SerialAlignment alignment, int gap)
alignment
- the alignmentgap
- the gap between widgetspublic static Layout createHorizontalFlowLayout()
public static Layout createHorizontalFlowLayout(LayoutFactory.SerialAlignment alignment, int gap)
alignment
- the alignmentgap
- the gap between widgetspublic static Layout createCardLayout(Widget cardLayoutWidget)
cardLayoutWidget
- the widget where the card layout is going to be usedpublic static Widget getActiveCard(Widget cardLayoutWidget)
cardLayoutWidget
- the widget with card layoutpublic static void setActiveCard(Widget widget, Widget activeChildWidget)
widget
- the widget with card layoutactiveChildWidget
- the new active widget@Deprecated public static Layout createFillLayout()
public static Layout createOverlayLayout()
public static SceneLayout createDevolveWidgetLayout(Widget widget, Layout devolveLayout, boolean animate)
widget
- thedevolveLayout
- the layout that is going to be used for one-time layoutanimate
- if true, then setting preferredLocation is gone animatedpublic static <N,E> SceneLayout createSceneGraphLayout(GraphScene<N,E> graphScene, GraphLayout<N,E> graphLayout)
graphScene
- the graph scenegraphLayout
- the graph layoutpublic static <N,E> SceneLayout createSceneGraphLayout(GraphPinScene<N,E,?> graphPinScene, GraphLayout<N,E> graphLayout)
graphPinScene
- the graph pin scenegraphLayout
- the graph layout