|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scilab.forge.scirenderer.examples.RotatableSprite.RotatableSpriteDrawer
public static class RotatableSprite.RotatableSpriteDrawer
A rotatable sprite drawer. Draws one rotating sprite for each existing sprite anchor position value.
| Constructor Summary | |
|---|---|
RotatableSprite.RotatableSpriteDrawer(Canvas canvas)
Constructor. |
|
| Method Summary | |
|---|---|
void |
draw(DrawingTools drawingTools)
Ask this drawer to draw with the given drawing tools. |
TextureDrawer |
getSpriteDrawer()
Returns the anchor sprite drawer. |
TextureDrawer |
getTextDrawer(int textSpriteIndex)
Returns the sprite drawer associated to a particular text sprite. |
void |
switchRotationDirection()
Switches the rotation direction. |
void |
toggleAnchorDisplay()
Toggles display of the anchors. |
void |
toggleMessageDisplay()
Toggles display of the help message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RotatableSprite.RotatableSpriteDrawer(Canvas canvas)
canvas - the canvas to use.| Method Detail |
|---|
public void draw(DrawingTools drawingTools)
Drawer
draw in interface DrawerdrawingTools - the givens drawing tools.public TextureDrawer getSpriteDrawer()
public TextureDrawer getTextDrawer(int textSpriteIndex)
textSpriteIndex - the sprite index.
public void toggleAnchorDisplay()
public void switchRotationDirection()
public void toggleMessageDisplay()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||