freemind.modes
Class LineAdapter
java.lang.Object
freemind.modes.LineAdapter
- All Implemented Interfaces:
- java.lang.Cloneable, MindMapLine
- Direct Known Subclasses:
- CloudAdapter, EdgeAdapter, LinkAdapter
- public abstract class LineAdapter
- extends java.lang.Object
- implements MindMapLine
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
frame
protected FreeMindMain frame
target
protected MindMapNode target
standardColorPropertyString
protected java.lang.String standardColorPropertyString
standardStylePropertyString
protected java.lang.String standardStylePropertyString
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH
- See Also:
- Constant Field Values
NORMAL_WIDTH
protected int NORMAL_WIDTH
color
protected java.awt.Color color
style
protected java.lang.String style
width
protected int width
stroke
protected java.awt.Stroke stroke
LineAdapter
public LineAdapter(MindMapNode target,
FreeMindMain frame,
java.lang.String standardColorPropertyString,
java.lang.String standardStylePropertyString)
updateStandards
protected void updateStandards()
getFrame
public FreeMindMain getFrame()
getColor
public java.awt.Color getColor()
- Specified by:
getColor
in interface MindMapLine
setColor
public void setColor(java.awt.Color color)
getWidth
public int getWidth()
- Specified by:
getWidth
in interface MindMapLine
getStroke
public java.awt.Stroke getStroke()
- Specified by:
getStroke
in interface MindMapLine
setWidth
public void setWidth(int width)
getStyle
public java.lang.String getStyle()
- Specified by:
getStyle
in interface MindMapLine
setStyle
public void setStyle(java.lang.String style)
toString
public java.lang.String toString()
- Specified by:
toString
in interface MindMapLine
setTarget
public void setTarget(MindMapNode target)
- Description copied from interface:
MindMapLine
- The node to which this line is associated.
- Specified by:
setTarget
in interface MindMapLine
getTarget
public MindMapNode getTarget()
- I see no reason to hide the node, the line belongs to, to the public, but... fc.
clone
public java.lang.Object clone()
- Specified by:
clone
in interface MindMapLine
setStandardColor
protected abstract 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.
The derived classes set and get the static instance variable.
getStandardColor
protected abstract java.awt.Color getStandardColor()
- See @see setStandardColor
setStandardStyle
protected abstract void setStandardStyle(java.lang.String standardStyle)
getStandardStyle
protected abstract java.lang.String getStandardStyle()