All Packages Class Hierarchy This Package Previous Next Index
Class grapher.DataSet
java.lang.Object
|
+----grapher.DataSet
- public class DataSet
- extends java.lang.Object
Class DataSet
Version 1.0 October 1995
Version 1.1 December 1995
Copyright (C) 1995, 1996 Leigh Brookshaw
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
This class is designed to be used in conjunction with
the Graph2D class and Axis class for plotting 2D graphs.
-
data
-
-
dxmax
- Protected Variables
-
dxmin
- Protected Variables
-
dymax
- Protected Variables
-
dymin
- Protected Variables
-
g2d
- Public Variables
-
increment
-
-
legend_dx
-
-
legend_dy
-
-
legend_ix
-
-
legend_iy
-
-
legend_length
-
-
legend_text
-
-
length
-
-
LINE
-
-
linecolor
-
-
linestyle
-
-
marker
-
-
markercolor
-
-
markerscale
-
-
NOLINE
- Public Static Values
-
xaxis
-
-
xmax
-
-
xmin
-
-
xrange
-
-
yaxis
-
-
ymax
-
-
ymin
-
-
yrange
-
-
DataSet()
- Constructors
-
DataSet(double[], int)
-
-
append(double[], int)
- Public Methods
-
dataPoints()
-
-
delete(int, int)
-
-
draw_data(Graphics, Rectangle)
-
-
draw_legend(Graphics, Rectangle)
-
-
draw_lines(Graphics, Rectangle)
- Protected Methods
-
draw_markers(Graphics, Rectangle)
-
-
getClosestPoint(double, double)
-
-
getPoint(int)
-
-
getXmax()
-
-
getXmin()
-
-
getYmax()
-
-
getYmin()
-
-
inside(double, double)
-
-
legend(double, double, String)
-
-
legend(int, int, String)
-
-
legendColor(Color)
-
-
legendFont(Font)
-
-
range()
-
-
stroke_marker(Vector, Graphics, int, int)
-
NOLINE
public static final int NOLINE
- Public Static Values
LINE
public static final int LINE
g2d
public grapher.Graph2D g2d
- Public Variables
linestyle
public int linestyle
linecolor
public java.awt.Color linecolor
marker
public int marker
markercolor
public java.awt.Color markercolor
markerscale
public double markerscale
xaxis
public grapher.Axis xaxis
yaxis
public grapher.Axis yaxis
xmax
public double xmax
xmin
public double xmin
ymax
public double ymax
ymin
public double ymin
legend_length
int legend_length
legend_text
grapher.TextLine legend_text
legend_ix
int legend_ix
legend_iy
int legend_iy
legend_dx
double legend_dx
legend_dy
double legend_dy
increment
int increment
dxmax
protected double dxmax
- Protected Variables
dxmin
protected double dxmin
- Protected Variables
dymax
protected double dymax
- Protected Variables
dymin
protected double dymin
- Protected Variables
data
protected double data[]
length
protected int length
xrange
protected double xrange
yrange
protected double yrange
DataSet
public DataSet()
- Constructors
DataSet
public DataSet(double d[],
int n) throws java.lang.Exception
append
public void append(double d[],
int n) throws java.lang.Exception
- Public Methods
delete
public void delete(int start,
int end)
draw_data
public void draw_data(java.awt.Graphics g,
java.awt.Rectangle bounds)
getXmax
public double getXmax()
getXmin
public double getXmin()
getYmax
public double getYmax()
getYmin
public double getYmin()
legend
public void legend(int x,
int y,
java.lang.String text)
legend
public void legend(double x,
double y,
java.lang.String text)
legendFont
public void legendFont(java.awt.Font f)
legendColor
public void legendColor(java.awt.Color c)
dataPoints
public int dataPoints()
getPoint
public double[] getPoint(int index)
getClosestPoint
public double[] getClosestPoint(double x,
double y)
draw_lines
protected void draw_lines(java.awt.Graphics g,
java.awt.Rectangle w)
- Protected Methods
inside
protected boolean inside(double x,
double y)
draw_markers
protected void draw_markers(java.awt.Graphics g,
java.awt.Rectangle w)
stroke_marker
protected void stroke_marker(java.util.Vector m,
java.awt.Graphics g,
int x,
int y)
draw_legend
protected void draw_legend(java.awt.Graphics g,
java.awt.Rectangle w)
range
protected void range()
All Packages Class Hierarchy This Package Previous Next Index