Skip navigation links
A B C D E F G I J L M N O P R S T U V W 

A

acceptingAll() - Static method in class de.javagl.common.ui.tree.filtered.TreeModelFilters
Returns a TreeModelFilter that is accepting all nodes.
acceptNode(TreeModel, TreeNode) - Method in interface de.javagl.common.ui.tree.filtered.TreeModelFilter
Returns whether the given node should be contained in the filtered tree model.
AccordionPanel - Class in de.javagl.common.ui.panel.collapsible
Convenience class to collect a set of CollapsiblePanel instances.
AccordionPanel() - Constructor for class de.javagl.common.ui.panel.collapsible.AccordionPanel
Default constructor
Actions - Class in de.javagl.common.ui
Methods to create Action instances.
Actions.ActionBuilder - Class in de.javagl.common.ui
A builder for Action instances
add(JDesktopPaneLayout) - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Add the given desktop pane layout as a child to this one
add(JDesktopPaneLayout, Object) - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Add the given desktop pane layout as a child to this one
add(JDesktopPaneLayout, Object, int) - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Add the given desktop pane layout as a child to this one
add(JInternalFrame) - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Add the given internal frame to this layout manager.
add(JInternalFrame, Object) - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Add the given internal frame to this layout manager.
add(JInternalFrame, Object, int) - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Add the given internal frame to this layout manager.
addColumn(String, Class<? extends V>, Function<T, V>) - Method in class de.javagl.common.ui.table.GenericTableModel
Add the specified column to this model
addColumn(String, Class<? extends V>, Function<T, V>, BiConsumer<T, V>) - Method in class de.javagl.common.ui.table.GenericTableModel
Add the specified column to this model
addLayoutComponent(String, Component) - Method in class de.javagl.common.ui.layout.AspectLayout
 
addProperty(String, String, String) - Method in class de.javagl.common.ui.properties.PropertiesDialog.PropertiesDialogBuilder
Add the specified property to the dialog that is being built
addProperty(String, String) - Method in class de.javagl.common.ui.properties.PropertiesDialog.PropertiesDialogBuilder
Add the specified property to the dialog that is being built
addProperty(String, String, String, Predicate<? super String>) - Method in class de.javagl.common.ui.properties.PropertiesDialog.PropertiesDialogBuilder
Add the specified property to the dialog that is being built
addProperty(String, String, String, Predicate<? super String>, Function<? super String, String>) - Method in class de.javagl.common.ui.properties.PropertiesDialog.PropertiesDialogBuilder
Add the specified property to the dialog that is being built
addRow(Container, int, int, Component...) - Static method in class de.javagl.common.ui.GridBagLayouts
Add the given components as a new row in the given container, which must have a GridBagLayout.
addRow(Object) - Method in class de.javagl.common.ui.table.GenericTableModel
Add the given element as one row of the table
addStateListener(CheckBoxTree.StateListener) - Method in class de.javagl.common.ui.tree.checkbox.CheckBoxTree
Add the given CheckBoxTree.StateListener to be informed about changes of the CheckBoxTree.State of a node.
addTo(JTabbedPane, String, JComponent) - Static method in class de.javagl.common.ui.closeable.CloseableTab
Adds a CloseableTab with the given title and component to the given tabbed pane.
addTo(JTabbedPane, String, JComponent, boolean) - Static method in class de.javagl.common.ui.closeable.CloseableTab
Adds a CloseableTab with the given title and component to the given tabbed pane.
addTo(JTabbedPane, String, JComponent, CloseCallback) - Static method in class de.javagl.common.ui.closeable.CloseableTab
Adds a CloseableTab with the given title and component to the given tabbed pane.
addToAccordion(String, JComponent) - Method in class de.javagl.common.ui.panel.collapsible.AccordionPanel
Add the given component to this accordion, wrapping it into a collapsible panel with the given title.
addToAccordion(String, JComponent, boolean) - Method in class de.javagl.common.ui.panel.collapsible.AccordionPanel
Add the given component to this accordion, wrapping it into a collapsible panel with the given title.
addToSelection(ListSelectionModel, Collection<? extends Integer>) - Static method in class de.javagl.common.ui.list.ListSelectionModels
Add the given indices to the selection in the given list selection model
addTreeModelListener(TreeModelListener) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
 
adjustColumnWidths(JTable, int) - Static method in class de.javagl.common.ui.JTables
Adjust the preferred widths of the columns of the given table depending on the contents of the cells and headers.
alwaysTrue() - Static method in class de.javagl.common.ui.closeable.CloseCallbacks
Returns a CloseCallback that always returns true
and(RowFilter<M, I>, RowFilter<M, I>) - Static method in class de.javagl.common.ui.table.RowFilters
Combine the given filters, using an "and", if they are not null.
applyButtonTreeCellRenderer(JTree, Function<Object, JButton>, Function<Object, String>) - Static method in class de.javagl.common.ui.JTrees
Apply a cell renderer to the given tree that will create cells that consist of a button and a label, based on a GenericTreeCellRenderer.
AspectLayout - Class in de.javagl.common.ui.layout
An implementation of the LayoutManager interface, for containers that contain components that should be as large as possible under the constraint that a given aspect ratio (width/height) is maintained for each of them.
AspectLayout(double) - Constructor for class de.javagl.common.ui.layout.AspectLayout
Creates a new AspectLayout for the given aspect.
AspectLayout(double, double) - Constructor for class de.javagl.common.ui.layout.AspectLayout
Creates a new AspectLayout for the given aspect and alignment.
asRectangle(Rectangle2D) - Static method in class de.javagl.common.ui.MoreSwingUtilities
Converts the given Rectangle2D into a Rectangle by casting all elements to int.
attach(JTextComponent) - Static method in class de.javagl.common.ui.text.UndoRedoHandler
Attach an undo/redo handler to the given text component.

