S
- the type of Sprite
this composite containspublic class SpriteList<S extends Sprite> extends AbstractList<S>
Constructor and Description |
---|
SpriteList() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
S sprite) |
boolean |
add(S sprite) |
void |
clear()
Clears all items from the composite and removes them their surface.
|
S |
get(int index) |
PreciseRectangle |
getBBox()
Returns the calculated bounding box of all sprites contained in the
composite.
|
Surface |
getSurface()
Returns the surface that the composite is attached.
|
void |
hide()
Hides all the sprites contained in the composite.
|
S |
remove(int index) |
S |
set(int index,
S element) |
void |
setSurface(Surface surface)
Sets the surface that the composite is attached.
|
void |
show()
Shows all of the sprites contained in the composite.
|
int |
size() |
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
public void add(int index, S sprite)
public boolean add(S sprite)
public void clear()
public S get(int index)
public PreciseRectangle getBBox()
public Surface getSurface()
public void hide()
public S remove(int index)
public void setSurface(Surface surface)
surface
- the surface that the composite is attachedpublic void show()
Copyright © 2015. All rights reserved.