public class CardLayer
extends ProxyLayer
Modifier and Type | Field and Description |
---|---|
protected LinkedHashMap2<java.lang.String,Layer> |
cards |
Constructor and Description |
---|
CardLayer(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
add(Layer layer)
Add a layer to the current deck of cards.
|
void |
add(Layer layer,
java.lang.String key) |
void |
first()
Move to the first card in the deck.
|
java.util.List<Layer> |
getLayers()
Returns a copied list of all of the cards.
|
void |
last()
Move to the last card in the deck.
|
void |
next()
Move to the next card in the deck.
|
void |
previous()
Move to the previous card in the deck.
|
void |
remove(Layer layer)
Remove a layer from the current deck of cards.
|
void |
show(java.lang.String name)
Show a specific card via the name.
|
protected final LinkedHashMap2<java.lang.String,Layer> cards
public void add(Layer layer)
layer
- the layer.public void add(Layer layer, java.lang.String key)
public void remove(Layer layer)
layer
- the layer.public void first()
public void last()
public void previous()
public void next()
public void show(java.lang.String name)
name
- the name to show, if the name is not valid, no change is made.public java.util.List<Layer> getLayers()