Class ZOrderComparator

  • All Implemented Interfaces:
    java.util.Comparator<javax.swing.JComponent>

    public class ZOrderComparator
    extends java.lang.Object
    implements java.util.Comparator<javax.swing.JComponent>
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • 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 interface java.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 )