Package dataGram
Class DatagramScaleInformation
java.lang.Object
dataGram.DatagramScaleInformation
Class to pass around a few bits of information about a datagrams scale
- Author:
- Doug Gillespie
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDatagramScaleInformation
(double minValue, double maxValue, String units) DatagramScaleInformation
(double minValue, double maxValue, String units, boolean logScale, int displayType) -
Method Summary
Modifier and TypeMethodDescriptionint
double
double
getUnits()
boolean
void
setDisplayType
(int displayType) void
setLogScale
(boolean logScale) void
setMaxValue
(double maxValue) void
setMinValue
(double minValue) void
-
Field Details
-
PLOT_3D
public static final int PLOT_3D- See Also:
-
PLOT_2D
public static final int PLOT_2D- See Also:
-
-
Constructor Details
-
DatagramScaleInformation
public DatagramScaleInformation(double minValue, double maxValue, String units, boolean logScale, int displayType) - Parameters:
minValue
-maxValue
-logScale
-
-
DatagramScaleInformation
- Parameters:
minValue
-maxValue
-
-
-
Method Details
-
getMaxValue
public double getMaxValue()- Returns:
- the maxValue
-
setMaxValue
public void setMaxValue(double maxValue) - Parameters:
maxValue
- the maxValue to set
-
getMinValue
public double getMinValue()- Returns:
- the minValue
-
setMinValue
public void setMinValue(double minValue) - Parameters:
minValue
- the minValue to set
-
isLogScale
public boolean isLogScale()- Returns:
- the logScale
-
setLogScale
public void setLogScale(boolean logScale) - Parameters:
logScale
- the logScale to set
-
getUnits
- Returns:
- the units
-
setUnits
- Parameters:
units
- the units to set
-
getDisplayType
public int getDisplayType()- Returns:
- the displayType PLOT_3D or PLOT_2D
-
setDisplayType
public void setDisplayType(int displayType) - Parameters:
displayType
- the displayType to set
-