B

BackgroundColorTableCellRenderer - Class in de.javagl.common.ui.table.renderer
Implementation of a table cell renderer that sets the background color of the cell renderer component from a delegate renderer based on a color function for the value in the cell.
build() - Method in class de.javagl.common.ui.Actions.ActionBuilder
Build the action
build() - Method in class de.javagl.common.ui.properties.PropertiesDialog.PropertiesDialogBuilder

C

CheckBoxTree - Class in de.javagl.common.ui.tree.checkbox
Simple implementation of a JTree that contains a check box at each node, and allows querying the selection state of the nodes.
CheckBoxTree(TreeModel) - Constructor for class de.javagl.common.ui.tree.checkbox.CheckBoxTree
Creates a new checkbox tree with the given model
CheckBoxTree.State - Enum in de.javagl.common.ui.tree.checkbox
The selection state of a node
CheckBoxTree.StateListener - Interface in de.javagl.common.ui.tree.checkbox
Interface for classes that want to be informed about changes of the CheckBoxTree.State of nodes
ClassWithSimpleClassNameListCellRenderer - Class in de.javagl.common.ui.list.renderer
A ListCellRenderer that renders Class objects by showing their Class#getSimpleName.
ClassWithSimpleClassNameListCellRenderer() - Constructor for class de.javagl.common.ui.list.renderer.ClassWithSimpleClassNameListCellRenderer
 
