com.androidplot.util
Class ListOrganizer<ElementType>

java.lang.Object
  extended by com.androidplot.util.ListOrganizer<ElementType>
Type Parameters:
ElementType -
All Implemented Interfaces:
ZIndexable<ElementType>

public class ListOrganizer<ElementType>
extends Object
implements ZIndexable<ElementType>

Utility class providing additional element organization operations.


Constructor Summary
ListOrganizer(List<ElementType> list)
           
 
Method Summary
 void addToBottom(ElementType element)
           
 void addToTop(ElementType element)
           
 List<ElementType> elements()
           
 boolean moveAbove(ElementType objectToMove, ElementType reference)
          Move above the specified element
 boolean moveBeneath(ElementType objectToMove, ElementType reference)
          Move beneath the specified element
 boolean moveDown(ElementType key)
          Move down by one element
 boolean moveToBottom(ElementType key)
          Move beneath all other elements
 boolean moveToTop(ElementType element)
          Move above all other elements
 boolean moveUp(ElementType key)
          Move up by one element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListOrganizer

public ListOrganizer(List<ElementType> list)
Method Detail

moveToTop

public boolean moveToTop(ElementType element)
Description copied from interface: ZIndexable
Move above all other elements

Specified by:
moveToTop in interface ZIndexable<ElementType>
Returns:

moveAbove

public boolean moveAbove(ElementType objectToMove,
                         ElementType reference)
Description copied from interface: ZIndexable
Move above the specified element

Specified by:
moveAbove in interface ZIndexable<ElementType>
Returns:

moveBeneath

public boolean moveBeneath(ElementType objectToMove,
                           ElementType reference)
Description copied from interface: ZIndexable
Move beneath the specified element

Specified by:
moveBeneath in interface ZIndexable<ElementType>
Returns:

moveToBottom

public boolean moveToBottom(ElementType key)
Description copied from interface: ZIndexable
Move beneath all other elements

Specified by:
moveToBottom in interface ZIndexable<ElementType>
Returns:

moveUp

public boolean moveUp(ElementType key)
Description copied from interface: ZIndexable
Move up by one element

Specified by:
moveUp in interface ZIndexable<ElementType>
Returns:

moveDown

public boolean moveDown(ElementType key)
Description copied from interface: ZIndexable
Move down by one element

Specified by:
moveDown in interface ZIndexable<ElementType>
Returns:

elements

public List<ElementType> elements()
Specified by:
elements in interface ZIndexable<ElementType>

addToBottom

public void addToBottom(ElementType element)

addToTop

public void addToTop(ElementType element)


Copyright © 2010-2013 androidplot.com. All Rights Reserved.