freemind.modes
Class LineAdapter

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

public abstract class LineAdapter
extends java.lang.Object
implements MindMapLine


Field Summary
protected  java.awt.Color color
           
static int DEFAULT_WIDTH
           
protected  FreeMindMain frame
           
protected  int NORMAL_WIDTH
           
protected  java.lang.String style
           
protected  MindMapNode target
           
protected  int width
           
 
Constructor Summary
LineAdapter(MindMapNode target, FreeMindMain frame)
           
 
Method Summary
 java.lang.Object clone()
           
 java.awt.Color getColor()
           
 FreeMindMain getFrame()
           
 int getRealWidth()
          Get the width in pixels rather than in width constant (like -1)
protected abstract  java.awt.Color getStandardColor()
          See @see setStandardColor
protected abstract  java.lang.String getStandardColorPropertyString()
           
protected abstract  java.lang.String getStandardStyle()
           
protected abstract  java.lang.String getStandardStylePropertyString()
           
 java.lang.String getStyle()
           
 MindMapNode getTarget()
          I see no reason to hide the node, the line belongs to, to the public, but... fc.
 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

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

LineAdapter

public LineAdapter(MindMapNode target,
                   FreeMindMain frame)
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

getRealWidth

public int getRealWidth()
Get the width in pixels rather than in width constant (like -1)

Specified by:
getRealWidth 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
Overrides:
toString in class java.lang.Object

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
Overrides:
clone in class java.lang.Object

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

getStandardStylePropertyString

protected abstract java.lang.String getStandardStylePropertyString()

getStandardColorPropertyString

protected abstract java.lang.String getStandardColorPropertyString()