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 TypeMethodDescriptionint
anyCount()
bottom()
int
count()
The count of incoming/outgoing/any linksvoid
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.int
inCount()
left()
int
outCount()
right()
void
setBottom
(LinkDirection bottom) void
setTop
(LinkDirection dir) top()
void
update
(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
-