|
||||||||||
| 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 specification| Method Detail |
|---|
protected CoordinateMapping[] getTickPositionsInternal(double absoluteLength)
getTickPositionsInternal in class NumericCoordinateabsoluteLength - 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 NumericCoordinatedomainValueCell - 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 NumericCoordinatetrue if the lower domain range is set properlypublic boolean isMaxDomainValueSet()
isMaxDomainValueSet in class NumericCoordinatetrue if the upper domain range is set properlypublic void setMinDomainValue(double value)
setMinDomainValue in class NumericCoordinatevalue - the lower valuepublic void setMaxDomainValue(double value)
setMaxDomainValue in class NumericCoordinatevalue - the upper value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||