public class RulerDrawer
extends java.lang.Object
| Constructor and Description |
|---|
RulerDrawer(TextureManager textureManager)
Ruler drawer constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disposeResources()
Dispose all used resources.
|
RulerDrawingResult |
draw(DrawingTools drawingTools,
RulerModel model)
Ruler drawing method.
|
void |
setSpriteFactory(RulerSpriteFactory spriteFactory)
Set the current
RulerSpriteFactory. |
public RulerDrawer(TextureManager textureManager)
textureManager - the TextureManager of the canvas where the ruler will be drawn.public RulerDrawingResult draw(DrawingTools drawingTools, RulerModel model)
drawingTools - the DrawingTools of the canvas where the ruler will be drawn.model - the RulerModel of the drawn ruler.RulerDrawingResult give information about how the ruler have been drawn.public void setSpriteFactory(RulerSpriteFactory spriteFactory)
RulerSpriteFactory.
All existing sprite will be cleared.
This ruler drawer will use the new RulerSpriteFactory.spriteFactory - the new RulerSpriteFactory.public void disposeResources()