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
FieldsModifier and TypeFieldDescriptionstatic Colorstatic Colorprotected static final Iconprotected static final Iconprotected static final Iconprotected static final Iconprotected final InsetsFields inherited from class de.grogra.pf.ui.awt.MappedComponentModel
mapper, sourceRoot, sourceTreeFields inherited from class de.grogra.pf.ui.awt.ComponentModel
ACTION_COUNT, INSERT, REMOVE, root, SET_ENABLED, sync, TREE_CHANGED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component comp, Object constraints) voidaddLayoutComponent(String name, Component comp) createNode(Object sourceNode, Object targetParent) protected voidvoiddisposeNode(Object targetNode) protected IcongetButtonIcon(int depth, boolean expanded, boolean pressed) protected Iconprotected intprotected intfloatgetLayoutAlignmentX(Container target) floatgetLayoutAlignmentY(Container target) protected intprotected StringvoidinvalidateLayout(Container parent) booleanbooleanvoidlayoutContainer(Container parent) maximumLayoutSize(Container parent) minimumLayoutSize(Container parent) voidprotected voidpaintNode(de.grogra.pf.ui.awt.AWTTree.Node n, int depth, boolean expanded, boolean pressed, Graphics g) protected voidpreferredLayoutSize(Container parent) voidvoidvalueForPathChanged(TreePath path, Object newValue) Methods inherited from class de.grogra.pf.ui.awt.MappedComponentModel
compare, dispose, getSourceTree, getToolkit, isSourceRoot, map, revalidate, treeChangedSyncMethods inherited from class de.grogra.pf.ui.awt.ComponentModel
addTreeModelListener, getChild, getChildCount, getComponent, getContentPane, getIndexOfChild, getRoot, insert, remove, removeTreeModelListener, run, setEnabled, setRoot, treeChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface de.grogra.util.MappedTreeModel
treeChangedMethods inherited from interface de.grogra.util.MutableTreeModel
insert, remove, setRootMethods 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:
disposeImplin classMappedComponentModel
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager2
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager
-
invalidateLayout
- Specified by:
invalidateLayoutin interfaceLayoutManager2
-
getLayoutAlignmentX
- Specified by:
getLayoutAlignmentXin interfaceLayoutManager2
-
getLayoutAlignmentY
- Specified by:
getLayoutAlignmentYin interfaceLayoutManager2
-
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager
-
maximumLayoutSize
- Specified by:
maximumLayoutSizein 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:
createNodein interfaceMappedTreeModel
-
valueForPathChanged
- Specified by:
valueForPathChangedin interfaceTreeModel
-
disposeNode
- Specified by:
disposeNodein interfaceMappedTreeModel
-
isLeaf
- Specified by:
isLeafin interfaceTreeModel- Overrides:
isLeafin classComponentModel
-
isImage
- Specified by:
isImagein interfaceMappedTreeModel
-
getButtonIcon
-
getIcon
-
getText
-
getIconGap
protected int getIconGap() -
getLabelGap
protected int getLabelGap() -
getPrefixComponentCount
- Overrides:
getPrefixComponentCountin classComponentModel
-