org.kite9.diagram.adl
Class Link

java.lang.Object
  extended by org.kite9.diagram.primitives.AbstractBiDirectional<Connected>
      extended by org.kite9.diagram.primitives.AbstractConnection
          extended by org.kite9.diagram.adl.Link
All Implemented Interfaces:
Comparable<DiagramElement>, BiDirectional<Connected>, Connection, DiagramElement

public class Link
extends AbstractConnection

Joins glyphs and arrows to one another. Can have text attached to the 'to' end, and decoration at the 'to' end Set the drawDirection if the rendering system should draw the link in a particular orientation on the diagram.

Author:
robmoffat

Field Summary
 
Fields inherited from class org.kite9.diagram.primitives.AbstractConnection
fromDecoration, fromLabel, renderingInformation, toDecoration, toLabel
 
Fields inherited from class org.kite9.diagram.primitives.AbstractBiDirectional
drawDirection, from, to
 
Constructor Summary
Link()
           
Link(Connected from, Connected to)
           
Link(Connected from, Connected to, LinkEndStyle fromStyle, Label fromLabel, LinkEndStyle toEndStyle, Label toLabel)
           
Link(Connected from, Connected to, LinkEndStyle fromStyle, Label fromLabel, LinkEndStyle toEndStyle, Label toLabel, Direction drawDirection)
           
Link(Connected from, Connected to, LinkEndStyle toEndStyle, String toTextStr, Direction drawDirection)
          Deprecated. 
 
Method Summary
 LinkLineStyle getStyle()
           
 void setStyle(LinkLineStyle style)
           
 
Methods inherited from class org.kite9.diagram.primitives.AbstractConnection
compareTo, getFromDecoration, getFromLabel, getRenderingInformation, getToDecoration, getToLabel, setFromDecoration, setFromLabel, setToDecoration, setToLabel
 
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
 

Constructor Detail

Link

public Link()

Link

public Link(Connected from,
            Connected to)

Link

public Link(Connected from,
            Connected to,
            LinkEndStyle fromStyle,
            Label fromLabel,
            LinkEndStyle toEndStyle,
            Label toLabel)

Link

@Deprecated
public Link(Connected from,
                       Connected to,
                       LinkEndStyle toEndStyle,
                       String toTextStr,
                       Direction drawDirection)
Deprecated. 


Link

public Link(Connected from,
            Connected to,
            LinkEndStyle fromStyle,
            Label fromLabel,
            LinkEndStyle toEndStyle,
            Label toLabel,
            Direction drawDirection)
Method Detail

getStyle

public LinkLineStyle getStyle()

setStyle

public void setStyle(LinkLineStyle style)


Copyright © 2011. All Rights Reserved.