|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<S>
com.sencha.gxt.chart.client.draw.sprite.SpriteList<S>
S - the type of Sprite this composite containspublic class SpriteList<S extends Sprite>
Handles a group of sprites with common methods to a sprite. These methods are applied to the set of sprites added to the group.
| Constructor Summary | |
|---|---|
SpriteList()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.util.AbstractList |
|---|
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public SpriteList()
| Method Detail |
|---|
public void add(int index,
S sprite)
add in interface List<S extends Sprite>add in class AbstractList<S extends Sprite>public boolean add(S sprite)
add in interface Collection<S extends Sprite>add in interface List<S extends Sprite>add in class AbstractList<S extends Sprite>public void clear()
clear in interface Collection<S extends Sprite>clear in interface List<S extends Sprite>clear in class AbstractList<S extends Sprite>public S get(int index)
get in interface List<S extends Sprite>get in class AbstractList<S extends Sprite>public PreciseRectangle getBBox()
public Surface getSurface()
public void hide()
public S remove(int index)
remove in interface List<S extends Sprite>remove in class AbstractList<S extends Sprite>
public S set(int index,
S element)
set in interface List<S extends Sprite>set in class AbstractList<S extends Sprite>public void setSurface(Surface surface)
surface - the surface that the composite is attachedpublic void show()
public int size()
size in interface Collection<S extends Sprite>size in interface List<S extends Sprite>size in class AbstractCollection<S extends Sprite>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||