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, setWidth
public void setId(Sprite sprite, String id)
sprite
- the spriteid
- the id to set.Element.setId(String)
public void deleteSprite(Sprite sprite)
Surface
deleteSprite
in class Surface
sprite
- the sprite to be deletedCopyright © 2015. All rights reserved.