freemind.modes
Class LinkAdapter

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

public abstract class LinkAdapter
extends LineAdapter
implements MindMapLink


Nested Class Summary
 
Nested classes inherited from class freemind.modes.LineAdapter
LineAdapter.LineAdapterListener
 
Field Summary
 
Fields inherited from class freemind.modes.LineAdapter
color, DEFAULT_WIDTH, frame, NORMAL_WIDTH, standardColorPropertyString, standardStylePropertyString, stroke, style, target, width
 
Constructor Summary
  LinkAdapter(MindMapNode source, MindMapNode target, FreeMindMain frame)
           
protected LinkAdapter(MindMapNode source, MindMapNode target, FreeMindMain frame, java.lang.String standardColorPropertyString, java.lang.String standardStylePropertyString)
          For derived classes.
 
Method Summary
 java.lang.String getDestinationLabel()
           
 java.lang.String getReferenceText()
           
 MindMapNode getSource()
           
protected  java.awt.Color getStandardColor()
          See @see setStandardColor
protected  java.lang.String getStandardStyle()
           
 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, 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
 
Methods inherited from interface freemind.modes.MindMapLink
getTarget
 
Methods inherited from interface freemind.modes.MindMapLine
clone, getColor, getStroke, getStyle, getWidth, setTarget, toString
 

Constructor Detail

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.

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