Package qupath.lib.gui.tools
Class PaneTools
java.lang.Object
qupath.lib.gui.tools.PaneTools
Deprecated.
Assorted static functions to help when working with a JavaFX panes.
- Author:
- Pete Bankhead
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddGridRow(GridPane pane, int row, int col, String tooltipText, Node... nodes) Deprecated.Add a row of nodes.static GridPanecreateColumnGrid(int nCols) Deprecated.Create a GridPane containing columns that resize similarly to Swing's GridLayout().static GridPanecreateColumnGrid(Node... nodes) Deprecated.Create a GridPane containing columns that resize similarly to Swing's GridLayout().static GridPanecreateColumnGridControls(Node... nodes) Deprecated.Create a GridPane containing columns that resize similarly to Swing's GridLayout(), where controls have their widths bound to their parent.static GridPanecreateRowGrid(Node... nodes) Deprecated.Create a GridPane containing rows that resize similarly to Swing's GridLayout().static GridPanecreateRowGridControls(Node... nodes) Deprecated.Create a GridPane containing columns that resize similarly to Swing's GridLayout(), while also resizing contained objects to have the corresponding widths.static Collection<Node>getContents(Parent parent, Collection<Node> collection, boolean doRecursive) Deprecated.Get the nodes that are included within aParent, optionally adding other nodes recursively.static <T extends Node>
Collection<T>getContentsOfType(Parent parent, Class<T> cls, boolean doRecursive) Deprecated.Get the nodes of type T that are contained within aParent, optionally adding other nodes recursively.static voidsetFillHeight(Boolean doFill, Node... nodes) Deprecated.Set theGridPane.setFillHeight(Node, Boolean)property for specified nodes.static voidsetFillWidth(Boolean doFill, Node... nodes) Deprecated.Set theGridPane.setFillWidth(Node, Boolean)property for specified nodes.static voidsetHGrowPriority(Priority priority, Node... nodes) Deprecated.Set theGridPane.setHgrow(Node, Priority)property for specified nodes.static voidsetMaxHeight(double height, Region... regions) Deprecated.Set the max height property for the specified regions.static voidsetMaxWidth(double width, Region... regions) Deprecated.Set the max width property for the specified regions.static voidsetMinHeight(double height, Region... regions) Deprecated.Set the min height property for the specified regions.static voidsetMinWidth(double width, Region... regions) Deprecated.Set the min width property for the specified regions.static voidsetToExpandGridPaneHeight(Node... nodes) Deprecated.Set constraints and max width values (where possible) so that the specified nodes fill all available vertical space in aGridPane.static voidsetToExpandGridPaneWidth(Node... nodes) Deprecated.Set constraints and max width values (where possible) so that the specified nodes fill all available horizontal space in aGridPane.static voidsetVGrowPriority(Priority priority, Node... nodes) Deprecated.Set theGridPane.setVgrow(Node, Priority)property for specified nodes.static voidsimplifyTitledPane(TitledPane pane, boolean boldTitle) Deprecated.Simplify the appearance of aTitledPaneusing CSS.
-
Constructor Details
-
PaneTools
public PaneTools()Deprecated.
-
-
Method Details
-
addGridRow
Deprecated.Add a row of nodes. The rowspan is always 1. The colspan is 1 by default, unless a Node is added multiple times consecutively in which case it is the sum of the number of times the node is added.- Parameters:
pane-row-col-tooltipText-nodes-
-
setHGrowPriority
Deprecated.Set theGridPane.setHgrow(Node, Priority)property for specified nodes.- Parameters:
priority-nodes-
-
setVGrowPriority
Deprecated.Set theGridPane.setVgrow(Node, Priority)property for specified nodes.- Parameters:
priority-nodes-
-
setMaxWidth
Deprecated.Set the max width property for the specified regions. This can be especially useful when setting the width toDouble.MAX_VALUE, indicating that the region may be enlarged as required.- Parameters:
width-regions-
-
setMaxHeight
Deprecated.Set the max height property for the specified regions. This can be especially useful when setting the height toDouble.MAX_VALUE, indicating that the region may be enlarged as required.- Parameters:
height-regions-
-
setMinWidth
Deprecated.Set the min width property for the specified regions. This can be especially useful when setting the width toRegion.USE_PREF_SIZE, indicating that the region should not be shrunk beyond its preferred size.- Parameters:
width-regions-
-
setMinHeight
Deprecated.Set the min height property for the specified regions. This can be especially useful when setting the height toRegion.USE_PREF_SIZE, indicating that the region should not be shrunk beyond its preferred size.- Parameters:
height-regions-
-
setFillWidth
Deprecated.Set theGridPane.setFillWidth(Node, Boolean)property for specified nodes.- Parameters:
doFill-nodes-
-
setToExpandGridPaneWidth
Deprecated.Set constraints and max width values (where possible) so that the specified nodes fill all available horizontal space in aGridPane.- Parameters:
nodes-
-
setToExpandGridPaneHeight
Deprecated.Set constraints and max width values (where possible) so that the specified nodes fill all available vertical space in aGridPane.- Parameters:
nodes-
-
setFillHeight
Deprecated.Set theGridPane.setFillHeight(Node, Boolean)property for specified nodes.- Parameters:
doFill-nodes-
-
createRowGrid
Deprecated.Create a GridPane containing rows that resize similarly to Swing's GridLayout().- Parameters:
nodes-- Returns:
-
createRowGridControls
Deprecated.Create a GridPane containing columns that resize similarly to Swing's GridLayout(), while also resizing contained objects to have the corresponding widths.- Parameters:
nodes-- Returns:
-
createColumnGridControls
Deprecated.Create a GridPane containing columns that resize similarly to Swing's GridLayout(), where controls have their widths bound to their parent.- Parameters:
nodes-- Returns:
-
createColumnGrid
Deprecated.Create a GridPane containing columns that resize similarly to Swing's GridLayout().- Parameters:
nodes-- Returns:
-
createColumnGrid
Deprecated.Create a GridPane containing columns that resize similarly to Swing's GridLayout().- Parameters:
nCols-- Returns:
-
getContents
public static Collection<Node> getContents(Parent parent, Collection<Node> collection, boolean doRecursive) Deprecated.Get the nodes that are included within aParent, optionally adding other nodes recursively. Without the recursive search, this is similar toParent.getChildrenUnmodifiable()in most cases, except that a separate collection is used. However in some casesgetItems()must be used instead. Currently this applies only toSplitPanebut this may be used elsewhere if appropriate.- Parameters:
parent-collection-doRecursive-- Returns:
-
getContentsOfType
public static <T extends Node> Collection<T> getContentsOfType(Parent parent, Class<T> cls, boolean doRecursive) Deprecated.Get the nodes of type T that are contained within aParent, optionally adding other nodes recursively. This can be helpful, for example, to extract all the Buttons or Regions within a pane in order to set some property of all of them.- Type Parameters:
T-- Parameters:
parent-cls-doRecursive-- Returns:
- See Also:
-
simplifyTitledPane
Deprecated.Simplify the appearance of aTitledPaneusing CSS. This is useful if using aTitledPaneto define expanded options, which should be displayed unobtrusively.- Parameters:
pane- the pane to simplifyboldTitle- if true, the title should be displayed in bold
-
GridPaneUtilscontains many of the features.