public static class RotatableSprite.RotatableSpriteDrawer extends java.lang.Object implements Drawer
Constructor and Description |
---|
RotatableSprite.RotatableSpriteDrawer(Canvas canvas)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
is2DView() |
void |
switchRotationDirection()
Switches the rotation direction.
|
void |
toggleAnchorDisplay()
Toggles display of the anchors.
|
void |
toggleMessageDisplay()
Toggles display of the help message.
|
public RotatableSprite.RotatableSpriteDrawer(Canvas canvas)
canvas
- the canvas to use.public void draw(DrawingTools drawingTools)
Drawer
public boolean is2DView()
public TextureDrawer getSpriteDrawer()
public TextureDrawer getTextDrawer(int textSpriteIndex)
textSpriteIndex
- the sprite index.public void toggleAnchorDisplay()
public void switchRotationDirection()
public void toggleMessageDisplay()