freemind.modes

Class LineAdapter

Implemented Interfaces:
Cloneable, MindMapLine
Known Direct Subclasses:
CloudAdapter, EdgeAdapter, LinkAdapter

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

Field Summary

static int
DEFAULT_WIDTH
protected int
NORMAL_WIDTH
protected Color
color
protected FreeMindMain
frame
protected String
standardColorPropertyString
protected String
standardStylePropertyString
protected Stroke
stroke
protected String
style
protected MindMapNode
target
protected int
width

Constructor Summary

LineAdapter(MindMapNode target, FreeMindMain frame, String standardColorPropertyString, String standardStylePropertyString)

Method Summary

Object
clone()
Color
getColor()
FreeMindMain
getFrame()
Stroke
getStroke()
String
getStyle()
MindMapNode
getTarget()
I see no reason to hide the node, the line belongs to, to the public, but...
int
getWidth()
void
setColor(Color color)
void
setStyle(String style)
void
setTarget(MindMapNode target)
The node to which this line is associated.
void
setWidth(int width)
String
toString()

Field Details

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
Field Value:
-1

NORMAL_WIDTH

protected int NORMAL_WIDTH

color

protected Color color

frame

protected FreeMindMain frame

standardColorPropertyString

protected String standardColorPropertyString

standardStylePropertyString

protected String standardStylePropertyString

stroke

protected Stroke stroke

style

protected String style

target

protected MindMapNode target

width

protected int width

Constructor Details

LineAdapter

public LineAdapter(MindMapNode target,
                   FreeMindMain frame,
                   String standardColorPropertyString,
                   String standardStylePropertyString)

Method Details

clone

public Object clone()
Specified by:
clone in interface MindMapLine

getColor

public Color getColor()
Specified by:
getColor in interface MindMapLine

getFrame

public FreeMindMain getFrame()

getStroke

public Stroke getStroke()
Specified by:
getStroke in interface MindMapLine

getStyle

public String getStyle()
Specified by:
getStyle in interface MindMapLine

getTarget

public MindMapNode getTarget()
I see no reason to hide the node, the line belongs to, to the public, but... fc.

getWidth

public int getWidth()
Specified by:
getWidth in interface MindMapLine

setColor

public void setColor(Color color)

setStyle

public void setStyle(String style)

setTarget

public void setTarget(MindMapNode target)
The node to which this line is associated.
Specified by:
setTarget in interface MindMapLine

setWidth

public void setWidth(int width)

toString

public String toString()
Specified by:
toString in interface MindMapLine