com.sencha.gxt.chart.client.draw
Class Translation

java.lang.Object
  extended by com.sencha.gxt.chart.client.draw.Translation
Direct Known Subclasses:
Rotation, Scaling

public class Translation
extends Object

Represents a two dimensional translation.


Constructor Summary
Translation()
          Creates a zeroed out translation.
Translation(double x, double y)
          Creates a translation using the given x and y values.
Translation(Translation translation)
          Creates a copy of the given translation.
 
Method Summary
 double getX()
          Returns the translation on the x axis.
 double getY()
          Returns the translation on the y axis.
 void setX(double x)
          Sets the translation on the x axis.
 void setY(double y)
          Sets the translation on the y axis.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Translation

public Translation()
Creates a zeroed out translation.


Translation

public Translation(double x,
                   double y)
Creates a translation using the given x and y values.

Parameters:
x - translation on the x axis
y - translation on the y axis

Translation

public Translation(Translation translation)
Creates a copy of the given translation.

Parameters:
translation - the translation to be copied
Method Detail

getX

public double getX()
Returns the translation on the x axis.

Returns:
the translation on the x axis

getY

public double getY()
Returns the translation on the y axis.

Returns:
the translation on the y axis

setX

public void setX(double x)
Sets the translation on the x axis.

Parameters:
x - the translation on the x axis

setY

public void setY(double y)
Sets the translation on the y axis.

Parameters:
y - the translation on the y axis

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.