clearAccordion() - Method in class de.javagl.common.ui.panel.collapsible.AccordionPanel
Remove all components that have previously been added by calling AccordionPanel.addToAccordion(java.lang.String, javax.swing.JComponent)
clearAll() - Method in class de.javagl.common.ui.table.MultiColumnRegexFilter
Clear all text fields in this instance
CloseablePanel - Class in de.javagl.common.ui.closeable
Simple implementation of a panel with a "close" button
CloseablePanel(JComponent) - Constructor for class de.javagl.common.ui.closeable.CloseablePanel
Create a new instance that shows the given content
CloseablePanel(String, JComponent) - Constructor for class de.javagl.common.ui.closeable.CloseablePanel
Creates a new instance that shows the given title and content
CloseablePanel(String, JComponent, CloseCallback) - Constructor for class de.javagl.common.ui.closeable.CloseablePanel
Creates a new instance with the given title and content.
CloseableTab - Class in de.javagl.common.ui.closeable
Implementation of a tab for a JTabbedPane that can be closed
CloseCallback - Interface in de.javagl.common.ui.closeable
Interface for classes that may check whether a container that contains another component may be closed
CloseCallbacks - Class in de.javagl.common.ui.closeable
Methods to create CloseCallback instances
collapseAll(JTree, boolean) - Static method in class de.javagl.common.ui.JTrees
Collapse all rows of the given tree
CollapsiblePanel - Class in de.javagl.common.ui.panel.collapsible
Simple implementation of a collapsible panel.
CollapsiblePanel(String) - Constructor for class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
Creates a new collapsible panel with a FlowLayout and the given title.
CollapsiblePanel(String, boolean) - Constructor for class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
Creates a new collapsible panel with a FlowLayout and the given title.
CollapsiblePanel(LayoutManager, String) - Constructor for class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
Creates a new collapsible panel with the given layout and title
CollapsiblePanel(LayoutManager, String, boolean) - Constructor for class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
Creates a new collapsible panel with the given layout and title
CompoundTableCellRenderer - Class in de.javagl.common.ui.table.renderer
A TableCellRenderer that combines two others.
CompoundTableCellRenderer(TableCellRenderer, TableCellRenderer) - Constructor for class de.javagl.common.ui.table.renderer.CompoundTableCellRenderer
Creates a new renderer with the given delegates.
computeExpandedPaths(JTree) - Static method in class de.javagl.common.ui.JTrees
Compute the list of all tree paths in the given tree that are currently expanded
computeIndexInParent(Object) - Static method in class de.javagl.common.ui.JTrees
Computes the index that the given node has in its parent node.
computeRowsWithEqualValue(JTable, int, int) - Static method in class de.javagl.common.ui.JTables
Compute the indices of all rows of the given table where the value in the given column is equal to the value in the given row
computeSelectedIndices(ListSelectionModel) - Static method in class de.javagl.common.ui.list.ListSelectionModels
Compute the list of all indices that are selected in the given selection model
computeUnselectedIndices(ListSelectionModel, int) - Static method in class de.javagl.common.ui.list.ListSelectionModels
Compute the list of all indices that are unselected in the given selection model
confirming() - Static method in class de.javagl.common.ui.closeable.CloseCallbacks
Returns a CloseCallback that shows a confirmation dialog
confirming(String) - Static method in class de.javagl.common.ui.closeable.CloseCallbacks
Returns a CloseCallback that shows a confirmation dialog that asks the given question
containsLeafContainingStringIgnoreCase(String) - Static method in class de.javagl.common.ui.tree.filtered.TreeModelFilters
Returns a TreeModelFilter that is accepting all leaf nodes whose string representation contains the given string (ignoring upper/lower case), and all ancestors of these nodes
containsStringIgnoreCase(String) - Static method in class de.javagl.common.ui.tree.filtered.TreeModelFilters
Returns a TreeModelFilter that is accepting all nodes whose string representation contains the given string (ignoring upper/lower case), and all ancestors of these nodes
convertMouseEvent(Component, MouseEvent, Component) - Static method in class de.javagl.common.ui.MoreSwingUtilities
Implementation of SwingUtilities.convertMouseEvent( Component, MouseEvent, Component) that properly sets the button of the returned event.
convertPoint(Component, Point2D, Component) - Static method in class de.javagl.common.ui.MoreSwingUtilities
Wrapper for SwingUtilities#convertPoint that accepts a Point2D and not only a Point.
convertRowIndicesToModel(JTable, Iterable<? extends Integer>) - Static method in class de.javagl.common.ui.JTables
Convert all of the given view row indices to model row indices for the given table
convertRowIndicesToView(JTable, Iterable<? extends Integer>) - Static method in class de.javagl.common.ui.JTables
Convert all of the given model row indices to view row indices for the given table
countNodes(TreeModel) - Static method in class de.javagl.common.ui.JTrees
Count the number of nodes in the given tree model
create(String) - Static method in class de.javagl.common.ui.Actions
Creates a new Actions.ActionBuilder to create an action with the given name
create(Component, String) - Static method in class de.javagl.common.ui.properties.PropertiesDialog
Creates a new PropertiesDialog.PropertiesDialogBuilder that creates a PropertiesDialog with the given parent and title
create(TreeModel) - Static method in class de.javagl.common.ui.tree.filtered.FilteredTree
Creates a new filtered tree for the given (unfiltered!)
createChild() - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Create a new desktop pane layout that may be added as a child to this layout
createContentBasedSelectionActions() - Static method in class de.javagl.common.ui.table.TableActions
Create the actions for changing the selection state of a table based on the content of the cell that was clicked on.
createFilterTextField(int) - Method in class de.javagl.common.ui.table.MultiColumnRegexFilter
Create the text field for the specified column
createGenericSelectionActions(JTable) - Static method in class de.javagl.common.ui.table.TableActions
Create the actions for changing the selection state of a table.
createSpinner(SpinnerModel, int) - Static method in class de.javagl.common.ui.JSpinners
Create a spinner with the given model, showing the given number of fraction digits for number models
createTreePathToRoot(TreeModel, Object) - Static method in class de.javagl.common.ui.JTrees
Returns the tree path from the given node to the root in the given tree model
createVerticalScrollPane(JComponent) - Static method in class de.javagl.common.ui.JScrollPanes
Creates a JScrollPane for vertically scrolling the given component.
CustomizedTableHeader - Class in de.javagl.common.ui.table
A table header that allows adding custom components over the usual table header, and maintains the appropriate size for these components
CustomizedTableHeader(TableColumnModel, int, IntFunction<JComponent>, IntConsumer) - Constructor for class de.javagl.common.ui.table.CustomizedTableHeader
Creates a new instance

D

de.javagl.common.ui - package de.javagl.common.ui
Utility classes related to Swing UI components, and extensions for several Swing components
de.javagl.common.ui.closeable - package de.javagl.common.ui.closeable
Package with UI components that can be closed
de.javagl.common.ui.layout - package de.javagl.common.ui.layout
Special layout manager implementations
de.javagl.common.ui.list - package de.javagl.common.ui.list
Utility classes related to lists
de.javagl.common.ui.list.renderer - package de.javagl.common.ui.list.renderer
Utility classes related to list cell renderers
de.javagl.common.ui.panel.collapsible - package de.javagl.common.ui.panel.collapsible
Classes related to panels that can be collapsed
de.javagl.common.ui.properties - package de.javagl.common.ui.properties
Classes for showing dialogs that allow entering properties
de.javagl.common.ui.table - package de.javagl.common.ui.table
Utility classes related to tables
de.javagl.common.ui.table.renderer - package de.javagl.common.ui.table.renderer
Utility classes related to table cell renderers
de.javagl.common.ui.text - package de.javagl.common.ui.text
Utility classes related to text components
de.javagl.common.ui.tree.checkbox - package de.javagl.common.ui.tree.checkbox
A tree implementation that supports check boxes at its nodes
de.javagl.common.ui.tree.filtered - package de.javagl.common.ui.tree.filtered
Classes for filtered JTrees.
de.javagl.common.ui.tree.renderer - package de.javagl.common.ui.tree.renderer
Utility classes related to tree cell renderers
de.javagl.common.ui.utils.desktop - package de.javagl.common.ui.utils.desktop
A layout manager for a JDesktopPane
detach() - Method in class de.javagl.common.ui.text.UndoRedoHandler
Detach this handler from the text component.
detachSaveOnClose(Window) - Method in class de.javagl.common.ui.properties.PropertiesManager
Detaches the listener that was attached to the given window when it was passed to PropertiesManager.saveOnClose(Window)

