| Constructor and Description |
|---|
DomSurface() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSprite(Sprite sprite)
Deletes the given sprite from the surface.
|
void |
setId(Sprite sprite,
String id)
Assigns an ID to be set in the sprite's dom element once it has been created.
|
add, addGradient, clear, create, create, draw, getBBox, getComponent, getHeight, getSprites, getSurfaceElement, getWidth, renderSprite, setBackground, setCursor, setHeight, setViewBox, setWidthpublic void setId(Sprite sprite, String id)
sprite - the spriteid - the id to set.Element.setId(String)public void deleteSprite(Sprite sprite)
SurfacedeleteSprite in class Surfacesprite - the sprite to be deletedCopyright © 2014. All Rights Reserved.