public abstract class EdgeAdapter extends LineAdapter implements MindMapEdge
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EdgeAdapter.EdgeAdapterListener |
| Modifier and Type | Field and Description |
|---|---|
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 |
color, DEFAULT_WIDTH, frame, NORMAL_WIDTH, style, target, width| Constructor and Description |
|---|
EdgeAdapter(MindMapNode target,
FreeMindMain frame) |
| Modifier and Type | Method and Description |
|---|---|
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) |
clone, getFrame, getTarget, setColor, setStyle, setTarget, toString, updateStandardsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, setTarget, toStringpublic static final java.lang.String EDGE_WIDTH_THIN_STRING
public static final int WIDTH_PARENT
public static final int WIDTH_THIN
public static final java.lang.String EDGESTYLE_LINEAR
public static final java.lang.String EDGESTYLE_BEZIER
public static final java.lang.String EDGESTYLE_SHARP_LINEAR
public static final java.lang.String EDGESTYLE_SHARP_BEZIER
public EdgeAdapter(MindMapNode target, FreeMindMain frame)
public java.awt.Color getColor()
getColor in interface MindMapLinegetColor in class LineAdapterpublic java.awt.Color getRealColor()
public int getWidth()
getWidth in interface MindMapLinegetWidth in class LineAdapterpublic int getRealWidth()
LineAdaptergetRealWidth in interface MindMapLinegetRealWidth in class LineAdapterpublic void setWidth(int width)
setWidth in class LineAdapterpublic java.lang.String getStyle()
getStyle in interface MindMapLinegetStyle in class LineAdapterpublic boolean hasStyle()
hasStyle in interface MindMapEdgepublic XMLElement save()
save in interface MindMapEdgeprotected java.awt.Color getStandardColor()
LineAdaptergetStandardColor in class LineAdapterprotected void setStandardColor(java.awt.Color standardColor)
LineAdaptersetStandardColor in class LineAdapterprotected java.lang.String getStandardStyle()
getStandardStyle in class LineAdapterprotected void setStandardStyle(java.lang.String standardStyle)
setStandardStyle in class LineAdapterprotected java.lang.String getStandardColorPropertyString()
getStandardColorPropertyString in class LineAdapterprotected java.lang.String getStandardStylePropertyString()
getStandardStylePropertyString in class LineAdapter