E

EnumListCellRenderer - Class in de.javagl.common.ui.list.renderer
A ListCellRenderer that renders Enum values with their name transformed from the constant naming scheme to a "nicer", camel-case naming: "SOME_ENUM_VALUE" will be transformed to "Some Enum Value"
EnumListCellRenderer() - Constructor for class de.javagl.common.ui.list.renderer.EnumListCellRenderer
 
expandAll(JTree) - Static method in class de.javagl.common.ui.JTrees
Expand all rows of the given tree.
expandAllFixedHeight(JTree) - Static method in class de.javagl.common.ui.JTrees
Expand all rows of the given tree, assuming a fixed height for the rows.

F

FilteredTree - Class in de.javagl.common.ui.tree.filtered
Utility class for maintaining a filtered JTree and its model.
FilteredTreeModel - Class in de.javagl.common.ui.tree.filtered
Implementation of a TreeModel that can be filtered with a TreeModelFilter
FilteredTreeModel(TreeModel) - Constructor for class de.javagl.common.ui.tree.filtered.FilteredTreeModel
Creates a new filtered tree model for the given delegate
findNode(TreeModel, Object) - Static method in class de.javagl.common.ui.JTrees
Returns the first node with the given user object in the tree with the given model.
fireTreeStructureChanged(Object, Object[], int[], Object[]) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
Fires a treeStructureChanged event

G

GenericTableModel - Class in de.javagl.common.ui.table
Simple implementation of a generic table model that operates on objects using getters and setters.
GenericTableModel() - Constructor for class de.javagl.common.ui.table.GenericTableModel
Default constructor
GenericTreeCellRenderer - Class in de.javagl.common.ui.tree.renderer
Base implementation of a TreeCellRenderer that allows adding arbitrary components to the tree cells.
GenericTreeCellRenderer() - Constructor for class de.javagl.common.ui.tree.renderer.GenericTreeCellRenderer
 
get(String) - Static method in class de.javagl.common.ui.properties.PropertiesHandles
Returns the PropertiesHandle for the given properties file name, creating it if it does not exist yet
getAllDescendants(TreeModel, Object) - Static method in class de.javagl.common.ui.JTrees
Return all descendants of the given node in the given tree model (not including the given node!)
getAllNodes(TreeModel) - Static method in class de.javagl.common.ui.JTrees
Return all nodes of the given tree model
getChild(Object, int) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
 
getChildCount(Object) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
 
getChildren(TreeModel, Object) - Static method in class de.javagl.common.ui.JTrees
Returns the children of the given node in the given tree model
getColumnClass(int) - Method in class de.javagl.common.ui.table.GenericTableModel
 
getColumnCount() - Method in class de.javagl.common.ui.table.GenericTableModel
 
getColumnName(int) - Method in class de.javagl.common.ui.table.GenericTableModel
 
getFilteredModel() - Method in class de.javagl.common.ui.tree.filtered.FilteredTree
Returns the (filtered) model of the tree
getIndexOfChild(Object, Object) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
 
getLeafNodes(TreeModel) - Static method in class de.javagl.common.ui.JTrees
Returns a list containing all leaf nodes from the given tree model.
getLeafNodes(TreeModel, Object) - Static method in class de.javagl.common.ui.JTrees
Returns a list containing all leaf nodes from the given tree model that are descendants of the given node.
getListCellRendererComponent(JList<?>, Object, int, boolean, boolean) - Method in class de.javagl.common.ui.list.renderer.ClassWithSimpleClassNameListCellRenderer
 
getListCellRendererComponent(JList<?>, Object, int, boolean, boolean) - Method in class de.javagl.common.ui.list.renderer.EnumListCellRenderer
 
getListCellRendererComponent(JList<?>, Object, int, boolean, boolean) - Method in class de.javagl.common.ui.list.renderer.ObjectAsSimpleClassNameListCellRenderer
 
getMaximumSize() - Method in class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
 
getMinimumSize() - Method in class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
 
getParent(TreeModel, Object) - Static method in class de.javagl.common.ui.JTrees
Returns the parent of the given node in the given tree model.
getPreferredSize() - Method in class de.javagl.common.ui.closeable.CloseablePanel
 
getPreferredSize() - Method in class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
 
getRoot() - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
 
getRowCount() - Method in class de.javagl.common.ui.table.GenericTableModel
 
