public abstract class LinkAdapter extends LineAdapter implements MindMapLink
Modifier and Type | Class and Description |
---|---|
protected static class |
LinkAdapter.LinkAdapterListener |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCES_STANDARDLINKSTYLE |
color, DEFAULT_WIDTH, frame, NORMAL_WIDTH, style, target, width
Constructor and Description |
---|
LinkAdapter(MindMapNode source,
MindMapNode target,
FreeMindMain frame) |
Modifier and Type | Method and Description |
---|---|
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) |
clone, getColor, getFrame, getRealWidth, getStyle, getTarget, getWidth, setColor, setStyle, setTarget, setWidth, toString, updateStandards
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTarget
clone, getColor, getRealWidth, getStyle, getWidth, setTarget, toString
public static final java.lang.String RESOURCES_STANDARDLINKSTYLE
public LinkAdapter(MindMapNode source, MindMapNode target, FreeMindMain frame)
public java.lang.String getDestinationLabel()
getDestinationLabel
in interface MindMapLink
public java.lang.String getReferenceText()
getReferenceText
in interface MindMapLink
public MindMapNode getSource()
getSource
in interface MindMapLink
public void setSource(MindMapNode source)
public void setDestinationLabel(java.lang.String destinationLabel)
public void setReferenceText(java.lang.String referenceText)
public java.lang.String getUniqueID()
MindMapLink
getUniqueID
in interface MindMapLink
public void setUniqueID(java.lang.String uniqueID)
uniqueID
- The uniqueID to set.protected java.awt.Color getStandardColor()
LineAdapter
getStandardColor
in class LineAdapter
protected void setStandardColor(java.awt.Color standardColor)
LineAdapter
setStandardColor
in class LineAdapter
protected java.lang.String getStandardStyle()
getStandardStyle
in class LineAdapter
protected void setStandardStyle(java.lang.String standardStyle)
setStandardStyle
in class LineAdapter
protected java.lang.String getStandardColorPropertyString()
getStandardColorPropertyString
in class LineAdapter
protected java.lang.String getStandardStylePropertyString()
getStandardStylePropertyString
in class LineAdapter