public class LayoutBuilder
extends java.lang.Object
| Constructor and Description |
|---|
LayoutBuilder(Dashboard board)
Initializes a new instance of the
LayoutBuilder class. |
| Modifier and Type | Method and Description |
|---|---|
StackPanel |
create1By2ColumnLayout(Component col1,
Component col2row1,
Component col2row2)
Creates a two-column stack panel whose first column is a vertical stack of two components.
|
StackPanel |
create1By2RowLayout(Component row1,
Component row2col1,
Component row2col2)
Creates a two-row stack panel whose second row is a horizontal stack of two components.
|
StackPanel |
create2By1ColumnLayout(Component col1row1,
Component col1row2,
Component col2)
Creates a two-column stack panel whose first column is a vertical stack of two components.
|
StackPanel |
create2By1RowLayout(Component row1col1,
Component row1col2,
Component row2)
Creates a two-row stack panel whose first row is a horizontal stack of two components.
|
StackPanel |
create2By2Layout(Component row1col1,
Component row1col2,
Component row2col1,
Component row2col2)
Creates horizontal stack panels for components on same row and adds them to a vertical stack panel.
|
StackPanel |
createAndAdd1By2ColumnLayout(Component col1,
Component col2row1,
Component col2row2)
Creates a two-column stack panel whose first column is a vertical stack of two components.
|
StackPanel |
createAndAdd1By2RowLayout(Component row1,
Component row2col1,
Component row2col2)
Creates a two-row stack panel whose second row is a horizontal stack of two components.
|
StackPanel |
createAndAdd2By1ColumnLayout(Component col1row1,
Component col1row2,
Component col2)
Creates a two-column stack panel whose first column is a vertical stack of two components.
|
StackPanel |
createAndAdd2By1RowLayout(Component row1col1,
Component row1col2,
Component row2)
Creates a two-row stack panel whose first row is a horizontal stack of two components.
|
StackPanel |
createAndAdd2By2Layout(Component row1col1,
Component row1col2,
Component row2col1,
Component row2col2)
Creates horizontal stack panels for components on same row and adds them to a vertical stack panel.
|
StackPanel |
createAndAddColumnLayout(XAxisRenderer[] top,
Plot2D[] plots,
XAxisRenderer[] bottom)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createAndAddColumnLayout(XAxisRenderer top,
Plot2D[] plots,
XAxisRenderer bottom)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createAndAddColumnLayout(XAxisRenderer top,
Plot2D plot1,
Plot2D plot2)
Creates a
StackPanel containing the specified plots and axis renderer. |
StackPanel |
createAndAddColumnLayout(XAxisRenderer top,
Plot2D plot1,
Plot2D plot2,
Plot2D plot3,
XAxisRenderer bottom)
Creates a
StackPanel containing the specified plots and axis renderers. |
GridPanel |
createAndAddPlotAndAxes(Plot2D plot,
XAxisRenderer[] top,
YAxisRenderer[] left,
XAxisRenderer[] bottom,
YAxisRenderer[] right)
Creates a
GridPanel containing the specified plot and axis renderers. |
GridPanel |
createAndAddPlotWithBottomAndLeftAxes(Plot2D plot,
XAxisRenderer bottom,
YAxisRenderer left)
Creates a
GridPanel containing the specified plot and axis renderers. |
GridPanel |
createAndAddPlotWithBottomAndRightAxes(Plot2D plot,
XAxisRenderer bottom,
YAxisRenderer right)
Creates a
GridPanel containing the specified plot and axis renderers. |
GridPanel |
createAndAddPlotWithTopAndLeftAxes(Plot2D plot,
XAxisRenderer top,
YAxisRenderer left)
Creates a
GridPanel containing the specified plot and axis renderers. |
GridPanel |
createAndAddPlotWithTopAndRightAxes(Plot2D plot,
XAxisRenderer top,
YAxisRenderer right)
Creates a
GridPanel containing the specified plot and axis renderers. |
StackPanel |
createAndAddRowLayout(YAxisRenderer[] left,
Plot2D[] plots,
YAxisRenderer[] right)
Creates a
StackPanel containing the specified plots and axis renderers. |
void |
createAndAddRowLayout(YAxisRenderer left,
Plot2D[] plots,
YAxisRenderer right)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createAndAddRowLayout(YAxisRenderer left,
Plot2D plot1,
Plot2D plot2)
Creates a
StackPanel containing the specified plots and axis renderer. |
StackPanel |
createAndAddRowLayout(YAxisRenderer left,
Plot2D plot1,
Plot2D plot2,
Plot2D plot3,
YAxisRenderer right)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createColumnLayout(XAxisRenderer[] top,
Plot2D[] plots,
XAxisRenderer[] bottom)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createColumnLayout(XAxisRenderer top,
Plot2D[] plots,
XAxisRenderer bottom)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createColumnLayout(XAxisRenderer top,
Plot2D plot1,
Plot2D plot2)
Creates a
StackPanel containing the specified plots and axis renderer. |
StackPanel |
createColumnLayout(XAxisRenderer top,
Plot2D plot1,
Plot2D plot2,
Plot2D plot3,
XAxisRenderer bottom)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createLayout(boolean horizontal,
Component[] c1,
Component[] c2,
Component[] c3)
Creates a
StackPanel for each array of components and
adds it to a parent StackPanel with opposite orientation. |
GridPanel |
createPlotAndAxes(Plot2D plot,
XAxisRenderer[] top,
YAxisRenderer[] left,
XAxisRenderer[] bottom,
YAxisRenderer[] right)
Creates a
GridPanel containing the specified plot and axis renderers. |
GridPanel |
createPlotWithBottomAndLeftAxes(Plot2D plot,
XAxisRenderer bottom,
YAxisRenderer left)
Creates a
GridPanel containing the specified plot and axis renderers. |
GridPanel |
createPlotWithBottomAndRightAxes(Plot2D plot,
XAxisRenderer bottom,
YAxisRenderer right)
Creates a
GridPanel containing the specified plot and axis renderers. |
GridPanel |
createPlotWithTopAndLeftAxes(Plot2D plot,
XAxisRenderer top,
YAxisRenderer left)
Creates a
GridPanel containing the specified plot and axis renderers. |
GridPanel |
createPlotWithTopAndRightAxes(Plot2D plot,
XAxisRenderer top,
YAxisRenderer right)
Creates a
GridPanel containing the specified plot and axis renderers. |
StackPanel |
createRowLayout(YAxisRenderer[] left,
Plot2D[] plots,
YAxisRenderer[] right)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createRowLayout(YAxisRenderer left,
Plot2D[] plots,
YAxisRenderer right)
Creates a
StackPanel containing the specified plots and axis renderers. |
StackPanel |
createRowLayout(YAxisRenderer left,
Plot2D plot1,
Plot2D plot2)
Creates a
StackPanel containing the specified plots and axis renderer. |
StackPanel |
createRowLayout(YAxisRenderer left,
Plot2D plot1,
Plot2D plot2,
Plot2D plot3,
YAxisRenderer right)
Creates a
StackPanel containing the specified plots and axis renderers. |
public LayoutBuilder(Dashboard board)
LayoutBuilder class.board - A Dashboard instance.public StackPanel createAndAdd1By2RowLayout(Component row1, Component row2col1, Component row2col2)
LayoutPanel.row1 - The component on first row.row2col1 - The first component on second row.row2col2 - The second component on second row.StackPanel instance.public StackPanel createAndAdd2By1RowLayout(Component row1col1, Component row1col2, Component row2)
LayoutPanel.row1col1 - The first component on first row.row1col2 - The second component on first row.row2 - The component on first row.StackPanel instance.public StackPanel createAndAdd2By1ColumnLayout(Component col1row1, Component col1row2, Component col2)
LayoutPanel.col1row1 - The first component in first column.col1row2 - The second component in first column.col2 - The component in second column.StackPanel instance.public StackPanel createAndAdd1By2ColumnLayout(Component col1, Component col2row1, Component col2row2)
LayoutPanel.col1 - The component in first column.col2row1 - The first component in second column.col2row2 - The second component in second column.StackPanel instance.public StackPanel createAndAdd2By2Layout(Component row1col1, Component row1col2, Component row2col1, Component row2col2)
LayoutPanel.row1col1 - The first component on first row.row1col2 - The second component on first row.row2col1 - The first component on second row.row2col2 - The second component on second row.StackPanel instance.public StackPanel create2By2Layout(Component row1col1, Component row1col2, Component row2col1, Component row2col2)
row1col1 - The first component on first row.row1col2 - The second component on first row.row2col1 - The first component on second row.row2col2 - The second component on second row.StackPanel instance.public StackPanel create1By2RowLayout(Component row1, Component row2col1, Component row2col2)
row1 - The component on first row.row2col1 - The first component on second row.row2col2 - The second component on second row.StackPanel instance.public StackPanel create2By1RowLayout(Component row1col1, Component row1col2, Component row2)
row1col1 - The first component on first row.row1col2 - The second component on first row.row2 - The component on first row.StackPanel instance.public StackPanel create2By1ColumnLayout(Component col1row1, Component col1row2, Component col2)
col1row1 - The first component in first column.col1row2 - The second component in first column.col2 - The component in second column.StackPanel instance.public StackPanel create1By2ColumnLayout(Component col1, Component col2row1, Component col2row2)
col1 - The component in first column.col2row1 - The first component in second column.col2row2 - The second component in second column.StackPanel instance.public StackPanel createLayout(boolean horizontal, Component[] c1, Component[] c2, Component[] c3)
StackPanel for each array of components and
adds it to a parent StackPanel with opposite orientation.horizontal - The orientation of the parent panel.c1 - The first stack of components.c2 - The second stack of components.c3 - The third stack of components.StackPanel instance.public GridPanel createAndAddPlotAndAxes(Plot2D plot, XAxisRenderer[] top, YAxisRenderer[] left, XAxisRenderer[] bottom, YAxisRenderer[] right)
GridPanel containing the specified plot and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.plot - A Plot2D instance.top - An array of XAxisRenderer components that should be placed at top side of the plot.left - An array of YAxisRenderer components that should be placed at left side of the plot.bottom - An array of XAxisRenderer components that should be placed at bottom side of the plot.right - An array of YAxisRenderer components that should be placed at right side of the plot.GridPanel instance.public GridPanel createAndAddPlotWithTopAndLeftAxes(Plot2D plot, XAxisRenderer top, YAxisRenderer left)
GridPanel containing the specified plot and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.plot - A Plot2D instance.top - An XAxisRenderer that should be placed at top side of the plot.left - A YAxisRenderer that should be placed at left side of the plot.GridPanel instance.public GridPanel createAndAddPlotWithTopAndRightAxes(Plot2D plot, XAxisRenderer top, YAxisRenderer right)
GridPanel containing the specified plot and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.plot - A Plot2D instance.top - An XAxisRenderer that should be placed at top side of the plot.right - A YAxisRenderer that should be placed at right side of the plot.GridPanel instance.public GridPanel createAndAddPlotWithBottomAndRightAxes(Plot2D plot, XAxisRenderer bottom, YAxisRenderer right)
GridPanel containing the specified plot and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.plot - A Plot2D instance.bottom - An XAxisRenderer that should be placed at bottom side of the plot.right - A YAxisRenderer that should be placed at right side of the plot.GridPanel instance.public GridPanel createAndAddPlotWithBottomAndLeftAxes(Plot2D plot, XAxisRenderer bottom, YAxisRenderer left)
GridPanel containing the specified plot and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.plot - A Plot2D instance.bottom - An XAxisRenderer that should be placed at bottom side of the plot.left - A YAxisRenderer that should be placed at left side of the plot.GridPanel instance.public GridPanel createPlotAndAxes(Plot2D plot, XAxisRenderer[] top, YAxisRenderer[] left, XAxisRenderer[] bottom, YAxisRenderer[] right)
GridPanel containing the specified plot and axis renderers.plot - A Plot2D instance.top - An array of XAxisRenderer components that should be placed at top side of the plot.left - An array of YAxisRenderer components that should be placed at left side of the plot.bottom - An array of XAxisRenderer components that should be placed at bottom side of the plot.right - An array of YAxisRenderer components that should be placed at right side of the plot.GridPanel instance.public GridPanel createPlotWithTopAndLeftAxes(Plot2D plot, XAxisRenderer top, YAxisRenderer left)
GridPanel containing the specified plot and axis renderers.plot - A Plot2D instance.top - An XAxisRenderer that should be placed at top side of the plot.left - A YAxisRenderer that should be placed at left side of the plot.GridPanel instance.public GridPanel createPlotWithTopAndRightAxes(Plot2D plot, XAxisRenderer top, YAxisRenderer right)
GridPanel containing the specified plot and axis renderers.plot - A Plot2D instance.top - An XAxisRenderer that should be placed at top side of the plot.right - A YAxisRenderer that should be placed at right side of the plot.GridPanel instance.public GridPanel createPlotWithBottomAndLeftAxes(Plot2D plot, XAxisRenderer bottom, YAxisRenderer left)
GridPanel containing the specified plot and axis renderers.plot - A Plot2D instance.bottom - An XAxisRenderer that should be placed at bottom side of the plot.left - A YAxisRenderer that should be placed at left side of the plot.GridPanel instance.public GridPanel createPlotWithBottomAndRightAxes(Plot2D plot, XAxisRenderer bottom, YAxisRenderer right)
GridPanel containing the specified plot and axis renderers.plot - A Plot2D instance.bottom - An XAxisRenderer that should be placed at bottom side of the plot.right - A YAxisRenderer that should be placed at right side of the plot.GridPanel instance.public StackPanel createAndAddColumnLayout(XAxisRenderer[] top, Plot2D[] plots, XAxisRenderer[] bottom)
StackPanel containing the specified plots and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.top - An array of XAxisRenderer components that should be placed at top side of the plots.plots - An array of Plot2D instances.bottom - An array of XAxisRenderer components that should be placed at bottom side of the plot.StackPanel instance.public StackPanel createAndAddColumnLayout(XAxisRenderer top, Plot2D plot1, Plot2D plot2)
StackPanel containing the specified plots and axis renderer.
The panel is automatically added to the dashboard's LayoutPanel.top - An XAxisRenderer that should be placed at top side of the plots.plot1 - A Plot2D instance.plot2 - A Plot2D instance.StackPanel instance.public StackPanel createAndAddColumnLayout(XAxisRenderer top, Plot2D[] plots, XAxisRenderer bottom)
StackPanel containing the specified plots and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.top - An XAxisRenderer that should be placed at top side of the plots.plots - An array of Plot2D instances.bottom - An XAxisRenderer that should be placed at bottom side of the plots.StackPanel instance.public StackPanel createAndAddColumnLayout(XAxisRenderer top, Plot2D plot1, Plot2D plot2, Plot2D plot3, XAxisRenderer bottom)
StackPanel containing the specified plots and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.top - An XAxisRenderer that should be placed at top side of the plots.plot1 - A Plot2D instance.plot2 - A Plot2D instance.plot3 - A Plot2D instance.bottom - An XAxisRenderer that should be placed at top side of the plots.StackPanel instance.public StackPanel createColumnLayout(XAxisRenderer[] top, Plot2D[] plots, XAxisRenderer[] bottom)
StackPanel containing the specified plots and axis renderers.top - An array of XAxisRenderer components that should be placed at top side of the plot.plots - An array of Plot2D instances.bottom - An array of XAxisRenderer components that should be placed at bottom side of the plot.StackPanel instance.public StackPanel createColumnLayout(XAxisRenderer top, Plot2D plot1, Plot2D plot2)
StackPanel containing the specified plots and axis renderer.top - An XAxisRenderer that should be placed at top side of the plots.plot1 - A Plot2D instance.plot2 - A Plot2D instance.StackPanel instance.public StackPanel createColumnLayout(XAxisRenderer top, Plot2D plot1, Plot2D plot2, Plot2D plot3, XAxisRenderer bottom)
StackPanel containing the specified plots and axis renderers.top - An XAxisRenderer that should be placed at top side of the plots.plot1 - A Plot2D instance.plot2 - A Plot2D instance.plot3 - A Plot2D instance.bottom - An XAxisRenderer that should be placed at top side of the plots.StackPanel instance.public StackPanel createColumnLayout(XAxisRenderer top, Plot2D[] plots, XAxisRenderer bottom)
StackPanel containing the specified plots and axis renderers.top - An XAxisRenderer that should be placed at top side of the plots.plots - An array of Plot2D instances.bottom - An XAxisRenderer that should be placed at bottom side of the plot.StackPanel instance.public StackPanel createAndAddRowLayout(YAxisRenderer[] left, Plot2D[] plots, YAxisRenderer[] right)
StackPanel containing the specified plots and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.left - An array of YAxisRenderer components that should be placed at left side of the plots.plots - An array of Plot2D instances.right - An array of YAxisRenderer components that should be placed at right side of the plots.StackPanel instance.public StackPanel createAndAddRowLayout(YAxisRenderer left, Plot2D plot1, Plot2D plot2)
StackPanel containing the specified plots and axis renderer.
The panel is automatically added to the dashboard's LayoutPanel.left - A YAxisRenderer that should be placed at left side of the plots.plot1 - A Plot2D instance.plot2 - A Plot2D instance.StackPanel instance.public StackPanel createAndAddRowLayout(YAxisRenderer left, Plot2D plot1, Plot2D plot2, Plot2D plot3, YAxisRenderer right)
StackPanel containing the specified plots and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.left - A YAxisRenderer that should be placed at left side of the plots.plot1 - A Plot2D instance.plot2 - A Plot2D instance.plot3 - A Plot2D instance.right - A YAxisRenderer that should be placed at right side of the plots.StackPanel instance.public void createAndAddRowLayout(YAxisRenderer left, Plot2D[] plots, YAxisRenderer right)
StackPanel containing the specified plots and axis renderers.
The panel is automatically added to the dashboard's LayoutPanel.left - A YAxisRenderer that should be placed at left side of the plots.plots - An array of Plot2D instances.right - A YAxisRenderer that should be placed at right side of the plots.public StackPanel createRowLayout(YAxisRenderer[] left, Plot2D[] plots, YAxisRenderer[] right)
StackPanel containing the specified plots and axis renderers.left - An array of YAxisRenderer components that should be placed at left side of the plots.plots - An array of Plot2D instances.right - An array of YAxisRenderer components that should be placed at right side of the plots.StackPanel instance.public StackPanel createRowLayout(YAxisRenderer left, Plot2D plot1, Plot2D plot2)
StackPanel containing the specified plots and axis renderer.left - A YAxisRenderer that should be placed at left side of the plots.plot1 - A Plot2D instance.plot2 - A Plot2D instance.StackPanel instance.public StackPanel createRowLayout(YAxisRenderer left, Plot2D plot1, Plot2D plot2, Plot2D plot3, YAxisRenderer right)
StackPanel containing the specified plots and axis renderers.left - A YAxisRenderer that should be placed at left side of the plots.plot1 - A Plot2D instance.plot2 - A Plot2D instance.plot3 - A Plot2D instance.right - A YAxisRenderer that should be placed at right side of the plots.StackPanel instance.public StackPanel createRowLayout(YAxisRenderer left, Plot2D[] plots, YAxisRenderer right)
StackPanel containing the specified plots and axis renderers.left - A YAxisRenderer that should be placed at left side of the plots.plots - An array of Plot2D instances.right - A YAxisRenderer that should be placed at right side of the plots.StackPanel instance.