Class ZOrderComparator
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.designable.tools.ZOrderComparator
-
- All Implemented Interfaces:
java.util.Comparator<javax.swing.JComponent>
public class ZOrderComparator extends java.lang.Object implements java.util.Comparator<javax.swing.JComponent>
-
-
Constructor Summary
Constructors Constructor Description ZOrderComparator(DesignableDelegate delegate, boolean reverseOrder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(javax.swing.JComponent o1, javax.swing.JComponent o2)
static int
getZOrder(DesignableDelegate delegate, javax.swing.JComponent item)
Returns the ZOrder in reverse.static int
getZOrderReverse(DesignableDelegate delegate, javax.swing.JComponent item)
Returns the ZOrder in reverse.
-
-
-
Constructor Detail
-
ZOrderComparator
public ZOrderComparator(DesignableDelegate delegate, boolean reverseOrder)
-
-
Method Detail
-
compare
public int compare(javax.swing.JComponent o1, javax.swing.JComponent o2)
- Specified by:
compare
in interfacejava.util.Comparator<javax.swing.JComponent>
-
getZOrderReverse
public static int getZOrderReverse(DesignableDelegate delegate, javax.swing.JComponent item)
Returns the ZOrder in reverse. This makes it go from visually the bottom to the top. (Naturally, position 0 == the top )
-
getZOrder
public static int getZOrder(DesignableDelegate delegate, javax.swing.JComponent item)
Returns the ZOrder in reverse. This makes it go from visually the bottom to the top. (Naturally, position 0 == the top )
-
-