All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class grapher.Contour

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----grapher.Graph2D
                           |
                           +----grapher.G2Dint
                                   |
                                   +----grapher.Contour

public class Contour
extends grapher.G2Dint
Class Contour Version 1.0 February 1995 Copyright (C) 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 extends the interactive graphics class to incorporate contours.


Variable Index

 o autoLabels
 o autoLevels
 o curves
 o drawlabels
 o grid
 o gridLimits
 o labelcolor
 o labelfont
 o labelLevels
 o labels
 o level_exponent
 o level_start
 o level_step
 o levels
 o logLevels
 o MINCELLS
Constants
 o NLEVELS
 o nx
Protected Variables
 o ny
 o xmax
 o xmin
 o ymax
 o ymin
 o zmax
 o zmin

Constructor Index

 o Contour()
Constructors

Method Index

 o attachCurves()
 o attachCurves(Vector)
 o calcLabels()
 o calcLevels()
Private Methods
 o calculateCurves()
 o detachCurves()
 o detachCurves(Vector)
 o getDim()
 o getGrid()
 o getLevels()
 o getRange()
 o keyDown(Event, int)
 o levelStep()
 o loadGrid(URL)
Methods
 o log10(double)
 o paintFirst(Graphics, Rectangle)
 o paintLast(Graphics, Rectangle)
 o RoundUp(double)
 o setGrid(double[], int, int)
 o setLabelColor(Color)
 o setLabelFont(Font)
 o setLabelLevels(int)
 o setLabels(TextLine[], int)
 o setLevels(double[], int)
 o setLimitsToGrid(boolean)
 o setLogLevels(boolean)
 o setNLevels(int)
 o setRange(double, double, double, double)
 o zrange()

Variables

 o MINCELLS
 static final int MINCELLS
Constants

 o NLEVELS
 static final int NLEVELS
 o nx
 protected int nx
Protected Variables

 o ny
 protected int ny
 o curves
 protected java.util.Vector curves[]
 o autoLevels
 protected boolean autoLevels
 o logLevels
 protected boolean logLevels
 o gridLimits
 protected boolean gridLimits
 o levels
 protected double levels[]
 o labels
 protected grapher.TextLine labels[]
 o labelfont
 protected java.awt.Font labelfont
 o labelcolor
 protected java.awt.Color labelcolor
 o labelLevels
 protected int labelLevels
 o drawlabels
 protected boolean drawlabels
 o autoLabels
 protected boolean autoLabels
 o grid
 protected double grid[]
 o xmin
 protected double xmin
 o xmax
 protected double xmax
 o ymin
 protected double ymin
 o ymax
 protected double ymax
 o zmin
 protected double zmin
 o zmax
 protected double zmax
 o level_start
 private double level_start
 o level_exponent
 private double level_exponent
 o level_step
 private double level_step

Constructors

 o Contour
 public Contour()
Constructors

Methods

 o loadGrid
 public boolean loadGrid(java.net.URL file)
Methods

 o setRange
 public void setRange(double xmin,
                      double xmax,
                      double ymin,
                      double ymax)
 o getRange
 public double[] getRange()
 o getDim
 public int[] getDim()
 o getGrid
 public double[] getGrid()
 o setLevels
 public void setLevels(double levels[],
                       int nl)
 o setLabels
 public void setLabels(grapher.TextLine labels[],
                       int nl)
 o setLabelFont
 public void setLabelFont(java.awt.Font f)
 o setLabelColor
 public void setLabelColor(java.awt.Color c)
 o setGrid
 public void setGrid(double grid[],
                     int nx,
                     int ny)
 o getLevels
 public double[] getLevels()
 o setLimitsToGrid
 public void setLimitsToGrid(boolean b)
 o setLabelLevels
 public void setLabelLevels(int i)
 o setLogLevels
 public void setLogLevels(boolean b)
 o setNLevels
 public void setNLevels(int l)
 o keyDown
 public boolean keyDown(java.awt.Event e,
                        int key)
Overrides:
keyDown in class grapher.G2Dint
 o calcLevels
 private void calcLevels()
Private Methods

 o calcLabels
 private void calcLabels()
 o zrange
 private void zrange()
 o paintFirst
 public void paintFirst(java.awt.Graphics g,
                        java.awt.Rectangle r)
Overrides:
paintFirst in class grapher.Graph2D
 o attachCurves
 private void attachCurves()
 o attachCurves
 private void attachCurves(java.util.Vector v)
 o detachCurves
 private void detachCurves()
 o detachCurves
 private void detachCurves(java.util.Vector v)
 o paintLast
 public void paintLast(java.awt.Graphics g,
                       java.awt.Rectangle rect)
Overrides:
paintLast in class grapher.Graph2D
 o calculateCurves
 protected void calculateCurves()
 o levelStep
 private void levelStep()
 o RoundUp
 private double RoundUp(double val)
 o log10
 private double log10(double a) throws java.lang.ArithmeticException

All Packages  Class Hierarchy  This Package  Previous  Next  Index