freemind.modes
Class CloudAdapter

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

public abstract class CloudAdapter
extends LineAdapter
implements MindMapCloud


Nested Class Summary
protected static class CloudAdapter.CloudAdapterListener
           
 
Field Summary
static java.lang.String RESOURCES_STANDARDCLOUDSTYLE
           
 
Fields inherited from class freemind.modes.LineAdapter
color, DEFAULT_WIDTH, frame, NORMAL_WIDTH, style, target, width
 
Constructor Summary
CloudAdapter(MindMapNode target, FreeMindMain frame)
           
 
Method Summary
 void changeIterativeLevel(int deltaLevel)
          changes the iterative level.
 java.awt.Color getExteriorColor()
          Describes the color of the exterior of the cloud.
 int getIterativeLevel()
          gets iterative level which is required for painting and layout.
protected  java.awt.Color getStandardColor()
          See @see setStandardColor
protected  java.lang.String getStandardColorPropertyString()
           
protected  java.lang.String getStandardStyle()
           
protected  java.lang.String getStandardStylePropertyString()
           
 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 setTarget(MindMapNode target)
          The node to which this line is associated.
 
Methods inherited from class freemind.modes.LineAdapter
clone, getColor, getFrame, getRealWidth, getStyle, getTarget, getWidth, setColor, setStyle, setWidth, 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, getColor, getRealWidth, getStyle, getWidth, toString
 

Field Detail

RESOURCES_STANDARDCLOUDSTYLE

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

CloudAdapter

public CloudAdapter(MindMapNode target,
                    FreeMindMain frame)
Method Detail

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
Overrides:
setTarget in class LineAdapter

getExteriorColor

public java.awt.Color getExteriorColor()
Description copied from interface: MindMapCloud
Describes the color of the exterior of the cloud. Normally, this color is derived from the interior color.

Specified by:
getExteriorColor in interface MindMapCloud

getIterativeLevel

public int getIterativeLevel()
gets iterative level which is required for painting and layout.

Specified by:
getIterativeLevel in interface MindMapCloud

changeIterativeLevel

public void changeIterativeLevel(int deltaLevel)
changes the iterative level.

Specified by:
changeIterativeLevel in interface MindMapCloud

save

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

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