org.knime.base.util.coordinate
Interface MappingMethod

All Known Implementing Classes:
LogarithmicMappingMethod, SquareRootMappingMethod

public interface MappingMethod

Interface for a mapping method which is executed before calculating ticks and mapping.

Author:
Stephan Sellien, University of Konstanz

Method Summary
 DataCell doMapping(DataCell cell)
          Maps the value according to its task.
 String getDisplayName()
          Returns the display name of this MappingMethod.
 double getLabel(DataCell cell)
          Maps a value back to the original domain value for tick generation.
 boolean isCompatibleWithDomain(DataColumnDomain domain)
          Checks compatibility with a domain.
 

Method Detail

doMapping

DataCell doMapping(DataCell cell)
Maps the value according to its task.

Parameters:
cell - the value to map
Returns:
the mapped value

getLabel

double getLabel(DataCell cell)
Maps a value back to the original domain value for tick generation. Is the inverse function.

Parameters:
cell - the value
Returns:
the inverse value of cell according to this mapping

getDisplayName

String getDisplayName()
Returns the display name of this MappingMethod.

Returns:
the display name

isCompatibleWithDomain

boolean isCompatibleWithDomain(DataColumnDomain domain)
Checks compatibility with a domain. Returns true by default.

Parameters:
domain - the domain
Returns:
true, if this mapping method is compatible.


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.