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 Summary
Constructors Constructor Description LinkOrder(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right) 
- 
Method Summary
All 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
- 
T
public static final int T
- See Also:
 - Constant Field Values
 
 
- 
L
public static final int L
- See Also:
 - Constant Field Values
 
 
- 
B
public static final int B
- See Also:
 - Constant Field Values
 
 
- 
R
public static final int R
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
LinkOrder
public LinkOrder(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right)
 
 - 
 
- 
Method Detail
- 
update
public void update(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right)
 
- 
top
public LinkDirection top()
 
- 
setTop
public void setTop(LinkDirection dir)
 
- 
left
public LinkDirection left()
 
- 
bottom
public LinkDirection bottom()
 
- 
setBottom
public void setBottom(LinkDirection bottom)
 
- 
right
public LinkDirection right()
 
- 
count
public int count()
The count of incoming/outgoing/any links 
- 
anyCount
public int anyCount()
 
- 
inCount
public int inCount()
 
- 
outCount
public int outCount()
 
- 
flow
public 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
  
 - 
 
 -