freemind.modes
Class LineAdapter

java.lang.Object
  extended byfreemind.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


Nested Class Summary
protected  class LineAdapter.LineAdapterListener
           
 
Field Summary
protected  java.awt.Color color
           
static int DEFAULT_WIDTH
           
protected  FreeMindMain frame
           
protected  int NORMAL_WIDTH
           
protected  java.lang.String standardColorPropertyString
           
protected  java.lang.String standardStylePropertyString
           
protected  java.awt.Stroke stroke
           
protected  java.lang.String style
           
protected  MindMapNode target
           
protected  int width
           
 
Constructor Summary
LineAdapter(MindMapNode target, FreeMindMain frame, java.lang.String standardColorPropertyString, java.lang.String standardStylePropertyString)
           
 
Method Summary
 java.lang.Object clone()
           
 java.awt.Color getColor()
           
 FreeMindMain getFrame()
           
protected abstract  java.awt.Color getStandardColor()
          See @see setStandardColor
protected abstract  java.lang.String getStandardStyle()
           
 java.awt.Stroke getStroke()
           
 java.lang.String getStyle()
           
 MindMapNode getTarget()
          I see no reason to hide the node, the line belongs to, to the public, but...
 int getWidth()
           
 void setColor(java.awt.Color color)
           
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.
protected abstract  void setStandardStyle(java.lang.String standardStyle)
           
 void setStyle(java.lang.String style)
           
 void setTarget(MindMapNode target)
          The node to which this line is associated.
 void setWidth(int width)
           
 java.lang.String toString()
           
protected  void updateStandards()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

LineAdapter

public LineAdapter(MindMapNode target,
                   FreeMindMain frame,
                   java.lang.String standardColorPropertyString,
                   java.lang.String standardStylePropertyString)
Method Detail

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()