|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphics.grapher.DataSet
public class DataSet
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 (affineTransform 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.
Field Summary | |
---|---|
GraphComponent |
g2d
Public Variables |
static int |
LINE
|
java.awt.Color |
linecolor
|
int |
marker
|
java.awt.Color |
markercolor
|
double |
markerscale
|
static int |
NOLINE
Public Static Values |
Axis |
xaxis
|
double |
xmax
|
double |
xmin
|
Axis |
yaxis
|
double |
ymax
|
double |
ymin
|
Constructor Summary | |
---|---|
DataSet()
Constructors |
|
DataSet(double[] d,
int n)
|
Method Summary | |
---|---|
void |
append(double[] d,
int n)
Public Methods |
int |
dataPoints()
|
void |
delete(int start,
int end)
|
void |
draw_data(java.awt.Graphics g,
java.awt.Rectangle bounds)
|
double[] |
getClosestPoint(double x,
double y)
|
int |
getLinestyle()
|
double[] |
getPoint(int index)
|
double |
getXmax()
|
double |
getXmin()
|
double |
getYmax()
|
double |
getYmin()
|
void |
legend(double x,
double y,
java.lang.String text)
|
void |
legend(int x,
int y,
java.lang.String text)
|
void |
legendColor(java.awt.Color c)
|
void |
legendFont(java.awt.Font f)
|
void |
setLinestyle(int linestyle)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOLINE
public static final int LINE
public GraphComponent g2d
public java.awt.Color linecolor
public int marker
public java.awt.Color markercolor
public double markerscale
public Axis xaxis
public Axis yaxis
public double xmax
public double xmin
public double ymax
public double ymin
Constructor Detail |
---|
public DataSet()
public DataSet(double[] d, int n) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void append(double[] d, int n) throws java.lang.Exception
java.lang.Exception
public void delete(int start, int end)
public void draw_data(java.awt.Graphics g, java.awt.Rectangle bounds)
public double getXmax()
public double getXmin()
public double getYmax()
public double getYmin()
public void legend(int x, int y, java.lang.String text)
public void legend(double x, double y, java.lang.String text)
public void legendFont(java.awt.Font f)
public void legendColor(java.awt.Color c)
public int dataPoints()
public double[] getPoint(int index)
public double[] getClosestPoint(double x, double y)
public int getLinestyle()
public void setLinestyle(int linestyle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |