freemind.modes
Class EdgeAdapter

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

public abstract class EdgeAdapter
extends LineAdapter
implements MindMapEdge


Nested Class Summary
protected static class EdgeAdapter.EdgeAdapterListener
           
 
Field Summary
static java.lang.String EDGE_WIDTH_THIN_STRING
           
static java.lang.String EDGESTYLE_BEZIER
           
static java.lang.String EDGESTYLE_LINEAR
           
static java.lang.String EDGESTYLE_SHARP_BEZIER
           
static java.lang.String EDGESTYLE_SHARP_LINEAR
           
static int WIDTH_PARENT
           
static int WIDTH_THIN
           
 
Fields inherited from class freemind.modes.LineAdapter
color, DEFAULT_WIDTH, frame, NORMAL_WIDTH, style, target, width
 
Constructor Summary
EdgeAdapter(MindMapNode target, FreeMindMain frame)
           
 
Method Summary
 java.awt.Color getColor()
           
 java.awt.Color getRealColor()
           
 int getRealWidth()
          Get the width in pixels rather than in width constant (like -1)
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 getStyle()
           
 int getWidth()
           
 boolean hasStyle()
           
 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

EDGE_WIDTH_THIN_STRING

public static final java.lang.String EDGE_WIDTH_THIN_STRING
See Also:
Constant Field Values

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

EDGESTYLE_LINEAR

public static final java.lang.String EDGESTYLE_LINEAR
See Also:
Constant Field Values

EDGESTYLE_BEZIER

public static final java.lang.String EDGESTYLE_BEZIER
See Also:
Constant Field Values

EDGESTYLE_SHARP_LINEAR

public static final java.lang.String EDGESTYLE_SHARP_LINEAR
See Also:
Constant Field Values

EDGESTYLE_SHARP_BEZIER

public static final java.lang.String EDGESTYLE_SHARP_BEZIER
See Also:
Constant Field Values
Constructor Detail

EdgeAdapter

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

getRealWidth

public int getRealWidth()
Description copied from class: LineAdapter
Get the width in pixels rather than in width constant (like -1)

Specified by:
getRealWidth in interface MindMapLine
Overrides:
getRealWidth in class LineAdapter

setWidth

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

getStyle

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

hasStyle

public boolean hasStyle()
Specified by:
hasStyle in interface MindMapEdge

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

getStandardColorPropertyString

protected java.lang.String getStandardColorPropertyString()
Specified by:
getStandardColorPropertyString in class LineAdapter

getStandardStylePropertyString

protected java.lang.String getStandardStylePropertyString()
Specified by:
getStandardStylePropertyString in class LineAdapter