Class ChartCompiler.LinkOrder
- java.lang.Object
- 
- com.inductiveautomation.sfc.uimodel.ChartCompiler.LinkOrder
 
- 
- Enclosing class:
- ChartCompiler
 
 public static class ChartCompiler.LinkOrder extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description LinkOrder(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intanyCount()LinkDirectionbottom()intcount()The count of incoming/outgoing/any linksvoidflow()Attempts to assign direction based upon flow rules: If exactly one side is "Any", and all other sides are the same direction, it assigns the opposite direction to the Any side.intinCount()LinkDirectionleft()intoutCount()LinkDirectionright()voidsetBottom(LinkDirection bottom)voidsetTop(LinkDirection dir)LinkDirectiontop()voidupdate(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right)
 
- 
- 
- 
Field Detail- 
Tpublic static final int T - See Also:
- Constant Field Values
 
 - 
Lpublic static final int L - See Also:
- Constant Field Values
 
 - 
Bpublic static final int B - See Also:
- Constant Field Values
 
 - 
Rpublic static final int R - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
LinkOrderpublic LinkOrder(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right) 
 
- 
 - 
Method Detail- 
updatepublic void update(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right) 
 - 
toppublic LinkDirection top() 
 - 
setToppublic void setTop(LinkDirection dir) 
 - 
leftpublic LinkDirection left() 
 - 
bottompublic LinkDirection bottom() 
 - 
setBottompublic void setBottom(LinkDirection bottom) 
 - 
rightpublic LinkDirection right() 
 - 
countpublic int count() The count of incoming/outgoing/any links
 - 
anyCountpublic int anyCount() 
 - 
inCountpublic int inCount() 
 - 
outCountpublic int outCount() 
 - 
flowpublic void flow() Attempts to assign direction based upon flow rules: If exactly one side is "Any", and all other sides are the same direction, it assigns the opposite direction to the Any side. Also:
- If top is IN, and bottom is ANY, bottom becomes OUT
- If top is OUT, and bottom is ANY, bottom becomes IN
 
- 
 
-