org.knime.base.util.coordinate
Class DescendingNumericTickPolicyStrategy
java.lang.Object
org.knime.base.util.coordinate.PolicyStrategy
org.knime.base.util.coordinate.AscendingNumericTickPolicyStrategy
org.knime.base.util.coordinate.DescendingNumericTickPolicyStrategy
public class DescendingNumericTickPolicyStrategy
- extends AscendingNumericTickPolicyStrategy
- Author:
- Stephan Sellien, University of Konstanz
Field Summary |
static String |
ID
ID of a descending policy. |
Method Summary |
protected double |
interpolatePosition(double value,
double min,
double max,
double absLength)
Interpolates the correct mapping for a given value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final String ID
- ID of a descending policy. Used to ensure single instances in
Coordinate
.
- See Also:
- Constant Field Values
DescendingNumericTickPolicyStrategy
public DescendingNumericTickPolicyStrategy()
- Creates a policy strategy for descending order. Default name is
"Descending".
DescendingNumericTickPolicyStrategy
public DescendingNumericTickPolicyStrategy(String name)
- Creates a policy strategy for descending order.
- Parameters:
name
- the name of this strategy. Must not be null or empty.
interpolatePosition
protected double interpolatePosition(double value,
double min,
double max,
double absLength)
- Interpolates the correct mapping for a given value.
- Overrides:
interpolatePosition
in class AscendingNumericTickPolicyStrategy
- Parameters:
value
- the domain value to mapmin
- minimum domain valuemax
- maximum domain valueabsLength
- the absolute length in pixel.
- Returns:
- the mapped value as a position
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.