Package ucar.unidata.view.geoloc
Class VertScaleInfo
java.lang.Object
ucar.visad.display.AxisScaleInfo
ucar.unidata.view.geoloc.VertScaleInfo
A class to hold vertical range settings for a VisAD display from the
dialog box VertScaleDialog class. They are public member
data to simply access. NB: this should be VertRangeInfo, but history
trumps practicality
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final int
double
maximum range of the vertical scaledouble
minimum range of the vertical scaleUnits of the range valuesboolean
Is visible -
Constructor Summary
ConstructorsConstructorDescriptionVertScaleInfo
(double min, double max) Construct aVertScaleInfo
with the specified range.VertScaleInfo
(double min, double max, Unit unit) Construct aVertScaleInfo
with the specified range.. -
Method Summary
Modifier and TypeMethodDescriptionboolean
_more_double
int
int
hashCode()
_more_void
setMajorIncrement
(double majorIncrement) void
setMinorDivision
(int minorDivision) Methods inherited from class ucar.visad.display.AxisScaleInfo
getFont, getLabel, isVisible, setFont, setLabel, setVisible
-
Field Details
-
maxVertRange
public double maxVertRangemaximum range of the vertical scale -
minVertRange
public double minVertRangeminimum range of the vertical scale -
unit
Units of the range values -
visible
public boolean visibleIs visible -
DEFAULT_MAJ_DIVISIONS
public static final int DEFAULT_MAJ_DIVISIONS- See Also:
-
DEFAULT_AXIS_LABEL
- See Also:
-
-
Constructor Details
-
VertScaleInfo
public VertScaleInfo(double min, double max) Construct aVertScaleInfo
with the specified range. Unit is assumed to be meters.- Parameters:
min
- minimum of the rangemax
- maximum of the range
-
VertScaleInfo
Construct aVertScaleInfo
with the specified range..- Parameters:
min
- minimum of the rangemax
- maximum of the rangeunit
- unit of range values
-
-
Method Details
-
getMajorIncrement
public double getMajorIncrement()- Returns:
- the majorIncrement
-
setMajorIncrement
public void setMajorIncrement(double majorIncrement) - Parameters:
majorIncrement
- the majorIncrement to set
-
getMinorDivision
public int getMinorDivision()- Returns:
- the minorDivision
-
setMinorDivision
public void setMinorDivision(int minorDivision) - Parameters:
minorDivision
- the minorDivision to set
-
hashCode
public int hashCode()_more_- Overrides:
hashCode
in classAxisScaleInfo
- Returns:
- _more_
-
equals
_more_- Overrides:
equals
in classAxisScaleInfo
- Parameters:
obj
- _more_- Returns:
- _more_
-