bibliothek.gui.dock.station.stack.tab.layouting
Class LineTabsLayoutBlock.ZOrder

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.tab.layouting.LineTabsLayoutBlock.ZOrder
Enclosing class:
LineTabsLayoutBlock

protected class LineTabsLayoutBlock.ZOrder
extends Object

Calculates the z-order of various components requiring only a subset of all comparisons


Constructor Summary
LineTabsLayoutBlock.ZOrder(Tab[] tabs)
          Creates a new LineTabsLayoutBlock.ZOrder
 
Method Summary
 Tab[] getOrderedByZ()
          Returns the tabs ordered by their z-order.
 int[] getZOrders()
          Calculates the z-orders for the tabs known to this LineTabsLayoutBlock.ZOrder.
 void putOrder(Tab front, Tab back)
          Sets front in front of back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineTabsLayoutBlock.ZOrder

public LineTabsLayoutBlock.ZOrder(Tab[] tabs)
Creates a new LineTabsLayoutBlock.ZOrder

Parameters:
tabs - the tabs whose z-order needs to be calculated.
Method Detail

putOrder

public void putOrder(Tab front,
                     Tab back)
Sets front in front of back. The behavior is undefined if previous calls already established that back must be in front of front.

Parameters:
front - the front tab
back - the back tab

getZOrders

public int[] getZOrders()
Calculates the z-orders for the tabs known to this LineTabsLayoutBlock.ZOrder.

Returns:
the z order.

getOrderedByZ

public Tab[] getOrderedByZ()
Returns the tabs ordered by their z-order. The first tab should be the one in front of all other tabs.

Returns:
the tabs ordered by z