public class NodeView
extends javax.swing.JComponent
implements javax.swing.event.TreeModelListener
javax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected static java.awt.Color |
dragColor |
static int |
DRAGGED_OVER_NO |
static int |
DRAGGED_OVER_SIBLING |
static int |
DRAGGED_OVER_SON |
static int |
DRAGGED_OVER_SON_LEFT
For RootNodeView.
|
protected MapView |
map |
protected MindMapNode |
model |
protected NodeMotionListenerView |
motionListenerView |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Modifier | Constructor and Description |
|---|---|
protected |
NodeView(MindMapNode model,
int position,
MapView map,
java.awt.Container parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int x,
int y) |
protected void |
convertPointToMap(java.awt.Point p) |
void |
createAttributeView() |
boolean |
focused() |
int |
getAdditionalCloudHeigth()
Calculates the tree height increment because of the clouds.
|
protected static java.awt.Color |
getAntiColor1(java.awt.Color c)
Determines to a given color a color, that is the best contrary color.
|
protected static java.awt.Color |
getAntiColor2(java.awt.Color c)
Determines to a given color a color, that is the best contrary color.
|
AttributeView |
getAttributeView() |
java.util.LinkedList |
getChildrenViews()
This method returns the NodeViews that are children of this node.
|
javax.swing.JComponent |
getContent() |
java.awt.Container |
getContentPane() |
void |
getCoordinates(java.util.LinkedList inList)
Returns the coordinates occupied by the node and its children as a vector
of four point per node.
|
int |
getDeltaX()
get x coordinate including folding symbol
|
int |
getDeltaY()
get y coordinate including folding symbol
|
int |
getHGap() |
boolean |
getIsLong() |
java.awt.Point |
getLinkPoint(java.awt.Point declination)
Returns the Point where the Links should arrive the Node.
|
MainView |
getMainView() |
protected int |
getMainViewHeightWithFoldingMark()
get height including folding symbol
|
protected int |
getMainViewWidthWithFoldingMark() |
MapView |
getMap() |
int |
getMaxToolTipWidth() |
MindMapNode |
getModel() |
NodeMotionListenerView |
getMotionListenerView() |
protected NodeView |
getNextPage() |
protected NodeView |
getNextSiblingSingle() |
protected NodeView |
getNextVisibleSibling() |
NodeView |
getParentView() |
NodeView |
getPreferredVisibleChild(boolean left) |
protected NodeView |
getPreviousPage() |
protected NodeView |
getPreviousSiblingSingle() |
protected NodeView |
getPreviousVisibleSibling() |
protected java.awt.Color |
getSelectedColor() |
int |
getShift() |
protected java.util.LinkedList |
getSiblingViews() |
java.lang.String |
getText() |
java.awt.Color |
getTextBackground() |
java.awt.Color |
getTextColor() |
java.awt.Font |
getTextFont() |
int |
getVGap() |
NodeView |
getVisibleParentView() |
int |
getZoomedFoldingSymbolHalfWidth() |
boolean |
isChildOf(NodeView myNodeView) |
boolean |
isContentVisible() |
boolean |
isLeft()
Is the node left of root?
|
boolean |
isParentOf(NodeView myNodeView) |
boolean |
isRoot() |
boolean |
isSelected() |
boolean |
isSiblingOf(NodeView myNodeView) |
void |
paint(java.awt.Graphics g) |
void |
paintFoldingMark(java.awt.Graphics2D g) |
protected void |
removeFromMap() |
void |
requestFocus() |
void |
setBounds(int x,
int y,
int width,
int height) |
void |
setFocusCycleRoot(boolean pFocusCycleRoot) |
void |
setIcon(MultipleImage image) |
protected void |
setModel(MindMapNode model) |
void |
setPreferredChild(NodeView view) |
void |
setText(java.lang.String string) |
void |
setVisible(boolean isVisible) |
java.lang.String |
toString() |
void |
treeNodesChanged(javax.swing.event.TreeModelEvent e) |
void |
treeNodesInserted(javax.swing.event.TreeModelEvent e) |
void |
treeNodesRemoved(javax.swing.event.TreeModelEvent e) |
void |
treeStructureChanged(javax.swing.event.TreeModelEvent e) |
void |
updateToolTip()
Updates the tool tip of the node.
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycleprotected MindMapNode model
protected MapView map
protected static final java.awt.Color dragColor
public static final int DRAGGED_OVER_NO
public static final int DRAGGED_OVER_SON
public static final int DRAGGED_OVER_SIBLING
public static final int DRAGGED_OVER_SON_LEFT
protected NodeMotionListenerView motionListenerView
protected NodeView(MindMapNode model, int position, MapView map, java.awt.Container parent)
public void setFocusCycleRoot(boolean pFocusCycleRoot)
setFocusCycleRoot in class java.awt.Containerprotected void removeFromMap()
public boolean isRoot()
public boolean getIsLong()
public boolean isSiblingOf(NodeView myNodeView)
public boolean isChildOf(NodeView myNodeView)
public boolean isParentOf(NodeView myNodeView)
public MindMapNode getModel()
public void getCoordinates(java.util.LinkedList inList)
public void setText(java.lang.String string)
public java.lang.String getText()
protected int getMainViewWidthWithFoldingMark()
protected int getMainViewHeightWithFoldingMark()
public int getDeltaX()
public int getDeltaY()
public void requestFocus()
requestFocus in class javax.swing.JComponentpublic boolean focused()
public int getAdditionalCloudHeigth()
public boolean isSelected()
public boolean isLeft()
protected void setModel(MindMapNode model)
public MapView getMap()
public NodeView getParentView()
public NodeView getVisibleParentView()
public java.util.LinkedList getChildrenViews()
protected java.util.LinkedList getSiblingViews()
public java.awt.Point getLinkPoint(java.awt.Point declination)
protected void convertPointToMap(java.awt.Point p)
protected NodeView getNextPage()
protected NodeView getPreviousPage()
protected NodeView getNextVisibleSibling()
public boolean isContentVisible()
protected NodeView getPreviousVisibleSibling()
protected NodeView getNextSiblingSingle()
protected NodeView getPreviousSiblingSingle()
public void createAttributeView()
public void updateToolTip()
public int getMaxToolTipWidth()
public void setIcon(MultipleImage image)
protected java.awt.Color getSelectedColor()
protected static java.awt.Color getAntiColor1(java.awt.Color c)
getAntiColor2(java.awt.Color).protected static java.awt.Color getAntiColor2(java.awt.Color c)
getAntiColor1(java.awt.Color).public int getShift()
public int getVGap()
public int getHGap()
public MainView getMainView()
public java.awt.Font getTextFont()
public java.awt.Color getTextColor()
public AttributeView getAttributeView()
public NodeView getPreferredVisibleChild(boolean left)
public void setPreferredChild(NodeView view)
public void treeNodesChanged(javax.swing.event.TreeModelEvent e)
treeNodesChanged in interface javax.swing.event.TreeModelListenerpublic void treeNodesInserted(javax.swing.event.TreeModelEvent e)
treeNodesInserted in interface javax.swing.event.TreeModelListenerpublic void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
treeNodesRemoved in interface javax.swing.event.TreeModelListenerpublic void treeStructureChanged(javax.swing.event.TreeModelEvent e)
treeStructureChanged in interface javax.swing.event.TreeModelListenerpublic int getZoomedFoldingSymbolHalfWidth()
public void paintFoldingMark(java.awt.Graphics2D g)
public javax.swing.JComponent getContent()
public java.awt.Container getContentPane()
public NodeMotionListenerView getMotionListenerView()
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class java.awt.Componentpublic void setVisible(boolean isVisible)
setVisible in class javax.swing.JComponentpublic void paint(java.awt.Graphics g)
paint in class javax.swing.JComponentpublic java.lang.String toString()
toString in class java.awt.Componentpublic boolean contains(int x,
int y)
contains in class javax.swing.JComponentpublic java.awt.Color getTextBackground()