public final class VersionTreeRootNode extends AbstractVersionTreeNode implements VersionNodeInterface
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
VersionTreeRootNode(VersionTree tree,
Vector<csbase.logic.algorithms.AlgorithmVersionInfo> versions)
Constrói a árvore de versões do algoritmo a partir do nó raiz.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(csbase.logic.algorithms.AlgorithmVersionInfo node)
Compara um nó com outro nó especificado, segundo algum critério definido
pelo nó.
|
csbase.logic.algorithms.AlgorithmVersionId |
getId()
Obtém o identificador da versão do algoritmo.
|
ImageIcon |
getImageIcon()
Obtém a imagem a ser utilizada para representar este nó.
|
csbase.logic.algorithms.AlgorithmVersionInfo |
getNode()
Obtém o nó representado por uma versão.
|
int |
getNodeIndex(Object algoId)
Obtém o índice do nó representando o algoritmo especificado.
|
boolean |
isRootNode()
Verifica se é o nó raiz da árvore de versões do algoritmo.
|
add, allowMultipleSelection, compareTo, createPopupMenu, getHistory, getName, getTree, getWindowbreadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic VersionTreeRootNode(VersionTree tree, Vector<csbase.logic.algorithms.AlgorithmVersionInfo> versions)
tree - árvore que contém esse nóversions - versões do algoritmopublic int compare(csbase.logic.algorithms.AlgorithmVersionInfo node)
VersionNodeInterfacecompare in interface VersionNodeInterfacenode - nó a ser comparadopublic csbase.logic.algorithms.AlgorithmVersionInfo getNode()
VersionNodeInterfacegetNode in interface VersionNodeInterfacepublic csbase.logic.algorithms.AlgorithmVersionId getId()
VersionNodeInterfacegetId in interface VersionNodeInterfacepublic boolean isRootNode()
VersionNodeInterfaceisRootNode in interface VersionNodeInterfacepublic ImageIcon getImageIcon()
AbstractVersionTreeNodeObtém a imagem a ser utilizada para representar este nó.
Caso este método retorne null, o renderizador irá desenhar o nó da
forma padrão de acordo com o Toolkit
getImageIcon in interface VersionNodeInterfacegetImageIcon in class AbstractVersionTreeNodepublic int getNodeIndex(Object algoId)
algoId - identificador do algoritmo sendo buscado.Copyright © 2017. All rights reserved.