public class Grid
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
doWarnings |
double[] |
itsGrid |
double |
Origin |
float |
roundingFactor |
Constructor and Description |
---|
Grid()
standard constructor for the Grid class with maximum values provided
|
Grid(double high)
standard constructor for the Grid class with maximum values provided
|
Grid(double low,
double high)
standard constructor for the Grid class with minimum and maximum values provided
|
Grid(double lowVal,
double highVal,
double gridIntSize)
standard constructor for the Grid class with minimum and maximum values provided
|
Grid(double lowVal,
double highVal,
float roundFac)
standard constructor for the Grid class with minimum and maximum values provided
|
Grid(double lowVal,
double highVal,
float roundFac,
boolean forceLowerZero)
standard constructor for the Grid class with minimum and maximum values provided
|
Grid(double lowVal,
double highVal,
float roundFac,
boolean forceLowerZero,
double gridIntSize)
standard constructor for the Grid class with minimum and maximum values provided
|
Grid(double lowVal,
double highVal,
float roundFac,
double gridIntSize)
standard constructor for the Grid class with minimum and maximum values provided
|
Grid(NumberVariable numVar,
float roundFac)
standard constructor for the Grid class with minimum and maximum values provided
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsZero()
returns whether the space contains the zero value
|
void |
fillGrid()
fills grid with values
|
int |
getAutoNUnits()
automatically finds and sets the number of units in the space
|
boolean |
getDirection()
returns the direction of the Axis
|
double[] |
getGrid()
returns the grid in the dimension
|
double |
getGridInterval()
returns the grid interval for the axis
|
double |
getHigh()
returns the high value
|
double |
getLow()
returns the low value
|
int |
getNUnits()
returns the number of units in the space
|
double |
getOrigin()
returns the origin of the dimension
|
double |
getSpace()
returns the grid space
|
void |
includeZero()
returns whether the space contains the zero value
|
void |
multGridIntervals(int multVal)
increases the number of grid units by a factor
|
void |
setAutoNUnits()
automatically finds and sets the number of units in the space
|
void |
setDirection(boolean Direction)
sets the direction of the Axis
|
void |
setGridInterval(double gridInt)
sets the grid interval for the axis
|
void |
setNUnits(int Units)
sets the number of units in the space
|
void |
setWarnings(boolean warn)
controls whether warnings are issued
|
java.lang.String |
toString()
returns the Grid as a String
|
void |
updateGrid()
updates the grid
|
public double Origin
public double[] itsGrid
public boolean doWarnings
public float roundingFactor
public Grid()
public Grid(double high)
high
- coordinate in double precisionpublic Grid(double low, double high)
low
- coordinate in double precisionhigh
- coordinate in double precisionpublic Grid(double lowVal, double highVal, float roundFac)
lowVal
- coordinate in double precisionhighVal
- coordinate in double precisionroundFac
- scale factor for the size of bin dimensions beyond the absolute dataspacepublic Grid(double lowVal, double highVal, double gridIntSize)
lowVal
- coordinate in double precisionhighVal
- coordinate in double precisiongridIntSize
- the width of the grid intervalpublic Grid(double lowVal, double highVal, float roundFac, boolean forceLowerZero)
lowVal
- coordinate in double precisionhighVal
- coordinate in double precisionroundFac
- scale the bin dimensions beyond the absolute dataspaceforceLowerZero
- start the bin borders at zero?public Grid(double lowVal, double highVal, float roundFac, double gridIntSize)
lowVal
- coordinate in double precisionhighVal
- coordinate in double precisionroundFac
- scale the bin dimensions beyond the absolute dataspacegridIntSize
- the width of the grid intervalpublic Grid(NumberVariable numVar, float roundFac) throws java.lang.Exception
numVar
- the NumberVariable to useroundFac
- scale the bin dimensions beyond the absolute data spacejava.lang.Exception
- ...public Grid(double lowVal, double highVal, float roundFac, boolean forceLowerZero, double gridIntSize)
lowVal
- coordinate in double precisionhighVal
- coordinate in double precisionroundFac
- scale the bin dimensions beyond the absolute dataspaceforceLowerZero
- start the bin borders at zero?gridIntSize
- extent of each grid unitpublic void setWarnings(boolean warn)
warn
- do warnings?public void setAutoNUnits() throws java.lang.Exception
java.lang.Exception
- ...public int getAutoNUnits() throws java.lang.Exception
java.lang.Exception
- ...public void setNUnits(int Units) throws java.lang.Exception
Units
- the number of grid units in the dimensionjava.lang.Exception
- ...public void updateGrid()
public int getNUnits()
public double getOrigin()
public void fillGrid()
public boolean containsZero()
public void includeZero()
public boolean getDirection()
public void setDirection(boolean Direction)
Direction
- the direction of the axispublic double getSpace()
public double getLow()
public double getHigh()
public void setGridInterval(double gridInt) throws java.lang.Exception
gridInt
- the grid interval for the axisjava.lang.Exception
- ...public double getGridInterval()
public double[] getGrid()
public void multGridIntervals(int multVal)
multVal
- does the table have a diagonal?public java.lang.String toString()
toString
in class java.lang.Object
RH, 2017