org.knime.base.util.coordinate
Class DescendingNumericTickPolicyStrategy

java.lang.Object
  extended by org.knime.base.util.coordinate.PolicyStrategy
      extended by org.knime.base.util.coordinate.AscendingNumericTickPolicyStrategy
          extended by 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.
 
Constructor Summary
DescendingNumericTickPolicyStrategy()
          Creates a policy strategy for descending order.
DescendingNumericTickPolicyStrategy(String name)
          Creates a policy strategy for descending order.
 
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 org.knime.base.util.coordinate.AscendingNumericTickPolicyStrategy
calculateMappedValue, getTickPositions, getTickPositions
 
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

ID

public static final String ID
ID of a descending policy. Used to ensure single instances in Coordinate.

See Also:
Constant Field Values
Constructor Detail

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.
Method Detail

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 map
min - minimum domain value
max - maximum domain value
absLength - 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.