java.lang.Object
de.grogra.pf.ui.awt.ComponentModel
de.grogra.pf.ui.awt.MappedComponentModel
de.grogra.pf.ui.awt.AWTTree
- All Implemented Interfaces:
ComponentWrapper
,Synchronizer.Callback
,Disposable
,MappedTreeModel
,MutableTreeModel
,LayoutManager
,LayoutManager2
,Comparator
,TreeModel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Color
static final Color
protected static final Icon
protected static final Icon
protected static final Icon
protected static final Icon
protected final Insets
Fields inherited from class de.grogra.pf.ui.awt.MappedComponentModel
mapper, sourceRoot, sourceTree
Fields inherited from class de.grogra.pf.ui.awt.ComponentModel
ACTION_COUNT, INSERT, REMOVE, root, SET_ENABLED, sync, TREE_CHANGED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(Component comp, Object constraints) void
addLayoutComponent
(String name, Component comp) createNode
(Object sourceNode, Object targetParent) protected void
void
disposeNode
(Object targetNode) protected Icon
getButtonIcon
(int depth, boolean expanded, boolean pressed) protected Icon
protected int
protected int
float
getLayoutAlignmentX
(Container target) float
getLayoutAlignmentY
(Container target) protected int
protected String
void
invalidateLayout
(Container parent) boolean
boolean
void
layoutContainer
(Container parent) maximumLayoutSize
(Container parent) minimumLayoutSize
(Container parent) void
protected void
paintNode
(de.grogra.pf.ui.awt.AWTTree.Node n, int depth, boolean expanded, boolean pressed, Graphics g) protected void
preferredLayoutSize
(Container parent) void
void
valueForPathChanged
(TreePath path, Object newValue) Methods inherited from class de.grogra.pf.ui.awt.MappedComponentModel
compare, dispose, getSourceTree, getToolkit, isSourceRoot, map, revalidate, treeChangedSync
Methods inherited from class de.grogra.pf.ui.awt.ComponentModel
addTreeModelListener, getChild, getChildCount, getComponent, getContentPane, getIndexOfChild, getRoot, insert, remove, removeTreeModelListener, run, setEnabled, setRoot, treeChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface de.grogra.util.MappedTreeModel
treeChanged
Methods inherited from interface de.grogra.util.MutableTreeModel
insert, remove, setRoot
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, removeTreeModelListener
-
Field Details
-
color1
-
color2
-
ICON_COLLAPSED_NORMAL
-
ICON_EXPANDED_NORMAL
-
ICON_COLLAPSED_PRESSED
-
ICON_EXPANDED_PRESSED
-
rootInsets
-
-
Constructor Details
-
AWTTree
-
-
Method Details
-
disposeImpl
protected void disposeImpl()- Overrides:
disposeImpl
in classMappedComponentModel
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponent
in interfaceLayoutManager2
-
removeLayoutComponent
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
-
invalidateLayout
- Specified by:
invalidateLayout
in interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentX
in interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentY
in interfaceLayoutManager2
-
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
-
maximumLayoutSize
- Specified by:
maximumLayoutSize
in interfaceLayoutManager2
-
paint
-
paintRoot
-
paintNode
protected void paintNode(de.grogra.pf.ui.awt.AWTTree.Node n, int depth, boolean expanded, boolean pressed, Graphics g) -
createNode
- Specified by:
createNode
in interfaceMappedTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
disposeNode
- Specified by:
disposeNode
in interfaceMappedTreeModel
-
isLeaf
- Specified by:
isLeaf
in interfaceTreeModel
- Overrides:
isLeaf
in classComponentModel
-
isImage
- Specified by:
isImage
in interfaceMappedTreeModel
-
getButtonIcon
-
getIcon
-
getText
-
getIconGap
protected int getIconGap() -
getLabelGap
protected int getLabelGap() -
getPrefixComponentCount
- Overrides:
getPrefixComponentCount
in classComponentModel
-