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

java.lang.Object
  extended by com.sencha.gxt.chart.client.draw.Translation
      extended by com.sencha.gxt.chart.client.draw.Rotation

public class Rotation
extends Translation

Represents a two dimensional rotation.


Constructor Summary
Rotation()
          Creates a zeroed out rotation.
Rotation(double degrees)
          Creates a rotation using the given degrees.
Rotation(double x, double y, double degrees)
          Creates a rotation using the given axis and degrees.
Rotation(Rotation rotation)
          Creates a copy of the given rotation.
 
Method Summary
 double getDegrees()
          Returns the degree of rotation.
 void setDegrees(double degrees)
          Sets the degree of rotation.
 
Methods inherited from class com.sencha.gxt.chart.client.draw.Translation
getX, getY, setX, setY, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rotation

public Rotation()
Creates a zeroed out rotation.


Rotation

public Rotation(double degrees)
Creates a rotation using the given degrees.

Parameters:
degrees - the degree of rotation

Rotation

public Rotation(double x,
                double y,
                double degrees)
Creates a rotation using the given axis and degrees.

Parameters:
x - the x-coordinate of the axis of rotation
y - the y-coordinate of the axis of rotation
degrees - the degree of rotation

Rotation

public Rotation(Rotation rotation)
Creates a copy of the given rotation.

Parameters:
rotation - the rotation to be copied
Method Detail

getDegrees

public double getDegrees()
Returns the degree of rotation.

Returns:
the degree of rotation

setDegrees

public void setDegrees(double degrees)
Sets the degree of rotation.

Parameters:
degrees - the degree of rotation


Copyright © 2011. All Rights Reserved.