public abstract class LineAdapter extends java.lang.Object implements MindMapLine
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
color |
static int |
DEFAULT_WIDTH |
protected FreeMindMain |
frame |
protected int |
NORMAL_WIDTH |
protected java.lang.String |
style |
protected MindMapNode |
target |
protected int |
width |
| Constructor and Description |
|---|
LineAdapter(MindMapNode target,
FreeMindMain frame) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.awt.Color |
getColor() |
FreeMindMain |
getFrame() |
int |
getRealWidth()
Get the width in pixels rather than in width constant (like -1)
|
protected abstract java.awt.Color |
getStandardColor()
See @see setStandardColor
|
protected abstract java.lang.String |
getStandardColorPropertyString() |
protected abstract java.lang.String |
getStandardStyle() |
protected abstract java.lang.String |
getStandardStylePropertyString() |
java.lang.String |
getStyle() |
MindMapNode |
getTarget()
I see no reason to hide the node, the line belongs to, to the public, but... fc.
|
int |
getWidth() |
void |
setColor(java.awt.Color color) |
protected abstract 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 abstract void |
setStandardStyle(java.lang.String standardStyle) |
void |
setStyle(java.lang.String style) |
void |
setTarget(MindMapNode target)
The node to which this line is associated.
|
void |
setWidth(int width) |
java.lang.String |
toString() |
protected void |
updateStandards() |
protected FreeMindMain frame
protected MindMapNode target
public static final int DEFAULT_WIDTH
protected int NORMAL_WIDTH
protected java.awt.Color color
protected java.lang.String style
protected int width
public LineAdapter(MindMapNode target, FreeMindMain frame)
protected void updateStandards()
public FreeMindMain getFrame()
public java.awt.Color getColor()
getColor in interface MindMapLinepublic void setColor(java.awt.Color color)
public int getWidth()
getWidth in interface MindMapLinepublic int getRealWidth()
getRealWidth in interface MindMapLinepublic void setWidth(int width)
public java.lang.String getStyle()
getStyle in interface MindMapLinepublic void setStyle(java.lang.String style)
public java.lang.String toString()
toString in interface MindMapLinetoString in class java.lang.Objectpublic void setTarget(MindMapNode target)
MindMapLinesetTarget in interface MindMapLinepublic MindMapNode getTarget()
public java.lang.Object clone()
clone in interface MindMapLineclone in class java.lang.Objectprotected abstract void setStandardColor(java.awt.Color standardColor)
protected abstract java.awt.Color getStandardColor()
protected abstract void setStandardStyle(java.lang.String standardStyle)
protected abstract java.lang.String getStandardStyle()
protected abstract java.lang.String getStandardStylePropertyString()
protected abstract java.lang.String getStandardColorPropertyString()