Class ChromatogramNonlinearScaler.Identity
java.lang.Object
org.biojava.bio.chromatogram.graphic.ChromatogramNonlinearScaler.Identity
- All Implemented Interfaces:
ChromatogramNonlinearScaler
- Enclosing interface:
ChromatogramNonlinearScaler
public static class ChromatogramNonlinearScaler.Identity
extends Object
implements ChromatogramNonlinearScaler
The default scaler that displays the chromatogram 1:1.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.bio.chromatogram.graphic.ChromatogramNonlinearScaler
ChromatogramNonlinearScaler.Identity
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the singleton instance of this class.float
scale
(Chromatogram c, int sampleIndex) Returns the remapped coordinate for the provided trace sample index of the given chromatogram.
-
Method Details
-
getInstance
Retrieve the singleton instance of this class.- Returns:
- the Identity instance
-
scale
Description copied from interface:ChromatogramNonlinearScaler
Returns the remapped coordinate for the provided trace sample index of the given chromatogram.- Specified by:
scale
in interfaceChromatogramNonlinearScaler
- Parameters:
c
- the ChromatogramsampleIndex
- the sample index- Returns:
- the new coordinagte
-