|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kite9.diagram.primitives.AbstractBiDirectional<Connected>
org.kite9.diagram.primitives.AbstractConnection
public abstract class AbstractConnection
This is the base class for connections within the diagram. i.e. Links.
| Field Summary | |
|---|---|
protected Object |
fromDecoration
|
protected Label |
fromLabel
|
protected RenderingInformation |
renderingInformation
This is used by layout engines to set the position of the elements in the diagram |
protected Object |
toDecoration
|
protected Label |
toLabel
|
| Fields inherited from class org.kite9.diagram.primitives.AbstractBiDirectional |
|---|
drawDirection, from, to |
| Constructor Summary | |
|---|---|
AbstractConnection()
For serialization |
|
AbstractConnection(Connected from,
Connected to,
Direction drawDirection,
Object fromDecoration,
Label fromLabel,
Object toDecoration,
Label tolabel)
Call this with modify verteConnected false to avoid adding the edge connection to the vertex |
|
| Method Summary | |
|---|---|
int |
compareTo(DiagramElement o)
|
Object |
getFromDecoration()
The shape of the end of the edge at the from end |
Label |
getFromLabel()
The text written on the from end |
RouteRenderingInformation |
getRenderingInformation()
|
Object |
getToDecoration()
The shape of the end of the edge at the to end |
Label |
getToLabel()
Text on the to end |
void |
setFromDecoration(Object fromDecoration)
|
void |
setFromLabel(Label fromLabel)
|
void |
setToDecoration(Object toDecoration)
|
void |
setToLabel(Label toLabel)
|
| Methods inherited from class org.kite9.diagram.primitives.AbstractBiDirectional |
|---|
getDrawDirection, getDrawDirectionFrom, getFrom, getTo, meets, meets, otherEnd, setDrawDirection, setDrawDirectionFrom, setFrom, setTo, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.kite9.diagram.primitives.BiDirectional |
|---|
getDrawDirection, getDrawDirectionFrom, getFrom, getTo, meets, meets, otherEnd, setDrawDirection, setDrawDirectionFrom, setFrom, setTo |
| Field Detail |
|---|
protected Object fromDecoration
protected Object toDecoration
protected Label fromLabel
protected Label toLabel
protected RenderingInformation renderingInformation
| Constructor Detail |
|---|
public AbstractConnection()
public AbstractConnection(Connected from,
Connected to,
Direction drawDirection,
Object fromDecoration,
Label fromLabel,
Object toDecoration,
Label tolabel)
| Method Detail |
|---|
public Object getFromDecoration()
Connection
getFromDecoration in interface Connectionpublic Object getToDecoration()
Connection
getToDecoration in interface Connectionpublic Label getFromLabel()
Connection
getFromLabel in interface Connectionpublic Label getToLabel()
Connection
getToLabel in interface Connectionpublic int compareTo(DiagramElement o)
compareTo in interface Comparable<DiagramElement>public RouteRenderingInformation getRenderingInformation()
getRenderingInformation in interface DiagramElementpublic void setFromDecoration(Object fromDecoration)
public void setToDecoration(Object toDecoration)
public void setFromLabel(Label fromLabel)
public void setToLabel(Label toLabel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||