|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.util.coordinate.PolicyStrategy
org.knime.base.util.coordinate.AscendingNumericTickPolicyStrategy
public class AscendingNumericTickPolicyStrategy
A strategy which creates tick for numeric values in ascending order.
Field Summary | |
---|---|
static String |
ID
ID for a ascending tick policy. |
Constructor Summary | |
---|---|
AscendingNumericTickPolicyStrategy()
Creates a policy strategy for ascending order. |
|
AscendingNumericTickPolicyStrategy(String name)
Creates a policy strategy for ascending order. |
Method Summary | |
---|---|
double |
calculateMappedValue(DataCell domainValueCell,
double absoluteLength,
double minDomainValue,
double maxDomainValue)
Calculates the mapped value. |
CoordinateMapping[] |
getTickPositions(double absoluteLength,
double minDomainValue,
double maxDomainValue,
double tickDistance)
Calculates the mappings of the ticks according to the policy. |
CoordinateMapping[] |
getTickPositions(int absoluteLength,
int minDomainValue,
int maxDomainValue,
int tickDistance)
Calculates the mappings of the ticks according to the policy. |
protected double |
interpolatePosition(double value,
double min,
double max,
double absLength)
Interpolates the correct mapping for a given value. |
Methods inherited from class org.knime.base.util.coordinate.PolicyStrategy |
---|
calculateMappedValue, getDisplayName, getNegativeInfinity, getPositiveInfinity, getTickPositions, getTickPositions, getValues, isMappingAllowed, setValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ID
Coordinate
.
Constructor Detail |
---|
public AscendingNumericTickPolicyStrategy()
public AscendingNumericTickPolicyStrategy(String name)
name
- the name of this strategyMethod Detail |
---|
public double calculateMappedValue(DataCell domainValueCell, double absoluteLength, double minDomainValue, double maxDomainValue)
calculateMappedValue
in class PolicyStrategy
domainValueCell
- the value to be mappedabsoluteLength
- the absolute lengthminDomainValue
- the minimal domain valuemaxDomainValue
- the maximal domain value
protected double interpolatePosition(double value, double min, double max, double absLength)
value
- the domain value to mapmin
- minimum domain valuemax
- maximum domain valueabsLength
- the absolute length in pixel.
public CoordinateMapping[] getTickPositions(double absoluteLength, double minDomainValue, double maxDomainValue, double tickDistance)
getTickPositions
in class PolicyStrategy
absoluteLength
- the absolute lengthminDomainValue
- the minimal domain valuemaxDomainValue
- the maximal domain valuetickDistance
- the absolute distance between to ticks
public CoordinateMapping[] getTickPositions(int absoluteLength, int minDomainValue, int maxDomainValue, int tickDistance)
getTickPositions
in class PolicyStrategy
absoluteLength
- the absolute lengthminDomainValue
- the minimal domain valuemaxDomainValue
- the maximal domain valuetickDistance
- the absolute distance between to ticks
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |