Class ChartCompiler.LinkOrder
java.lang.Object
com.inductiveautomation.sfc.uimodel.ChartCompiler.LinkOrder
- Enclosing class:
- ChartCompiler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLinkOrder(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right) -
Method Summary
Modifier and TypeMethodDescriptionintanyCount()bottom()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()left()intoutCount()right()voidsetBottom(LinkDirection bottom) voidsetTop(LinkDirection dir) top()voidupdate(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right)
-
Field Details
-
T
public static final int T- See Also:
-
L
public static final int L- See Also:
-
B
public static final int B- See Also:
-
R
public static final int R- See Also:
-
-
Constructor Details
-
LinkOrder
-
-
Method Details
-
update
public void update(LinkDirection top, LinkDirection left, LinkDirection bottom, LinkDirection right) -
top
-
setTop
-
left
-
bottom
-
setBottom
-
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
-