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 |
INT_EDGESTYLE_BEZIER |
static int |
INT_EDGESTYLE_LINEAR |
static int |
INT_EDGESTYLE_SHARP_BEZIER |
static int |
INT_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
LineAdapter.setStandardColor |
protected java.lang.String |
getStandardColorPropertyString() |
protected java.lang.String |
getStandardStyle() |
protected java.lang.String |
getStandardStylePropertyString() |
java.lang.String |
getStyle() |
int |
getStyleAsInt() |
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, updateStandards
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, setTarget, toString
public 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 static final int INT_EDGESTYLE_LINEAR
public static final int INT_EDGESTYLE_BEZIER
public static final int INT_EDGESTYLE_SHARP_LINEAR
public static final int INT_EDGESTYLE_SHARP_BEZIER
public EdgeAdapter(MindMapNode target, FreeMindMain frame)
public java.awt.Color getColor()
getColor
in interface MindMapLine
getColor
in class LineAdapter
public java.awt.Color getRealColor()
public int getWidth()
getWidth
in interface MindMapLine
getWidth
in class LineAdapter
public int getRealWidth()
LineAdapter
getRealWidth
in interface MindMapLine
getRealWidth
in class LineAdapter
public void setWidth(int width)
setWidth
in class LineAdapter
public java.lang.String getStyle()
getStyle
in interface MindMapLine
getStyle
in class LineAdapter
public boolean hasStyle()
hasStyle
in interface MindMapEdge
public XMLElement save()
save
in interface MindMapEdge
protected java.awt.Color getStandardColor()
LineAdapter
LineAdapter.setStandardColor
getStandardColor
in class LineAdapter
protected void setStandardColor(java.awt.Color standardColor)
LineAdapter
setStandardColor
in class LineAdapter
protected java.lang.String getStandardStyle()
getStandardStyle
in class LineAdapter
protected void setStandardStyle(java.lang.String standardStyle)
setStandardStyle
in class LineAdapter
protected java.lang.String getStandardColorPropertyString()
getStandardColorPropertyString
in class LineAdapter
protected java.lang.String getStandardStylePropertyString()
getStandardStylePropertyString
in class LineAdapter
public int getStyleAsInt()
getStyleAsInt
in interface MindMapEdge