freemind.modes
Class LinkAdapter
java.lang.Object
freemind.modes.LineAdapter
freemind.modes.LinkAdapter
- All Implemented Interfaces:
- java.lang.Cloneable, MindMapLine, MindMapLink
- Direct Known Subclasses:
- ArrowLinkAdapter
- public abstract class LinkAdapter
- extends LineAdapter
- implements MindMapLink
Methods inherited from class freemind.modes.LineAdapter |
clone, getColor, getFrame, getStroke, getStyle, getTarget, getWidth, setColor, setStyle, setTarget, setWidth, toString, updateStandards |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LinkAdapter
public LinkAdapter(MindMapNode source,
MindMapNode target,
FreeMindMain frame)
LinkAdapter
protected LinkAdapter(MindMapNode source,
MindMapNode target,
FreeMindMain frame,
java.lang.String standardColorPropertyString,
java.lang.String standardStylePropertyString)
- For derived classes.
getDestinationLabel
public java.lang.String getDestinationLabel()
- Specified by:
getDestinationLabel
in interface MindMapLink
getReferenceText
public java.lang.String getReferenceText()
- Specified by:
getReferenceText
in interface MindMapLink
getSource
public MindMapNode getSource()
- Specified by:
getSource
in interface MindMapLink
setSource
public void setSource(MindMapNode source)
setDestinationLabel
public void setDestinationLabel(java.lang.String destinationLabel)
setReferenceText
public void setReferenceText(java.lang.String referenceText)
getUniqueID
public java.lang.String getUniqueID()
- Description copied from interface:
MindMapLink
- The id is automatically set on creation. Is saved and restored.
- Specified by:
getUniqueID
in interface MindMapLink
- Returns:
- Returns the uniqueID.
setUniqueID
public void setUniqueID(java.lang.String uniqueID)
- Parameters:
uniqueID
- The uniqueID to set.
getStandardColor
protected java.awt.Color getStandardColor()
- Description copied from class:
LineAdapter
- See @see setStandardColor
- Specified by:
getStandardColor
in class LineAdapter
setStandardColor
protected void setStandardColor(java.awt.Color standardColor)
- Description copied from class:
LineAdapter
- As this color is static but used in at least three different
objects (edges, clouds and links), the abstract mechanism was chosen.
The derived classes set and get the static instance variable.
- Specified by:
setStandardColor
in class LineAdapter
getStandardStyle
protected java.lang.String getStandardStyle()
- Specified by:
getStandardStyle
in class LineAdapter
setStandardStyle
protected void setStandardStyle(java.lang.String standardStyle)
- Specified by:
setStandardStyle
in class LineAdapter