-
public interface Layerable<ElementType>
Encapsulates the concept of "layerable" objects; Each object is stored above or below each other object and may be moved up and down in the queue relative to other elements in the hash or absolutely to the front or back of the queue. Note that the method names correspond to the order of items drawn directly on top of one another using an iterator; the first element drawn (lowest layer) is effectively the "bottom" element.
-
-
Method Summary
Modifier and Type Method Description abstract boolean
moveToTop(ElementType element)
Move above all other elements abstract boolean
moveAbove(ElementType objectToMove, ElementType reference)
Move above the specified element abstract boolean
moveBeneath(ElementType objectToMove, ElementType reference)
Move beneath the specified element abstract boolean
moveToBottom(ElementType key)
Move beneath all other elements abstract boolean
moveUp(ElementType key)
Move up by one element abstract boolean
moveDown(ElementType key)
Move down by one element abstract List<ElementType>
elements()
-
-
Method Detail
-
moveToTop
abstract boolean moveToTop(ElementType element)
Move above all other elements
-
moveAbove
abstract boolean moveAbove(ElementType objectToMove, ElementType reference)
Move above the specified element
-
moveBeneath
abstract boolean moveBeneath(ElementType objectToMove, ElementType reference)
Move beneath the specified element
-
moveToBottom
abstract boolean moveToBottom(ElementType key)
Move beneath all other elements
-
moveUp
abstract boolean moveUp(ElementType key)
Move up by one element
-
moveDown
abstract boolean moveDown(ElementType key)
Move down by one element
-
elements
abstract List<ElementType> elements()
-
-
-
-