|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.layout.LayoutFactory
public final class LayoutFactory
This class is a factory of all built-in layouts.
Nested Class Summary | |
---|---|
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). |
Method Summary | ||
---|---|---|
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
|
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
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Layout createAbsoluteLayout()
public static Layout createVerticalLayout()
public static Layout createVerticalLayout(LayoutFactory.SerialAlignment alignment, int gap)
alignment
- the alignmentgap
- the gap between widgets
public static Layout createVerticalFlowLayout()
public static Layout createVerticalFlowLayout(LayoutFactory.SerialAlignment alignment, int gap)
alignment
- the alignmentgap
- the gap between widgets
public static Layout createHorizontalLayout()
public static Layout createHorizontalLayout(LayoutFactory.SerialAlignment alignment, int gap)
alignment
- the alignmentgap
- the gap between widgets
public static Layout createHorizontalFlowLayout()
public static Layout createHorizontalFlowLayout(LayoutFactory.SerialAlignment alignment, int gap)
alignment
- the alignmentgap
- the gap between widgets
public static Layout createCardLayout(Widget cardLayoutWidget)
cardLayoutWidget
- the widget where the card layout is going to be used
public static Widget getActiveCard(Widget cardLayoutWidget)
cardLayoutWidget
- the widget with card layout
public static void setActiveCard(Widget widget, Widget activeChildWidget)
widget
- the widget with card layoutactiveChildWidget
- the new active widgetpublic 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 animated
public static <N,E> SceneLayout createSceneGraphLayout(GraphScene<N,E> graphScene, GraphLayout<N,E> graphLayout)
graphScene
- the graph scenegraphLayout
- the graph layout
public static <N,E> SceneLayout createSceneGraphLayout(GraphPinScene<N,E,?> graphPinScene, GraphLayout<N,E> graphLayout)
graphPinScene
- the graph pin scenegraphLayout
- the graph layout
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |