Summ:  Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Base
Class ChartTransform

java.lang.Object com.artfulbits.aiCharts.Base.ChartTransform

Declaration: public abstract class ChartTransform extends Object

 

Provides methods to transform chart coordinates to screen coordinates and back.

 

Since: 1.0

 

 

Constructors Summary
ChartTransform()
    

 

 

Methods Summary
static ChartTransform create(ChartArea area)
    
Creates default transform for area for current coordinate system and default axes.
static ChartTransform create(ChartSeries series)
    
Creates default transform for series by current area.
static ChartTransform create(int system, XYRect bounds, ChartAxis xAxis, ChartAxis yAxis)
    
Creates default transform by specified coordinate system.
abstract void getPoint(double x, double y, XYPoint outPoint)
    
Transforms chart coordinates to screen coordinates.
abstract double getX(float x, float y)
    
Computes X coordinate of specified point.
abstract double getY(float x, float y)
    
Computes Y coordinate of specified point.

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

 

 

 

ChartTransform

 

public ChartTransform( )

 

 

 

 

getPoint

 

public abstract void getPoint( double x,
double y,
XYPoint outPoint)

 

Transforms chart coordinates to screen coordinates.

 

Parameters:
x-
X coordinate
y-
Y coordinate
outPoint-
result of transformation.

 

 

 

getX

 

public abstract double getX( float x,
float y)

 

Computes X coordinate of specified point.

 

Parameters:
x-
x coordinate of point
y-
y coordinate of point
Returns:
X coordinate.

 

 

 

getY

 

public abstract double getY( float x,
float y)

 

Computes Y coordinate of specified point.

 

Parameters:
x-
x coordinate of point
y-
y coordinate of point
Returns:
Y coordinate.

 

 

 

create

 

public static ChartTransform create( ChartArea area)

 

Creates default transform for area for current coordinate system and default axes.

 

Parameters:
area-
instance of target ChartArea.
Returns:
instance of transform for this area.

 

Since: 1.0

 

 

 

create

 

public static ChartTransform create( ChartSeries series)

 

Creates default transform for series by current area.

 

Parameters:
series-
ChartSeries instance.
Returns:
ChartTransform instance

 

Since: 1.0

 

 

 

create

 

public static ChartTransform create( int system,
XYRect bounds,
ChartAxis xAxis,
ChartAxis yAxis)

 

Creates default transform by specified coordinate system.

 

Parameters:
system-
coordinate system.
bounds-
bounding rectangle.
xAxis-
X axis.
yAxis-
Y axis.
Returns:
instance of ChartTransform.

 

Since: 1.0

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.