public interface MindMapNode
extends javax.swing.tree.MutableTreeNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
NODE_STYLES |
static java.lang.String |
STYLE_AS_PARENT |
static java.lang.String |
STYLE_BUBBLE |
static java.lang.String |
STYLE_COMBINED |
static java.lang.String |
STYLE_FORK |
Modifier and Type | Method and Description |
---|---|
void |
acceptViewVisitor(NodeViewVisitor visitor) |
PermanentNodeHook |
addHook(PermanentNodeHook hook)
Adds the hook to the list of hooks to my node.
|
void |
addIcon(MindIcon icon,
int position) |
void |
addTreeModelListener(javax.swing.event.TreeModelListener l) |
void |
addViewer(NodeView viewer) |
int |
calcShiftY() |
java.util.ListIterator |
childrenFolded() |
java.util.ListIterator |
childrenUnfolded() |
void |
createAttributeTableModel() |
java.util.Collection |
getActivatedHooks() |
java.lang.String |
getAdditionalInfo()
Is only used to store encrypted content of an encrypted mind map node.
|
Attribute |
getAttribute(int pPosition) |
java.lang.String |
getAttribute(java.lang.String pKey)
Searches for the first attribute with the given key.
|
java.util.List |
getAttributeKeyList() |
int |
getAttributePosition(java.lang.String key) |
NodeAttributeTableModel |
getAttributes()
use getAttributeKeyList, getAttribute, isAttributeExisting
and setAttribute instead, if you want to access the attributes
like a dictionary.
|
int |
getAttributeTableLength() |
java.awt.Color |
getBackgroundColor() |
int |
getChildPosition(MindMapNode childNode) |
java.util.List |
getChildren() |
MindMapCloud |
getCloud() |
java.awt.Color |
getColor() |
MindMapEdge |
getEdge() |
FilterInfo |
getFilterInfo() |
java.awt.Font |
getFont() |
java.lang.String |
getFontFamilyName() |
java.lang.String |
getFontSize() |
int |
getHGap() |
HistoryInformation |
getHistoryInformation() |
java.util.List |
getHooks() |
java.util.List |
getIcons()
Is a vector of MindIcon s
|
java.lang.String |
getLink() |
javax.swing.event.EventListenerList |
getListeners() |
MindMap |
getMap() |
int |
getNodeLevel() |
java.lang.String |
getNoteText() |
java.lang.String |
getObjectId(ModeController controller) |
MindMapNode |
getParentNode() |
javax.swing.tree.TreePath |
getPath() |
java.lang.String |
getPlainTextContent() |
int |
getShiftY() |
java.lang.String |
getShortText(ModeController controller)
returns a short textual description of the text contained in the node.
|
java.util.Map |
getStateIcons()
State icons are icons that are not saved.
|
java.lang.String |
getStyle() |
java.lang.String |
getText() |
java.util.SortedMap |
getToolTip() |
int |
getVGap() |
java.util.Collection |
getViewers() |
java.lang.String |
getXmlNoteText() |
java.lang.String |
getXmlText() |
boolean |
hasChildren() |
boolean |
hasOneVisibleChild() |
boolean |
hasStyle() |
void |
invokeHook(NodeHook hook) |
boolean |
isBold() |
boolean |
isDescendantOf(MindMapNode node) |
boolean |
isFolded() |
boolean |
isItalic() |
boolean |
isLeft() |
boolean |
isNewChildLeft() |
boolean |
isRoot() |
boolean |
isUnderlined() |
boolean |
isVisible() |
boolean |
isWriteable()
Some nodes can't get new children or have other changes (encrypted nodes for example).
|
void |
removeHook(PermanentNodeHook hook)
Removes the hook from the activated hooks, calls shutdown method of the hook and removes the
hook from allHook belonging to the node afterwards.
|
int |
removeIcon(int position) |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l) |
void |
removeViewer(NodeView viewer) |
XMLElement |
save(java.io.Writer writer,
MindMapLinkRegistry registry,
boolean saveHidden,
boolean saveChildren) |
void |
setAdditionalInfo(java.lang.String info)
This method can be used to store non-visual additions to a node.
|
void |
setAttribute(int pPosition,
Attribute pAttribute)
Sets the attribute to the given value.
|
void |
setBackgroundColor(java.awt.Color color) |
void |
setCloud(MindMapCloud cloud) |
void |
setColor(java.awt.Color color) |
void |
setFolded(boolean folded) |
void |
setFont(java.awt.Font font) |
void |
setFontSize(int fontSize) |
void |
setHGap(int i) |
void |
setHistoryInformation(HistoryInformation historyInformation) |
void |
setLeft(boolean isLeft) |
void |
setLink(java.lang.String link) |
void |
setNoteText(java.lang.String noteText)
Sets both noteText and xmlNoteText.
|
void |
setShiftY(int y) |
void |
setStateIcon(java.lang.String key,
javax.swing.ImageIcon icon) |
void |
setStyle(java.lang.String style)
currently the style may be one of MindMapNode.STYLE_BUBBLE or MindMapNode.STYLE_FORK.
|
void |
setText(java.lang.String text)
Sets both text and xmlText.
|
void |
setToolTip(java.lang.String key,
java.lang.String tip) |
void |
setVGap(int i) |
void |
setXmlNoteText(java.lang.String structuredNoteText)
Sets both noteText and xmlNoteText.
|
void |
setXmlText(java.lang.String structuredText)
Sets both text and xmlText.
|
MindMapNode |
shallowCopy() |
java.lang.String |
toString() |
static final java.lang.String STYLE_BUBBLE
static final java.lang.String STYLE_FORK
static final java.lang.String STYLE_COMBINED
static final java.lang.String STYLE_AS_PARENT
static final java.lang.String[] NODE_STYLES
java.lang.String getText()
void setText(java.lang.String text)
java.lang.String getXmlText()
void setXmlText(java.lang.String structuredText)
java.lang.String getXmlNoteText()
void setXmlNoteText(java.lang.String structuredNoteText)
java.lang.String getNoteText()
void setNoteText(java.lang.String noteText)
java.lang.String getObjectId(ModeController controller)
java.util.ListIterator childrenFolded()
java.util.ListIterator childrenUnfolded()
java.util.List getChildren()
boolean hasChildren()
FilterInfo getFilterInfo()
int getChildPosition(MindMapNode childNode)
int getNodeLevel()
java.lang.String getLink()
java.lang.String getShortText(ModeController controller)
MindMapEdge getEdge()
java.awt.Color getColor()
java.lang.String getStyle()
void setStyle(java.lang.String style)
boolean hasStyle()
MindMapNode getParentNode()
boolean isBold()
boolean isItalic()
boolean isUnderlined()
java.awt.Font getFont()
java.lang.String getFontSize()
java.lang.String getFontFamilyName()
java.util.Collection getViewers()
void addViewer(NodeView viewer)
void removeViewer(NodeView viewer)
java.lang.String toString()
toString
in class java.lang.Object
java.lang.String getPlainTextContent()
javax.swing.tree.TreePath getPath()
boolean isDescendantOf(MindMapNode node)
boolean isRoot()
boolean isFolded()
boolean isLeft()
void setLeft(boolean isLeft)
void setFolded(boolean folded)
void setFont(java.awt.Font font)
void setShiftY(int y)
int getShiftY()
int calcShiftY()
void setVGap(int i)
int getVGap()
void setHGap(int i)
int getHGap()
void setLink(java.lang.String link)
void setFontSize(int fontSize)
void setColor(java.awt.Color color)
java.util.List getIcons()
void addIcon(MindIcon icon, int position)
int removeIcon(int position)
MindMapCloud getCloud()
void setCloud(MindMapCloud cloud)
java.awt.Color getBackgroundColor()
void setBackgroundColor(java.awt.Color color)
java.util.List getHooks()
java.util.Collection getActivatedHooks()
PermanentNodeHook addHook(PermanentNodeHook hook)
void invokeHook(NodeHook hook)
void removeHook(PermanentNodeHook hook)
void setToolTip(java.lang.String key, java.lang.String tip)
java.util.SortedMap getToolTip()
void setAdditionalInfo(java.lang.String info)
java.lang.String getAdditionalInfo()
MindMapNode.setAdditionalInfo(String)
MindMapNode shallowCopy()
XMLElement save(java.io.Writer writer, MindMapLinkRegistry registry, boolean saveHidden, boolean saveChildren) throws java.io.IOException
saveHidden
- TODO: Seems not to be used. Remove or fill with live.saveChildren
- if true, the save recurses to all of the nodes children.java.io.IOException
java.util.Map getStateIcons()
void setStateIcon(java.lang.String key, javax.swing.ImageIcon icon)
icon
- use null to remove the state icon. Then it is not
required, that the key already exists.HistoryInformation getHistoryInformation()
void setHistoryInformation(HistoryInformation historyInformation)
boolean isVisible()
boolean hasOneVisibleChild()
MindMap getMap()
NodeAttributeTableModel getAttributes()
void createAttributeTableModel()
java.util.List getAttributeKeyList()
int getAttributeTableLength()
Attribute getAttribute(int pPosition)
pPosition
- the null based position.java.lang.String getAttribute(java.lang.String pKey)
pKey
- is the name of the attributeint getAttributePosition(java.lang.String key)
key
- the name of the attributevoid setAttribute(int pPosition, Attribute pAttribute)
void addTreeModelListener(javax.swing.event.TreeModelListener l)
void removeTreeModelListener(javax.swing.event.TreeModelListener l)
void acceptViewVisitor(NodeViewVisitor visitor)
javax.swing.event.EventListenerList getListeners()
boolean isNewChildLeft()
boolean isWriteable()