jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.clustering.util
Class Util.StringScatterPlot

Object
  extended by com.chemaxon.clustering.util.Util.StringScatterPlot
Enclosing class:
Util

public static class Util.StringScatterPlot
extends Object

ASCII scatter plot.


Constructor Summary
Util.StringScatterPlot()
          Construct an empty scatter plot.
 
Method Summary
 void addDataPoint(double x, double y)
          Add new point to put.
 String toString(int cols, int rows, boolean xlabels, boolean ylabels)
          Create a multiline representation of the given plot.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util.StringScatterPlot

public Util.StringScatterPlot()
Construct an empty scatter plot.

Method Detail

addDataPoint

public void addDataPoint(double x,
                         double y)
Add new point to put.

Parameters:
x - X coordinate of the point to add
y - Y coordinate of the point to add

toString

public String toString(int cols,
                       int rows,
                       boolean xlabels,
                       boolean ylabels)
Create a multiline representation of the given plot.

Parameters:
cols - Character columns occupied
rows - Rows occupied
xlabels - Show min/max X axis values (occupies bottom row)
ylabels - Shpw min/max Y axis values (occupies
Returns:
A String representation of the chart

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)