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

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

public class Scaling
extends Translation

Represents a two dimensional scaling.


Constructor Summary
Scaling()
          Creates a zeroed out scaling
Scaling(double x, double y)
          Creates a scaling at the given x and y scale.
Scaling(double x, double y, double centerX, double centerY)
          Creates a scaling using the given x and y scale and the given origin.
Scaling(Scaling scaling)
          Creates a copy of the given scaling.
 
Method Summary
 double getCenterX()
          Returns the x-coordinate of the origin of the scaling.
 double getCenterY()
          Returns the y-coordinate of the origin of the scaling.
 void setCenterX(double centerX)
          Sets the x-coordinate of the origin of the scaling.
 void setCenterY(double centerY)
          Sets the y-coordinate of the origin of the scaling.
 
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

Scaling

public Scaling()
Creates a zeroed out scaling


Scaling

public Scaling(double x,
               double y)
Creates a scaling at the given x and y scale.

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

Scaling

public Scaling(double x,
               double y,
               double centerX,
               double centerY)
Creates a scaling using the given x and y scale and the given origin.

Parameters:
x - the scale on the x axis
y - the scale on the y axis
centerX - x-coordinate of the origin
centerY - y-coordinate of the origin

Scaling

public Scaling(Scaling scaling)
Creates a copy of the given scaling.

Parameters:
scaling - the scaling to be copied
Method Detail

getCenterX

public double getCenterX()
Returns the x-coordinate of the origin of the scaling.

Returns:
the x-coordinate of the origin of the scaling

getCenterY

public double getCenterY()
Returns the y-coordinate of the origin of the scaling.

Returns:
the y-coordinate of the origin of the scaling

setCenterX

public void setCenterX(double centerX)
Sets the x-coordinate of the origin of the scaling.

Parameters:
centerX - the x-coordinate of the origin of the scaling

setCenterY

public void setCenterY(double centerY)
Sets the y-coordinate of the origin of the scaling.

Parameters:
centerY - the y-coordinate of the origin of the scaling


Copyright © 2011. All Rights Reserved.