|
||||||||||
| 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
org.knime.base.util.coordinate.PercentagePolicyStrategy
public class PercentagePolicyStrategy
Class for percentage tick policy.
| Field Summary | |
|---|---|
static String |
ID
ID for a percentage tick policy. |
| Constructor Summary | |
|---|---|
PercentagePolicyStrategy()
Constructor. |
|
| Method Summary | |
|---|---|
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. |
boolean |
isMappingAllowed()
Returns whether mapping and relabeling by MappingMethods should
be allowed for the ticks of this PolicyStrategy. |
| Methods inherited from class org.knime.base.util.coordinate.AscendingNumericTickPolicyStrategy |
|---|
calculateMappedValue, interpolatePosition |
| Methods inherited from class org.knime.base.util.coordinate.PolicyStrategy |
|---|
calculateMappedValue, getDisplayName, getNegativeInfinity, getPositiveInfinity, getTickPositions, getTickPositions, getValues, 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
| Constructor Detail |
|---|
public PercentagePolicyStrategy()
| Method Detail |
|---|
public CoordinateMapping[] getTickPositions(double absoluteLength,
double minDomainValue,
double maxDomainValue,
double tickDistance)
getTickPositions in class AscendingNumericTickPolicyStrategyabsoluteLength - 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 AscendingNumericTickPolicyStrategyabsoluteLength - the absolute lengthminDomainValue - the minimal domain valuemaxDomainValue - the maximal domain valuetickDistance - the absolute distance between to ticks
public boolean isMappingAllowed()
MappingMethods should
be allowed for the ticks of this PolicyStrategy. The default
value is true. An example for allowed mapping would be the
a logarithmic scaling. An example where a mapping (logarithmic or
square root) does not make sense is the percentage policy.
isMappingAllowed in class PolicyStrategytrue, if labels could be relabeled,
false else.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||