Class CountScaler
- java.lang.Object
-
- uk.ac.starlink.ttools.plot2.layer.CountScaler
-
public class CountScaler extends java.lang.Object
Scales integer count values according to a supplied Scaling object.- Since:
- 26 Jan 2015
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description CountScaler(Scaling scaling, int maxIn, int maxOut)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
scaleCount(int count)
Scales in input whole number to an output whole number.
-
-
-
Constructor Detail
-
CountScaler
public CountScaler(Scaling scaling, int maxIn, int maxOut)
Constructor.- Parameters:
scaling
- provides basic scaling behaviourmaxIn
- defines input value range 0..maxInmaxOut
- defines output value range 0..maxOut
-
-