App
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
appcore
src
mhr
appcore
commands
toolcommands
DrawToCommand.java
Go to the documentation of this file.
1
package
mhr.appcore.commands.toolcommands;
2
3
import
mhr.appcore.AppCore;
4
import
mhr.appcore.commands.AppCommand;
5
import
mhr.appcore.tools.actiondata.BrushLikeToolActionData;
6
import
mhr.appcore.tools.actiondata.BrushLikeToolActionData.Action;
7
15
public
class
DrawToCommand
extends
AppCommand
{
16
17
BrushLikeToolActionData
data;
18
24
public
DrawToCommand
(
int
x,
int
y) {
25
data =
new
BrushLikeToolActionData
(
Action
.
DRAW_TO
, x, y);
26
}
27
28
@Override
29
public
void
action
(
AppCore
target) {
30
target.
getTool
().
applyTo
(target.
getImg
(), data);
31
target.
getRenderer
().
render
();
// Optimalizovat, jake se bude volat renderovani, rozhoduje o tom RenderingTask
32
}
33
34
}
Generated on Thu May 23 2013 22:10:55 for App by
1.8.3