daoc.editor.ui
Class WindowStack

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byjava.util.Stack
                  extended bydaoc.editor.ui.WindowStack
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public final class WindowStack
extends java.util.Stack

A collection of WindowPanels.

See Also:
Serialized Form

Constructor Summary
WindowStack()
           
 
Method Summary
 WindowPanel firstToHit(int x, int y)
          Determines the top windows at the given coordinates, but does not bring to front.
 WindowPanel[] getPanels()
          Returns an ordered array of window panels.
 void moveToFront(WindowPanel p)
          Moves the given panel to the front of the stack.
 WindowPanel select(int x, int y)
          Returns the window panel at the given coordinates, or null if no window could be found.
 
Methods inherited from class java.util.Stack
empty, peek, pop, push, search
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

WindowStack

public WindowStack()
Method Detail

select

public final WindowPanel select(int x,
                                int y)
Returns the window panel at the given coordinates, or null if no window could be found. The matched window is then moved to the top of the stack.


firstToHit

public final WindowPanel firstToHit(int x,
                                    int y)
Determines the top windows at the given coordinates, but does not bring to front.


getPanels

public final WindowPanel[] getPanels()
Returns an ordered array of window panels.


moveToFront

public final void moveToFront(WindowPanel p)
Moves the given panel to the front of the stack.