getSelectionState(Object) - Method in class de.javagl.common.ui.tree.checkbox.CheckBoxTree
Returns the selection state of the given node, or null if the given object is not a node in this tree.
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class de.javagl.common.ui.table.renderer.BackgroundColorTableCellRenderer
 
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class de.javagl.common.ui.table.renderer.CompoundTableCellRenderer
 
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class de.javagl.common.ui.table.renderer.NumberTableCellRenderer
 
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class de.javagl.common.ui.table.renderer.PathTooltipCellRenderer
 
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class de.javagl.common.ui.table.renderer.SortOrderTableHeaderCellRenderer
 
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class de.javagl.common.ui.table.renderer.TooltipCellRenderer
 
getToolTipText(MouseEvent) - Method in class de.javagl.common.ui.table.ToolTipTableHeader
 
getTree() - Method in class de.javagl.common.ui.tree.filtered.FilteredTree
Returns the tree
getTreeCellRendererComponent(JTree, Object, boolean, boolean, boolean, int, boolean) - Method in class de.javagl.common.ui.tree.renderer.GenericTreeCellRenderer
 
getUserObjectFromTreeNode(Object) - Static method in class de.javagl.common.ui.JTrees
Returns the user object from the given tree node.
getUserObjectFromTreePath(TreePath) - Static method in class de.javagl.common.ui.JTrees
Returns the user object from the last path component of the given tree path.
getValueAt(int, int) - Method in class de.javagl.common.ui.table.GenericTableModel
 
GridBagLayouts - Class in de.javagl.common.ui
Utility methods related to containers with a GridBagLayout
GuiUtils - Class in de.javagl.common.ui
Various GUI utility methods

I

insertRow(int, Object) - Method in class de.javagl.common.ui.table.GenericTableModel
Add the given element as one row of the table
invalidate() - Method in class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
 
invokeOnEventDispatchThread(Runnable) - Static method in class de.javagl.common.ui.MoreSwingUtilities
Execute the given runnable on the event dispatch thread.
invokeOnEventDispatchThreadSync(Runnable) - Static method in class de.javagl.common.ui.MoreSwingUtilities
Execute the given runnable on the event dispatch thread.
isCellEditable(int, int) - Method in class de.javagl.common.ui.table.GenericTableModel
 
isLeaf(Object) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
 
isMinimized() - Method in class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
Returns whether this panel is currently minimized (collapsed)
isOptimizedDrawingEnabled() - Method in class de.javagl.common.ui.closeable.CloseablePanel
 

J

JDesktopPaneLayout - Class in de.javagl.common.ui.utils.desktop
A layout manager for JDesktopPanes.
JDesktopPaneLayout(JDesktopPane) - Constructor for class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Creates a new desktop pane layout for the given desktop pane
JOptionPanes - Class in de.javagl.common.ui
Methods related to option panes
JScrollPanes - Class in de.javagl.common.ui
Methods related to JScrollPanes
JSpinners - Class in de.javagl.common.ui
Methods related to JSpinners
JSplitPanes - Class in de.javagl.common.ui
Methods related to JSplitPanes
JTables - Class in de.javagl.common.ui
Utility methods related to tables
JTrees - Class in de.javagl.common.ui
Utility methods related to trees

L

layoutContainer(Container) - Method in class de.javagl.common.ui.layout.AspectLayout
 
ListSelectionModels - Class in de.javagl.common.ui.list
Methods related to ListSelectionModel instances
LocationBasedAction - Class in de.javagl.common.ui
An AbstractAction that will be notified about the component and the location where a popup menu will be shown when it is contained in a popup menu that is triggered by a LocationBasedPopupHandler.
LocationBasedAction() - Constructor for class de.javagl.common.ui.LocationBasedAction
 
LocationBasedPopupHandler - Class in de.javagl.common.ui
A MouseListener that may show a popup menu, and prepare all LocationBasedActions that are contained in the menu items of the menu before it is shown.
LocationBasedPopupHandler(JPopupMenu) - Constructor for class de.javagl.common.ui.LocationBasedPopupHandler
Creates a new location based popup handler that shows the given popup menu

M

mayClose(Component) - Method in interface de.javagl.common.ui.closeable.CloseCallback
Will be called when the button for closing the container with the given component was clicked.
minimumLayoutSize(Container) - Method in class de.javagl.common.ui.layout.AspectLayout
 
MoreSwingUtilities - Class in de.javagl.common.ui
Utility methods based on methods from SwingUtilities
mousePressed(MouseEvent) - Method in class de.javagl.common.ui.LocationBasedPopupHandler
 
mouseReleased(MouseEvent) - Method in class de.javagl.common.ui.LocationBasedPopupHandler
 
MultiColumnRegexFilter - Class in de.javagl.common.ui.table
A class that creates a table filter for multiple columns.
MultiColumnRegexFilter(Consumer<? super RowFilter<TableModel, Integer>>) - Constructor for class de.javagl.common.ui.table.MultiColumnRegexFilter
Creates a new instance that passes the filter to the given consumer

N

