Class CountScaler
java.lang.Object
uk.ac.starlink.ttools.plot2.layer.CountScaler
Scales integer count values according to a supplied Scaler object.
- Since:
- 26 Jan 2015
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
scaleCount
(int count) Scales in input whole number to an output whole number.
-
Constructor Details
-
CountScaler
Constructor.- Parameters:
scaler
- provides basic scaling behaviourmaxOut
- defines output value range 0..maxOut
-
-
Method Details
-
scaleCount
public int scaleCount(int count) Scales in input whole number to an output whole number. Zero maps to zero, other values map according to this object's Scaler.- Parameters:
count
- unscaled value, in range 0..maxIn- Returns:
- scaled count, in range 0..maxOut
-