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.
-
autoLabels
-
-
autoLevels
-
-
curves
-
-
drawlabels
-
-
grid
-
-
gridLimits
-
-
labelcolor
-
-
labelfont
-
-
labelLevels
-
-
labels
-
-
level_exponent
-
-
level_start
-
-
level_step
-
-
levels
-
-
logLevels
-
-
MINCELLS
-
Constants
-
NLEVELS
-
-
nx
-
Protected Variables
-
ny
-
-
xmax
-
-
xmin
-
-
ymax
-
-
ymin
-
-
zmax
-
-
zmin
-
-
Contour()
-
Constructors
-
attachCurves()
-
-
attachCurves(Vector)
-
-
calcLabels()
-
-
calcLevels()
-
Private Methods
-
calculateCurves()
-
-
detachCurves()
-
-
detachCurves(Vector)
-
-
getDim()
-
-
getGrid()
-
-
getLevels()
-
-
getRange()
-
-
keyDown(Event, int)
-
-
levelStep()
-
-
loadGrid(URL)
-
Methods
-
log10(double)
-
-
paintFirst(Graphics, Rectangle)
-
-
paintLast(Graphics, Rectangle)
-
-
RoundUp(double)
-
-
setGrid(double[], int, int)
-
-
setLabelColor(Color)
-
-
setLabelFont(Font)
-
-
setLabelLevels(int)
-
-
setLabels(TextLine[], int)
-
-
setLevels(double[], int)
-
-
setLimitsToGrid(boolean)
-
-
setLogLevels(boolean)
-
-
setNLevels(int)
-
-
setRange(double, double, double, double)
-
-
zrange()
-
MINCELLS
static final int MINCELLS
- Constants
NLEVELS
static final int NLEVELS
nx
protected int nx
- Protected Variables
ny
protected int ny
curves
protected java.util.Vector curves[]
autoLevels
protected boolean autoLevels
logLevels
protected boolean logLevels
gridLimits
protected boolean gridLimits
levels
protected double levels[]
labels
protected grapher.TextLine labels[]
labelfont
protected java.awt.Font labelfont
labelcolor
protected java.awt.Color labelcolor
labelLevels
protected int labelLevels
drawlabels
protected boolean drawlabels
autoLabels
protected boolean autoLabels
grid
protected double grid[]
xmin
protected double xmin
xmax
protected double xmax
ymin
protected double ymin
ymax
protected double ymax
zmin
protected double zmin
zmax
protected double zmax
level_start
private double level_start
level_exponent
private double level_exponent
level_step
private double level_step
Contour
public Contour()
- Constructors
loadGrid
public boolean loadGrid(java.net.URL file)
- Methods
setRange
public void setRange(double xmin,
double xmax,
double ymin,
double ymax)
getRange
public double[] getRange()
getDim
public int[] getDim()
getGrid
public double[] getGrid()
setLevels
public void setLevels(double levels[],
int nl)
setLabels
public void setLabels(grapher.TextLine labels[],
int nl)
setLabelFont
public void setLabelFont(java.awt.Font f)
setLabelColor
public void setLabelColor(java.awt.Color c)
setGrid
public void setGrid(double grid[],
int nx,
int ny)
getLevels
public double[] getLevels()
setLimitsToGrid
public void setLimitsToGrid(boolean b)
setLabelLevels
public void setLabelLevels(int i)
setLogLevels
public void setLogLevels(boolean b)
setNLevels
public void setNLevels(int l)
keyDown
public boolean keyDown(java.awt.Event e,
int key)
- Overrides:
- keyDown in class grapher.G2Dint
calcLevels
private void calcLevels()
- Private Methods
calcLabels
private void calcLabels()
zrange
private void zrange()
paintFirst
public void paintFirst(java.awt.Graphics g,
java.awt.Rectangle r)
- Overrides:
- paintFirst in class grapher.Graph2D
attachCurves
private void attachCurves()
attachCurves
private void attachCurves(java.util.Vector v)
detachCurves
private void detachCurves()
detachCurves
private void detachCurves(java.util.Vector v)
paintLast
public void paintLast(java.awt.Graphics g,
java.awt.Rectangle rect)
- Overrides:
- paintLast in class grapher.Graph2D
calculateCurves
protected void calculateCurves()
levelStep
private void levelStep()
RoundUp
private double RoundUp(double val)
log10
private double log10(double a) throws java.lang.ArithmeticException
All Packages Class Hierarchy This Package Previous Next Index