NumberBackgroundColorTableCellRenderer - Class in de.javagl.common.ui.table.renderer
Implementation of a TableCellRenderer that renders the background of cells that contain a number with a color that is computed from mapping the number to a color using a coloring function
NumberBackgroundColorTableCellRenderer(double, double, DoubleFunction<? extends Color>, Function<? super Number, String>) - Constructor for class de.javagl.common.ui.table.renderer.NumberBackgroundColorTableCellRenderer
Creates a new instance.
NumberTableCellRenderer - Class in de.javagl.common.ui.table.renderer
Implementation of a TableCellRenderer that shows numbers using a given formatter

O

ObjectAsSimpleClassNameListCellRenderer - Class in de.javagl.common.ui.list.renderer
A ListCellRenderer that renders objects by showing the Class#getSimpleName of their class.
ObjectAsSimpleClassNameListCellRenderer() - Constructor for class de.javagl.common.ui.list.renderer.ObjectAsSimpleClassNameListCellRenderer
 
or(RowFilter<M, I>, RowFilter<M, I>) - Static method in class de.javagl.common.ui.table.RowFilters
Combine the given filters, using an "or", if they are not null.

P

PathTooltipCellRenderer - Class in de.javagl.common.ui.table.renderer
A table cell renderer for Path objects.
PathTooltipCellRenderer() - Constructor for class de.javagl.common.ui.table.renderer.PathTooltipCellRenderer
 
preferredLayoutSize(Container) - Method in class de.javagl.common.ui.layout.AspectLayout
 
prepare(Object, JPanel) - Method in class de.javagl.common.ui.tree.renderer.GenericTreeCellRenderer
This method will be called in order to prepare the returned cell renderer component for displaying the given object.
prepareShow(Component, int, int) - Method in class de.javagl.common.ui.LocationBasedAction
Will be called by the LocationBasedPopupHandler before the popup menu is shown at the specified position on the given component.
PropertiesDialog - Class in de.javagl.common.ui.properties
A generic dialog that allows entering several property values as strings
PropertiesDialog.PropertiesDialogBuilder - Class in de.javagl.common.ui.properties
A class for building a PropertiesDialog
PropertiesHandle - Interface in de.javagl.common.ui.properties
Interface with convenience functions for handling properties.
PropertiesHandles - Class in de.javagl.common.ui.properties
Class to handle PropertiesHandle instances
PropertiesManager - Class in de.javagl.common.ui.properties
A class for managing properties of an application that should be maintained in a properties file.
PropertiesManager(PropertiesHandle) - Constructor for class de.javagl.common.ui.properties.PropertiesManager
Creates a new instance that uses the given PropertiesHandle

R

readColor(String) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Read the specified value
readDouble(String) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Read the specified value
readInteger(String) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Read the specified value
readPath(String) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Read the specified value
readPoint(String) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Read the specified value
readRectangle(String) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Read the specified value
readString(String) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Read the specified value
registerColor(String, Supplier<? extends Color>, Consumer<? super Color>) - Method in class de.javagl.common.ui.properties.PropertiesManager
Register the given supplier and consumer under the given name
registerDouble(String, DoubleSupplier, DoubleConsumer) - Method in class de.javagl.common.ui.properties.PropertiesManager
Register the given supplier and consumer under the given name
registerInteger(String, IntSupplier, IntConsumer) - Method in class de.javagl.common.ui.properties.PropertiesManager
Register the given supplier and consumer under the given name
registerPath(String, Supplier<? extends Path>, Consumer<? super Path>) - Method in class de.javagl.common.ui.properties.PropertiesManager
Register the given supplier and consumer under the given name
registerPoint(String, Supplier<? extends Point>, Consumer<? super Point>) - Method in class de.javagl.common.ui.properties.PropertiesManager
Register the given supplier and consumer under the given name
registerRectangle(String, Supplier<? extends Rectangle>, Consumer<? super Rectangle>) - Method in class de.javagl.common.ui.properties.PropertiesManager
Register the given supplier and consumer under the given name
registerString(String, Supplier<? extends String>, Consumer<? super String>) - Method in class de.javagl.common.ui.properties.PropertiesManager
Register the given supplier and consumer under the given name
remove(JDesktopPaneLayout) - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Remove the given child layout
removeColumn(int) - Method in class de.javagl.common.ui.table.GenericTableModel
Remove the column at the given index
removeFilterTextField(int) - Method in class de.javagl.common.ui.table.MultiColumnRegexFilter
Remove the text field for the specified column
removeFromAccordion(JComponent) - Method in class de.javagl.common.ui.panel.collapsible.AccordionPanel
Remove the given component from this accordion
removeFromSelection(ListSelectionModel, Collection<? extends Integer>) - Static method in class de.javagl.common.ui.list.ListSelectionModels
Remove the given indices from the selection in the given list selection model
removeLayoutComponent(Component) - Method in class de.javagl.common.ui.layout.AspectLayout
 
removeRow(int) - Method in class de.javagl.common.ui.table.GenericTableModel
Remove the specified row from this model
removeStateListener(CheckBoxTree.StateListener) - Method in class de.javagl.common.ui.tree.checkbox.CheckBoxTree
removeTreeModelListener(TreeModelListener) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
 
