java.lang.Object
org.jhotdraw8.fxbase.tree.SimpleTreeModel<N>
- Type Parameters:
N- the node type
- All Implemented Interfaces:
javafx.beans.Observable,ObservableMixin,TreeModel<N>
SimpleTreeModel.
- Author:
- Werner Randelshofer
-
Property Summary
Properties -
Field Summary
Fields inherited from interface org.jhotdraw8.fxbase.tree.TreeModel
ROOT_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the child at the given index from the parent.intgetChildCount(N node) Gets the child count of the specified figure.getChildren(N node) Gets the children of the specified node.CopyOnWriteArrayList<javafx.beans.InvalidationListener> List of invalidation listeners.List of drawing model listeners.voidinsertChildAt(N child, N parent, int index) Adds the specified child to a parent and fires appropriateTreeModelEvent<E>s.voidremoveFromParent(N child) Removes the specified child from its parent and fires appropriateTreeModelEvent<E>s.javafx.beans.property.ObjectProperty<N> The root of the drawing model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javafx.beans.Observable
subscribeMethods inherited from interface org.jhotdraw8.fxbase.beans.ObservableMixin
addListener, fireInvalidated, fireInvalidated, invalidated, removeListenerMethods inherited from interface org.jhotdraw8.fxbase.tree.TreeModel
addChildTo, addTreeModelListener, fireNodeInvalidated, fireTreeModelEvent, getRoot, removeTreeModelListener, setRoot
-
Property Details
-
root
- Specified by:
rootPropertyin interfaceTreeModel<N>- Returns:
- the root
- See Also:
-
-
Constructor Details
-
SimpleTreeModel
public SimpleTreeModel()
-
-
Method Details
-
getChild
Description copied from interface:TreeModelGets the child at the given index from the parent. -
getChildCount
Description copied from interface:TreeModelGets the child count of the specified figure.- Specified by:
getChildCountin interfaceTreeModel<N>- Parameters:
node- the parent.- Returns:
- the number of getChildren
-
getChildren
Description copied from interface:TreeModelGets the children of the specified node.- Specified by:
getChildrenin interfaceTreeModel<N>- Parameters:
node- the node.- Returns:
- the getChildren.
-
getInvalidationListeners
Description copied from interface:TreeModelList of invalidation listeners.- Specified by:
getInvalidationListenersin interfaceObservableMixin- Specified by:
getInvalidationListenersin interfaceTreeModel<N>- Returns:
- a list of drawing model listeners
-
getTreeModelListeners
Description copied from interface:TreeModelList of drawing model listeners.- Specified by:
getTreeModelListenersin interfaceTreeModel<N>- Returns:
- a list of drawing model listeners
-
insertChildAt
Description copied from interface:TreeModelAdds the specified child to a parent and fires appropriateTreeModelEvent<E>s.- Specified by:
insertChildAtin interfaceTreeModel<N>- Parameters:
child- the new childparent- the parent.index- the index
-
removeFromParent
Description copied from interface:TreeModelRemoves the specified child from its parent and fires appropriateTreeModelEvent<E>s.- Specified by:
removeFromParentin interfaceTreeModel<N>- Parameters:
child- the child
-
rootProperty
Description copied from interface:TreeModelThe root of the drawing model.- Specified by:
rootPropertyin interfaceTreeModel<N>- Returns:
- the
rootproperty
-