public class DefaultAxisDescription extends DataRange implements AxisDescription
| Constructor and Description |
|---|
DefaultAxisDescription()
Default
|
DefaultAxisDescription(DataSet dataSet,
AxisDescription axisDesc)
Copy constructor to generate axisDescriptions for datasets from existing Axis Descriptions
|
DefaultAxisDescription(DataSet dataSet,
String axisName,
String... axisUnit) |
DefaultAxisDescription(DataSet dataSet,
String axisName,
String axisUnit,
double rangeMin,
double rangeMax) |
DefaultAxisDescription(String axisName,
String... axisUnit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(double value)
Adds value to this range.
|
boolean |
add(double[] values,
int nlength)
Adds values to this range.
|
boolean |
clear()
Empties this DataRange.
|
boolean |
equals(Object obj) |
String |
getName() |
String |
getUnit() |
int |
hashCode() |
boolean |
set(DataRange range)
Sets updates range to the specified one.
|
boolean |
set(double min,
double max)
Sets
min and max values for this range. |
boolean |
set(String axisName,
String... axisUnit) |
boolean |
set(String axisName,
String axisUnit,
double rangeMin,
double rangeMax) |
boolean |
setMax(double max)
Sets
max value for this range. |
boolean |
setMin(double min)
Sets
min value for this range. |
String |
toString() |
add, add, contains, getLength, getMax, getMin, isDefined, isMaxDefined, isMinDefinedpublic DefaultAxisDescription()
public DefaultAxisDescription(DataSet dataSet, AxisDescription axisDesc)
dataSet - for which the update events shall be registeredaxisDesc - axis Description to copy all data except dataSet frompublic DefaultAxisDescription(DataSet dataSet, String axisName, String... axisUnit)
dataSet - for which the update events shall be registeredaxisName - the new axis nameaxisUnit - the new axis unitpublic DefaultAxisDescription(DataSet dataSet, String axisName, String axisUnit, double rangeMin, double rangeMax)
dataSet - for which the update events shall be registeredaxisName - the new axis nameaxisUnit - the new axis unitrangeMin - the user-provided new minimum value of the DataSet/Axis rangerangeMax - the user-provided new maximum value of the DataSet/Axis rangepublic boolean add(double value)
add in interface AxisDescriptionadd in class DataRangevalue - value to be addedtrue if the value becomes min or max.public boolean add(double[] values,
int nlength)
add in interface AxisDescriptionadd in class DataRangevalues - values to be addednlength - the maximum array length that should be taken into accounttrue if the value becomes min or max.public boolean clear()
clear in interface AxisDescriptionclear in class DataRangetrue if the values were valid beforeDataRange.isDefined()public final String getName()
getName in interface AxisDescriptionpublic final String getUnit()
getUnit in interface AxisDescriptionpublic boolean set(DataRange range)
DataRangepublic boolean set(double min,
double max)
DataRangemin and max values for this range.set in interface AxisDescriptionset in class DataRangemin - new minimum of the rangemax - new maximum of the rangetrue if the values becomes the new min or max.public final boolean set(String axisName, String... axisUnit)
set in interface AxisDescriptionaxisName - the new axis nameaxisUnit - the new axis unit (optional variadic argument) N.B. issuestrue if this setter invalidates the existing min/max rangeevent if only the name/unit changed, or,
event if only the range changed, or,
for a full changepublic final boolean set(String axisName, String axisUnit, double rangeMin, double rangeMax)
set in interface AxisDescriptionaxisName - the new axis nameaxisUnit - the new axis unitrangeMin - the user-provided new minimum value of the DataSet/Axis rangerangeMax - the user-provided new maximum value of the DataSet/Axis rangetrue if this setter invalidates the existing min/max rangeevent if only the name/unit changed, or,
event if only the range changed, or,
for a full changepublic boolean setMax(double max)
DataRangemax value for this range.setMax in interface AxisDescriptionsetMax in class DataRangemax - the new max valuetrue if the value becomes the new max.public boolean setMin(double min)
DataRangemin value for this range.setMin in interface AxisDescriptionsetMin in class DataRangemin - the new data range minimumtrue if the value becomes the new min.Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.