net.moioli.chart
Interface ChartI

All Known Implementing Classes:
AbstractChart, DefaultChart

public interface ChartI

Author:
silvio

Method Summary
 boolean add(java.lang.Object arg0)
           
 void drawMe(GraphicsI g, IntRectangle clip)
          Draws this DefaultChart on the passed GraphicsI surface.
 double getMaxX()
          Returns the maximum x value represented.
 double getMaxY()
          Returns the maximum y value represented.
 double getMinX()
          Returns the minimum x value represented.
 double getMinY()
          Returns the minimum y value represented.
 int getPixelAccuracy()
          Returns the pixelAccuracy value.
 void setMaxX(double maxX)
          Returns the maximum x value represented.
 void setMaxY(double maxY)
          The maximum y value to be represented.
 void setMinX(double minX)
          The minimum x value to be represented.
 void setMinY(double minY)
          The minimum y value represented.
 void setPixelAccuracy(int pixelAccuracy)
          The pixelAccuracy to set.
 

Method Detail

drawMe

void drawMe(GraphicsI g,
            IntRectangle clip)
Draws this DefaultChart on the passed GraphicsI surface.

Parameters:
g - the surface where this DefaultChart will be drawn
clip - the clipping rectangle to be used for drawing

getMaxX

double getMaxX()
Returns the maximum x value represented.

Returns:
Returns the maximum x value represented.

setMaxX

void setMaxX(double maxX)
Returns the maximum x value represented.

Parameters:
maxX - The maximum x value represented.

getMinX

double getMinX()
Returns the minimum x value represented.

Returns:
Returns the minimum x value represented.

setMinX

void setMinX(double minX)
The minimum x value to be represented.

Parameters:
minX - The minimum x value represented.

getMaxY

double getMaxY()
Returns the maximum y value represented.

Returns:
Returns the maximum y value represented.

setMaxY

void setMaxY(double maxY)
The maximum y value to be represented.

Parameters:
maxY - The maximum y value represented.

getMinY

double getMinY()
Returns the minimum y value represented.

Returns:
Returns the minimum y value represented.

setMinY

void setMinY(double minY)
The minimum y value represented.

Parameters:
minY - The minimum y value represented.

getPixelAccuracy

int getPixelAccuracy()
Returns the pixelAccuracy value. To draw mathematical functions, DefaultChart will calculate the value of the function multiple times. This parameter assigns the the number of pixels on the x axis after which the y value will be recalculated. 1 is the minimum possible value (maximum precision), 3 is recommended in most cases.

Returns:
pixelAccuracy

setPixelAccuracy

void setPixelAccuracy(int pixelAccuracy)
The pixelAccuracy to set. To draw mathematical functions, DefaultChart will calculate the value of the function multiple times. This parameter assigns the the number of pixels on the x axis after which the y value will be recalculated. 1 is the minimum possible value (maximum precision), 3 is recommended in most cases.

Parameters:
pixelAccuracy -

add

boolean add(java.lang.Object arg0)
See Also:
Collection.add(Object arg0)