org.malai.action.library
Class PositionAction

java.lang.Object
  extended by org.malai.action.Action
      extended by org.malai.action.library.PositionAction
Direct Known Subclasses:
SetWidgetPosition, Zoom

public abstract class PositionAction
extends Action

Defines an abstract action that move an object to the given position.

This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN

Malai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

12/20/2010

Since:
0.2
Version:
0.2
Author:
Arnaud BLOUIN

Nested Class Summary
 
Nested classes/interfaces inherited from class org.malai.action.Action
Action.ActionStatus
 
Field Summary
protected  double px
          The X-coordinate of the location to zoom.
protected  double py
          The Y-coordinate of the location to zoom.
 
Fields inherited from class org.malai.action.Action
status
 
Constructor Summary
PositionAction()
          Creates the action.
 
Method Summary
 boolean canDo()
           
 void setPx(double px)
           
 void setPy(double py)
           
 
Methods inherited from class org.malai.action.Action
abort, cancelledBy, doActionBody, doIt, done, flush, getStatus, hadEffect, isDone, isRegisterable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

px

protected double px
The X-coordinate of the location to zoom.


py

protected double py
The Y-coordinate of the location to zoom.

Constructor Detail

PositionAction

public PositionAction()
Creates the action.

Method Detail

canDo

public boolean canDo()
Specified by:
canDo in class Action
Returns:
True if the action can be executed.

setPx

public void setPx(double px)
Parameters:
px - The x-coordinate to set.
Since:
0.2

setPy

public void setPy(double py)
Parameters:
py - The y-coordinate to set.
Since:
0.2