Package | Description |
---|---|
org.graphstream.ui.spriteManager |
Modifier and Type | Method and Description |
---|---|
<T extends Sprite> |
SpriteManager.addSprite(java.lang.String identifier,
java.lang.Class<T> spriteClass)
Add a sprite of a given subclass of Sprite with the given identifier.
|
<T extends Sprite> |
SpriteManager.addSprite(java.lang.String identifier,
java.lang.Class<T> spriteClass,
Values position)
Same as
SpriteManager.addSprite(String, Class) but also allows to specify an
initial position. |
Modifier and Type | Method and Description |
---|---|
Sprite |
SpriteManager.addSprite(java.lang.String identifier)
Add a sprite with the given identifier.
|
Sprite |
SpriteManager.getSprite(java.lang.String identifier)
Sprite corresponding to the given identifier or null if no sprite is
associated with the given identifier.
|
Sprite |
SpriteFactory.newSprite(java.lang.String identifier,
SpriteManager manager,
Values position)
Create a new sprite for the given manager with the given identifier.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Sprite> |
SpriteManager.iterator()
Iterator on the set of sprites.
|
java.util.Iterator<? extends Sprite> |
SpriteManager.spriteIterator()
Iterator on the set of sprites.
|
java.lang.Iterable<? extends Sprite> |
SpriteManager.sprites()
Iterable set of sprites in no particular order.
|