freemind.modes
Class EdgeAdapter

java.lang.Object
  extended byfreemind.modes.LineAdapter
      extended byfreemind.modes.EdgeAdapter
All Implemented Interfaces:
java.lang.Cloneable, MindMapEdge, MindMapLine
Direct Known Subclasses:
BrowseEdgeModel, FileEdgeModel, MindMapEdgeModel, SchemeEdgeModel

public abstract class EdgeAdapter
extends LineAdapter
implements MindMapEdge


Nested Class Summary
 
Nested classes inherited from class freemind.modes.LineAdapter
LineAdapter.LineAdapterListener
 
Field Summary
static int WIDTH_PARENT
           
static int WIDTH_THIN
           
 
Fields inherited from class freemind.modes.LineAdapter
color, DEFAULT_WIDTH, frame, NORMAL_WIDTH, standardColorPropertyString, standardStylePropertyString, stroke, style, target, width
 
Constructor Summary
  EdgeAdapter(MindMapNode target, FreeMindMain frame)
           
protected EdgeAdapter(MindMapNode target, FreeMindMain frame, java.lang.String standardColorPropertyString, java.lang.String standardStylePropertyString)
          For derived classes.
 
Method Summary
 java.awt.Color getColor()
           
 java.awt.Color getRealColor()
           
 int getRealWidth()
           
protected  java.awt.Color getStandardColor()
          See @see setStandardColor
protected  java.lang.String getStandardStyle()
           
 java.awt.Stroke getStroke()
           
 java.lang.String getStyle()
           
 int getWidth()
           
 XMLElement save()
           
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 setWidth(int width)
           
 
Methods inherited from class freemind.modes.LineAdapter
clone, getFrame, getTarget, setColor, setStyle, setTarget, toString, updateStandards
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface freemind.modes.MindMapLine
clone, setTarget, toString
 

Field Detail

WIDTH_PARENT

public static final int WIDTH_PARENT
See Also:
Constant Field Values

WIDTH_THIN

public static final int WIDTH_THIN
See Also:
Constant Field Values
Constructor Detail

EdgeAdapter

public EdgeAdapter(MindMapNode target,
                   FreeMindMain frame)

EdgeAdapter

protected EdgeAdapter(MindMapNode target,
                      FreeMindMain frame,
                      java.lang.String standardColorPropertyString,
                      java.lang.String standardStylePropertyString)
For derived classes.

Method Detail

getColor

public java.awt.Color getColor()
Specified by:
getColor in interface MindMapLine
Overrides:
getColor in class LineAdapter

getRealColor

public java.awt.Color getRealColor()

getWidth

public int getWidth()
Specified by:
getWidth in interface MindMapLine
Overrides:
getWidth in class LineAdapter

getStroke

public java.awt.Stroke getStroke()
Specified by:
getStroke in interface MindMapLine
Overrides:
getStroke in class LineAdapter

setWidth

public void setWidth(int width)
Overrides:
setWidth in class LineAdapter

getRealWidth

public int getRealWidth()

getStyle

public java.lang.String getStyle()
Specified by:
getStyle in interface MindMapLine
Overrides:
getStyle in class LineAdapter

save

public XMLElement save()
Specified by:
save in interface MindMapEdge

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