freemind.modes
Class CloudAdapter

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

public abstract class CloudAdapter
extends LineAdapter
implements MindMapCloud


Nested Class Summary
 
Nested classes inherited from class freemind.modes.LineAdapter
LineAdapter.LineAdapterListener
 
Field Summary
 
Fields inherited from class freemind.modes.LineAdapter
color, DEFAULT_WIDTH, frame, NORMAL_WIDTH, standardColorPropertyString, standardStylePropertyString, stroke, style, target, width
 
Constructor Summary
  CloudAdapter(MindMapNode target, FreeMindMain frame)
           
protected CloudAdapter(MindMapNode target, FreeMindMain frame, java.lang.String standardColorPropertyString, java.lang.String standardStylePropertyString)
          For derived classes.
 
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 getStandardStyle()
           
 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, getStroke, 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, getStroke, getStyle, getWidth, toString
 

Constructor Detail

CloudAdapter

public CloudAdapter(MindMapNode target,
                    FreeMindMain frame)

CloudAdapter

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

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