java.lang.Object
com.inductiveautomation.ignition.designer.designable.tools.ZOrderComparator
All Implemented Interfaces:
Comparator<JComponent>

public class ZOrderComparator extends Object implements Comparator<JComponent>
  • Constructor Details

    • ZOrderComparator

      public ZOrderComparator(DesignableDelegate delegate, boolean reverseOrder)
  • Method Details

    • compare

      public int compare(JComponent o1, JComponent o2)
      Specified by:
      compare in interface Comparator<JComponent>
    • getZOrderReverse

      public static int getZOrderReverse(DesignableDelegate delegate, 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, JComponent item)
      Returns the ZOrder in reverse. This makes it go from visually the bottom to the top. (Naturally, position 0 == the top )