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.


Variable Index

 o data
 o dxmax
Protected Variables
 o dxmin
Protected Variables
 o dymax
Protected Variables
 o dymin
Protected Variables
 o g2d
Public Variables
 o increment
 o legend_dx
 o legend_dy
 o legend_ix
 o legend_iy
 o legend_length
 o legend_text
 o length
 o LINE
 o linecolor
 o linestyle
 o marker
 o markercolor
 o markerscale
 o NOLINE
Public Static Values
 o xaxis
 o xmax
 o xmin
 o xrange
 o yaxis
 o ymax
 o ymin
 o yrange

Constructor Index

 o DataSet()
Constructors
 o DataSet(double[], int)

Method Index

 o append(double[], int)
Public Methods
 o dataPoints()
 o delete(int, int)
 o draw_data(Graphics, Rectangle)
 o draw_legend(Graphics, Rectangle)
 o draw_lines(Graphics, Rectangle)
Protected Methods
 o draw_markers(Graphics, Rectangle)
 o getClosestPoint(double, double)
 o getPoint(int)
 o getXmax()
 o getXmin()
 o getYmax()
 o getYmin()
 o inside(double, double)
 o legend(double, double, String)
 o legend(int, int, String)
 o legendColor(Color)
 o legendFont(Font)
 o range()
 o stroke_marker(Vector, Graphics, int, int)

Variables

 o NOLINE
 public static final int NOLINE
Public Static Values

 o LINE
 public static final int LINE
 o g2d
 public grapher.Graph2D g2d
Public Variables

 o linestyle
 public int linestyle
 o linecolor
 public java.awt.Color linecolor
 o marker
 public int marker
 o markercolor
 public java.awt.Color markercolor
 o markerscale
 public double markerscale
 o xaxis
 public grapher.Axis xaxis
 o yaxis
 public grapher.Axis yaxis
 o xmax
 public double xmax
 o xmin
 public double xmin
 o ymax
 public double ymax
 o ymin
 public double ymin
 o legend_length
 int legend_length
 o legend_text
 grapher.TextLine legend_text
 o legend_ix
 int legend_ix
 o legend_iy
 int legend_iy
 o legend_dx
 double legend_dx
 o legend_dy
 double legend_dy
 o increment
 int increment
 o dxmax
 protected double dxmax
Protected Variables

 o dxmin
 protected double dxmin
Protected Variables

 o dymax
 protected double dymax
Protected Variables

 o dymin
 protected double dymin
Protected Variables

 o data
 protected double data[]
 o length
 protected int length
 o xrange
 protected double xrange
 o yrange
 protected double yrange

Constructors

 o DataSet
 public DataSet()
Constructors

 o DataSet
 public DataSet(double d[],
                int n) throws java.lang.Exception

Methods

 o append
 public void append(double d[],
                    int n) throws java.lang.Exception
Public Methods

 o delete
 public void delete(int start,
                    int end)
 o draw_data
 public void draw_data(java.awt.Graphics g,
                       java.awt.Rectangle bounds)
 o getXmax
 public double getXmax()
 o getXmin
 public double getXmin()
 o getYmax
 public double getYmax()
 o getYmin
 public double getYmin()
 o legend
 public void legend(int x,
                    int y,
                    java.lang.String text)
 o legend
 public void legend(double x,
                    double y,
                    java.lang.String text)
 o legendFont
 public void legendFont(java.awt.Font f)
 o legendColor
 public void legendColor(java.awt.Color c)
 o dataPoints
 public int dataPoints()
 o getPoint
 public double[] getPoint(int index)
 o getClosestPoint
 public double[] getClosestPoint(double x,
                                 double y)
 o draw_lines
 protected void draw_lines(java.awt.Graphics g,
                           java.awt.Rectangle w)
Protected Methods

 o inside
 protected boolean inside(double x,
                          double y)
 o draw_markers
 protected void draw_markers(java.awt.Graphics g,
                             java.awt.Rectangle w)
 o stroke_marker
 protected void stroke_marker(java.util.Vector m,
                              java.awt.Graphics g,
                              int x,
                              int y)
 o draw_legend
 protected void draw_legend(java.awt.Graphics g,
                            java.awt.Rectangle w)
 o range
 protected void range()

All Packages  Class Hierarchy  This Package  Previous  Next  Index