com.brusoftware.plot4j
Class Graph

java.lang.Object
  extended by com.brusoftware.plot4j.Graph
Direct Known Subclasses:
FunctionGraph, RawGraph

public class Graph
extends java.lang.Object

This class represents a graph on a Cartesian plane.

Version:
0.1
Author:
Alessandro Brunelli

Method Summary
 java.awt.Color getGraphColor()
          Returns the color of this Graph.
 Point[] getPoints()
          Returns the interpolation points of this Graph.
 void setGraphColor(java.awt.Color c)
          Sets the color of this Graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setGraphColor

public void setGraphColor(java.awt.Color c)
Sets the color of this Graph.

Parameters:
c - the color of this Graph

getGraphColor

public java.awt.Color getGraphColor()
Returns the color of this Graph.

Returns:
the color of this Graph

getPoints

public Point[] getPoints()
Returns the interpolation points of this Graph.
The interpolation points are points of the function used to visualize it, linking them two by two through a segment.
More points correspond to more precision.

Returns:
the interpolation points of this Graph