|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.util.coordinate.Coordinate
org.knime.base.util.coordinate.NumericCoordinate
public abstract class NumericCoordinate
The abstract class which should be implemented by all coordinates which map numeric values.
DoubleCoordinate| Field Summary |
|---|
| Fields inherited from class org.knime.base.util.coordinate.Coordinate |
|---|
DEFAULT_ABSOLUTE_TICK_DIST |
| Constructor Summary | |
|---|---|
NumericCoordinate(DataColumnSpec dataColumnSpec)
Constructor for class NumericCoordinate. |
|
| Method Summary | |
|---|---|
void |
addDesiredValues(DataValue... values)
Adds a value which should have a tick. |
protected abstract double |
calculateMappedValueInternal(DataCell domainValueCell,
double absolutLength)
Calculates a numeric mapping assuming a DoubleCell. |
DataValue[] |
getDesiredValues()
Returns the desired values. |
double |
getMaxDomainValue()
|
double |
getMinDomainValue()
|
double |
getNegativeInfinity()
Returns the value for negative infinity after mapping. |
double |
getPositiveInfinity()
Returns the value for positive infinity after mapping. |
protected abstract CoordinateMapping[] |
getTickPositionsInternal(double absolutLength)
Returns an array with the positions of all ticks and their corresponding domain values given an absolute length. |
protected CoordinateMapping[] |
getTickPositionsWithLabels(double absolutLength)
Returns an array with the positions of all ticks and their corresponding domain values given an absolute length. |
double |
getUnusedDistBetweenTicks(double absoluteLength)
A numeric coordinate does not has a unused distance range. |
abstract boolean |
isMaxDomainValueSet()
|
abstract boolean |
isMinDomainValueSet()
|
boolean |
isNominal()
Whether this coordinate is a nominal one. |
void |
setMaxDomainValue(double value)
Sets the upper domain value. |
void |
setMinDomainValue(double value)
Sets the lower domain value. |
| Methods inherited from class org.knime.base.util.coordinate.Coordinate |
|---|
addCoordinateFactory, addMappingMethod, addPolicy, applyMappingMethod, calculateMappedValue, calculateMappedValue, clearDesiredValues, createCoordinate, getActiveMappingMethod, getCompatibleMappingMethods, getCompatiblePolicies, getCurrentPolicy, getDataColumnSpec, getDesiredValuesSet, getDomain, getMappingMethod, getPolicyStategy, getTickPositions, getTickPositions, setActiveMappingMethod, setPolicy, setPolicy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
NumericCoordinate(DataColumnSpec dataColumnSpec)
dataColumnSpec - the specification of the coordinate column| Method Detail |
|---|
protected abstract CoordinateMapping[] getTickPositionsInternal(double absolutLength)
absolutLength - the absolute length the domain is mapped on
protected CoordinateMapping[] getTickPositionsWithLabels(double absolutLength)
getTickPositionsWithLabels in class CoordinateabsolutLength - the absolute length the domain is mapped on
protected abstract double calculateMappedValueInternal(DataCell domainValueCell,
double absolutLength)
DoubleCell.
Returns the mapping of a domain value for this coordinate axis. The
mapping is done according to the given absolute length.
The value is not the position on the screen. Since the java coordinate system is upside down simply subtract the returned value from the screen height to calculate the screen position.
calculateMappedValueInternal in class CoordinatedomainValueCell - the data cell with the domain value to mapabsolutLength - the absolute length on which the domain value is
mapped on
public boolean isNominal()
isNominal in class Coordinatetrue, if this coordinate is a nominal onepublic double getUnusedDistBetweenTicks(double absoluteLength)
getUnusedDistBetweenTicks in class CoordinateabsoluteLength - the absolute length
#getUnusedDistBetweenTicks(double)public abstract boolean isMinDomainValueSet()
true if the lower domain range is set properlypublic abstract boolean isMaxDomainValueSet()
true if the upper domain range is set properlypublic void setMinDomainValue(double value)
value - the lower valuepublic void setMaxDomainValue(double value)
value - the upper valuepublic final double getMaxDomainValue()
public double getPositiveInfinity()
getPositiveInfinity in class Coordinatepublic double getNegativeInfinity()
getNegativeInfinity in class Coordinatepublic final double getMinDomainValue()
public void addDesiredValues(DataValue... values)
addDesiredValues in class Coordinatevalues - the desired valuepublic DataValue[] getDesiredValues()
getDesiredValues in class Coordinatenull, if not set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||