restore() - Method in class de.javagl.common.ui.properties.PropertiesManager
Restore the state, by passing all values from the properties file to the registered consumers.
restoreColor(String, Consumer<? super Color>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Restore the specified value
restoreDouble(String, DoubleConsumer) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Restore the specified value
restoreInteger(String, IntConsumer) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Restore the specified value
restorePath(String, Consumer<? super Path>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Restore the specified value
restorePoint(String, Consumer<? super Point>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Restore the specified value
restoreRectangle(String, Consumer<? super Rectangle>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Restore the specified value
restoreString(String, Consumer<? super String>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Restore the specified value
RowFilters - Class in de.javagl.common.ui.table
Methods related to row filters

S

save() - Method in class de.javagl.common.ui.properties.PropertiesManager
Save the current state, by obtaining all values from the registered suppliers, and writing them into the properties file
saveColor(String, Supplier<? extends Color>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Save the value from the given supplier
saveDouble(String, DoubleSupplier) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Save the value from the given supplier
saveInteger(String, IntSupplier) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Save the value from the given supplier
saveOnClose(Window) - Method in class de.javagl.common.ui.properties.PropertiesManager
Attach a listener to the given window that will save the properties when the window is closed
savePath(String, Supplier<? extends Path>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Save the value from the given supplier
savePoint(String, Supplier<? extends Point>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Save the value from the given supplier
saveRectangle(String, Supplier<? extends Rectangle>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Save the value from the given supplier
saveString(String, Supplier<? extends String>) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Save the value from the given supplier
scrollToRow(JTable, int) - Static method in class de.javagl.common.ui.JTables
Scroll the given table so that the specified row is visible.
SearchableTextComponent - Class in de.javagl.common.ui.text
A class that is wrapped around a text component, and adds search functionality
SearchableTextComponent(JTextComponent) - Constructor for class de.javagl.common.ui.text.SearchableTextComponent
Creates a new instance
selectAll() - Method in class de.javagl.common.ui.tree.checkbox.CheckBoxTree
Select all nodes
setActionCall(Runnable) - Method in class de.javagl.common.ui.Actions.ActionBuilder
Set the method that should serve as the implementation of the actionPerformed method of the action
setActionMethod(Consumer<? super ActionEvent>) - Method in class de.javagl.common.ui.Actions.ActionBuilder
Set the method that should serve as the implementation of the actionPerformed method of the action
setAsSelection(ListSelectionModel, Collection<? extends Integer>) - Static method in class de.javagl.common.ui.list.ListSelectionModels
Set the given indices as the selection in the given list selection model
setColumnModel(TableColumnModel) - Method in class de.javagl.common.ui.table.CustomizedTableHeader
 
setDeepEnabled(Component, boolean) - Static method in class de.javagl.common.ui.GuiUtils
Enables or disables the given component and all its children recursively
setDefaultRenderer(TableCellRenderer) - Method in class de.javagl.common.ui.table.CustomizedTableHeader


Note: This method is overridden in the CustomizedTableHeader.
setDividerLocation(JSplitPane, double) - Static method in class de.javagl.common.ui.JSplitPanes
Set the location of the the given split pane to the given value later on the EDT, and validate the split pane
setFilter(TreeModelFilter) - Method in class de.javagl.common.ui.tree.filtered.FilteredTree
Set the filter of the model for the tree.
setFilter(TreeModelFilter) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
Set the TreeModelFilter for this model.
setFont(JTable, double) - Static method in class de.javagl.common.ui.JTables
Set a font for the given table and its header that is derived from its current font, but has the given size
setIgnoringCase(boolean) - Method in class de.javagl.common.ui.table.MultiColumnRegexFilter
Set whether the regular expressions in the text fields should be matched case-insensitively
setInputModel(TreeModel) - Method in class de.javagl.common.ui.tree.filtered.FilteredTree
Set the (unfiltered) model for the tree
setLayout(LayoutManager) - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Set the delegate layout manager for this layout
setMinimized(boolean) - Method in class de.javagl.common.ui.panel.collapsible.CollapsiblePanel
Set the new state of this panel
setMnemonicKey(int) - Method in class de.javagl.common.ui.Actions.ActionBuilder
Set the mnemonic key of the action
setName(String) - Method in class de.javagl.common.ui.Actions.ActionBuilder
Set the name of the action
setSelectionInterval(int, int) - Method in class de.javagl.common.ui.list.ToggleListSelectionModel
 
setSelectionState(Object, CheckBoxTree.State) - Method in class de.javagl.common.ui.tree.checkbox.CheckBoxTree
Set the selection state of the given node
setShortDescription(String) - Method in class de.javagl.common.ui.Actions.ActionBuilder
Set the short description (tooltip) of the action
setSmallFont(JTable) - Static method in class de.javagl.common.ui.JTables
Set a "small" font for the given table and its header
setSpinnerDraggingEnabled(JSpinner, boolean) - Static method in class de.javagl.common.ui.JSpinners
Set whether the value of the given spinner may be changed with mouse drags
setValueAt(Object, int, int) - Method in class de.javagl.common.ui.table.GenericTableModel
 
setValueIsAdjusting(boolean) - Method in class de.javagl.common.ui.list.ToggleListSelectionModel
 
showDialog() - Method in class de.javagl.common.ui.properties.PropertiesDialog
Show this dialog and return the entered values.
showValidatedTextInputDialog(Window, String, JComponent, JTextComponent, Predicate<String>) - Static method in class de.javagl.common.ui.JOptionPanes
Create a new input dialog that performs validation.
SortOrderTableHeaderCellRenderer - Class in de.javagl.common.ui.table.renderer
A TableCellRenderer that shows indicators of the sort order of a table for multiple sorting columns
SortOrderTableHeaderCellRenderer(TableCellRenderer) - Constructor for class de.javagl.common.ui.table.renderer.SortOrderTableHeaderCellRenderer
Creates a new renderer with the given delegate.
stateChanged(Object, CheckBoxTree.State, CheckBoxTree.State) - Method in interface de.javagl.common.ui.tree.checkbox.CheckBoxTree.StateListener
Will be called when the CheckBoxTree.State of the given node changed

T

TableActions - Class in de.javagl.common.ui.table
Methods for creating actions that operate on a table, for example, to change the selection state.
ToggleListSelectionModel - Class in de.javagl.common.ui.list
A list selection model that allows toggling the selection state with clicks.
ToggleListSelectionModel() - Constructor for class de.javagl.common.ui.list.ToggleListSelectionModel
Default constructor
toggleSortOrder(int) - Method in class de.javagl.common.ui.table.TristateTableRowSorter
 
TooltipCellRenderer - Class in de.javagl.common.ui.table.renderer
A table cell renderer that sets a tooltip
TooltipCellRenderer() - Constructor for class de.javagl.common.ui.table.renderer.TooltipCellRenderer
Creates a new instance that uses the string representation of the objects as the tooltip, if they are not null
TooltipCellRenderer(Function<Object, String>) - Constructor for class de.javagl.common.ui.table.renderer.TooltipCellRenderer
Creates a new instance
ToolTipTableHeader - Class in de.javagl.common.ui.table
A JTable header that shows a tooltip with the column name
ToolTipTableHeader(TableColumnModel) - Constructor for class de.javagl.common.ui.table.ToolTipTableHeader
Default constructor
toString() - Method in class de.javagl.common.ui.layout.AspectLayout
 
translatePath(TreeModel, TreePath) - Static method in class de.javagl.common.ui.JTrees
Translates one TreePath to a new TreeModel.
translatePath(TreeModel, TreePath, BiPredicate<Object, Object>) - Static method in class de.javagl.common.ui.JTrees
Translates one TreePath to a new TreeModel.
TreeModelFilter - Interface in de.javagl.common.ui.tree.filtered
Interface for a filter of a tree model.
TreeModelFilters - Class in de.javagl.common.ui.tree.filtered
Utility methods for creating TreeModelFilter instances
TristateTableRowSorter<M extends TableModel> - Class in de.javagl.common.ui.table
Implementation of a TableRowSorter that does not only toggle between ASCENDING and DESCENDING, but between ASCENDING, DESCENDING and "unsorted"
TristateTableRowSorter(M) - Constructor for class de.javagl.common.ui.table.TristateTableRowSorter
Create a new sorter for the given model

U

UndoRedoHandler - Class in de.javagl.common.ui.text
Utility class to attach an undo/redo functionality to a text component.
unselectAll() - Method in class de.javagl.common.ui.tree.checkbox.CheckBoxTree
Unselect all nodes

V

validate() - Method in class de.javagl.common.ui.utils.desktop.JDesktopPaneLayout
Validate the layout after internal frames have been added or removed
valueForPathChanged(TreePath, Object) - Method in class de.javagl.common.ui.tree.filtered.FilteredTreeModel
 
valueOf(String) - Static method in enum de.javagl.common.ui.tree.checkbox.CheckBoxTree.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum de.javagl.common.ui.tree.checkbox.CheckBoxTree.State
Returns an array containing the constants of this enum type, in the order they are declared.

W

wrapCollapsible(String, JComponent) - Static method in class de.javagl.common.ui.GuiUtils
Wrap the given component into a CollapsiblePanel with the given title
wrapFlow(JComponent) - Static method in class de.javagl.common.ui.GuiUtils
Wrap the given component into a panel with flow layout
wrapTitled(String, JComponent) - Static method in class de.javagl.common.ui.GuiUtils
Wrap the given component into a panel with a titled border with the given title
writeColor(String, Color) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Write the given value
writeDouble(String, Double) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Write the given value
writeInteger(String, Integer) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Write the given value
writePath(String, Path) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Write the given value
writePoint(String, Point) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Write the given value
writeRectangle(String, Rectangle) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Write the given value
writeString(String, String) - Method in interface de.javagl.common.ui.properties.PropertiesHandle
Write the given value
A B C D E F G I J L M N O P R S T U V W 
Skip navigation links

Copyright © 2022. All rights reserved.