freemind.modes
Class LinkAdapter

java.lang.Object
  extended by freemind.modes.LineAdapter
      extended by freemind.modes.LinkAdapter
All Implemented Interfaces:
MindMapLine, MindMapLink, java.lang.Cloneable
Direct Known Subclasses:
ArrowLinkAdapter

public abstract class LinkAdapter
extends LineAdapter
implements MindMapLink


Nested Class Summary
protected static class LinkAdapter.LinkAdapterListener
           
 
Field Summary
static java.lang.String RESOURCES_STANDARDLINKSTYLE
           
 
Fields inherited from class freemind.modes.LineAdapter
color, DEFAULT_WIDTH, frame, NORMAL_WIDTH, style, target, width
 
Constructor Summary
LinkAdapter(MindMapNode source, MindMapNode target, FreeMindMain frame)
           
 
Method Summary
 java.lang.String getDestinationLabel()
           
 java.lang.String getReferenceText()
           
 MindMapNode getSource()
           
protected  java.awt.Color getStandardColor()
          See @see setStandardColor
protected  java.lang.String getStandardColorPropertyString()
           
protected  java.lang.String getStandardStyle()
           
protected  java.lang.String getStandardStylePropertyString()
           
 java.lang.String getUniqueID()
          The id is automatically set on creation.
 void setDestinationLabel(java.lang.String destinationLabel)
           
 void setReferenceText(java.lang.String referenceText)
           
 void setSource(MindMapNode source)
           
protected  void setStandardColor(java.awt.Color standardColor)
          As this color is static but used in at least three different objects (edges, clouds and links), the abstract mechanism was chosen.
protected  void setStandardStyle(java.lang.String standardStyle)
           
 void setUniqueID(java.lang.String uniqueID)
           
 
Methods inherited from class freemind.modes.LineAdapter
clone, getColor, getFrame, getRealWidth, 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
 
Methods inherited from interface freemind.modes.MindMapLink
getTarget
 
Methods inherited from interface freemind.modes.MindMapLine
clone, getColor, getRealWidth, getStyle, getWidth, setTarget, toString
 

Field Detail

RESOURCES_STANDARDLINKSTYLE

public static final java.lang.String RESOURCES_STANDARDLINKSTYLE
See Also:
Constant Field Values
Constructor Detail

LinkAdapter

public LinkAdapter(MindMapNode source,
                   MindMapNode target,
                   FreeMindMain frame)
Method Detail

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

getStandardColorPropertyString

protected java.lang.String getStandardColorPropertyString()
Specified by:
getStandardColorPropertyString in class LineAdapter

getStandardStylePropertyString

protected java.lang.String getStandardStylePropertyString()
Specified by:
getStandardStylePropertyString in class LineAdapter