|
||||||||||
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
org.knime.base.util.coordinate.IntegerCoordinate
class IntegerCoordinate
Field Summary |
---|
Fields inherited from class org.knime.base.util.coordinate.Coordinate |
---|
DEFAULT_ABSOLUTE_TICK_DIST |
Constructor Summary | |
---|---|
protected |
IntegerCoordinate(DataColumnSpec dataColumnSpec)
Constructor for class IntegerCoordinate. |
Method Summary | |
---|---|
protected double |
calculateMappedValueInternal(DataCell domainValueCell,
double absoluteLength)
Calculates a numeric mapping assuming a DoubleCell . |
protected CoordinateMapping[] |
getTickPositionsInternal(double absoluteLength)
Returns an array with the positions of all ticks and their corresponding domain values given an absolute length. |
boolean |
isMaxDomainValueSet()
|
boolean |
isMinDomainValueSet()
|
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.NumericCoordinate |
---|
addDesiredValues, getDesiredValues, getMaxDomainValue, getMinDomainValue, getNegativeInfinity, getPositiveInfinity, getTickPositionsWithLabels, getUnusedDistBetweenTicks, isNominal |
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 |
---|
protected IntegerCoordinate(DataColumnSpec dataColumnSpec)
dataColumnSpec
- the column specificationMethod Detail |
---|
protected CoordinateMapping[] getTickPositionsInternal(double absoluteLength)
getTickPositionsInternal
in class NumericCoordinate
absoluteLength
- the absolute length the domain is mapped on
protected double calculateMappedValueInternal(DataCell domainValueCell, double absoluteLength)
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 NumericCoordinate
domainValueCell
- the data cell with the domain value to mapabsoluteLength
- the absolute length on which the domain value is
mapped on
public boolean isMinDomainValueSet()
isMinDomainValueSet
in class NumericCoordinate
true
if the lower domain range is set properlypublic boolean isMaxDomainValueSet()
isMaxDomainValueSet
in class NumericCoordinate
true
if the upper domain range is set properlypublic void setMinDomainValue(double value)
setMinDomainValue
in class NumericCoordinate
value
- the lower valuepublic void setMaxDomainValue(double value)
setMaxDomainValue
in class NumericCoordinate
value
- the upper value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |