public abstract class VariableAxis extends AbstractCalibratedAxis
CalibratedAxis whose calibration is defined by an equation with
one or more variables.| Constructor and Description |
|---|
VariableAxis(AxisType type) |
VariableAxis(AxisType type,
String unit) |
| Modifier and Type | Method and Description |
|---|---|
Double |
get(String name)
Gets the value of the variable with the given name, or null if none.
|
int |
numVars()
Gets the number of variables with assigned values.
|
String |
particularEquation()
Gets the particular equation representing values along this axis; for
instance:
y = (14)*x + (4). |
void |
set(String name,
Double value)
Sets the specified value to a variable of the given name.
|
Set<String> |
vars()
Gets the set of variables with assigned values.
|
averageScale, equals, hashCode, setUnit, unitsetType, typeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcalibratedValue, copy, generalEquation, rawValuepublic VariableAxis(AxisType type)
public Double get(String name)
public void set(String name, Double value)
name - The variable to assign.value - The value to assign, or null to clear the variable.public int numVars()
public String particularEquation()
CalibratedAxisy = (14)*x + (4).Copyright © 2014–2022 ImageJ. All rights reserved.