Constructor and Description |
---|
LayerListOrganizer(List<ElementType> list) |
Modifier and Type | Method and Description |
---|---|
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
|
public LayerListOrganizer(List<ElementType> list)
public boolean moveToTop(ElementType element)
Layerable
moveToTop
in interface Layerable<ElementType>
public boolean moveAbove(ElementType objectToMove, ElementType reference)
Layerable
moveAbove
in interface Layerable<ElementType>
public boolean moveBeneath(ElementType objectToMove, ElementType reference)
Layerable
moveBeneath
in interface Layerable<ElementType>
public boolean moveToBottom(ElementType key)
Layerable
moveToBottom
in interface Layerable<ElementType>
public boolean moveUp(ElementType key)
Layerable
moveUp
in interface Layerable<ElementType>
public boolean moveDown(ElementType key)
Layerable
moveDown
in interface Layerable<ElementType>
public List<ElementType> elements()
elements
in interface Layerable<ElementType>
public void addToBottom(ElementType element)
public void addToTop(ElementType element)