com.approximatrix.charting.coordsystem.ticklocator
Class NumericYTickLocator
java.lang.Object
com.approximatrix.charting.coordsystem.ticklocator.NumericTickLocator
com.approximatrix.charting.coordsystem.ticklocator.NumericYTickLocator
public class NumericYTickLocator
- extends NumericTickLocator
Extended class to locate and return a transformable vector of x,y pairs for
locating tick marks on a y axis (vertical).
- Author:
- armstrong
|
Constructor Summary |
NumericYTickLocator(double max,
double min,
int numTicsDesired,
int maxTics)
Pass-through constructor to constructs a numeric tick locator
based on maximum and minimum values. |
NumericYTickLocator(double max,
double min,
int numTicsDesired,
int maxTics,
boolean force_simple)
Pass-through constructor to constructs a numeric tick locator
based on maximum and minimum values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericYTickLocator
public NumericYTickLocator(double max,
double min,
int numTicsDesired,
int maxTics)
- Pass-through constructor to constructs a numeric tick locator
based on maximum and minimum values.
- Parameters:
max - the largest value to be plottedmin - the smallest value to be plottednumTicsDesired - the approximate desired number of tick marksmaxTics - the most allowed ticks
NumericYTickLocator
public NumericYTickLocator(double max,
double min,
int numTicsDesired,
int maxTics,
boolean force_simple)
- Pass-through constructor to constructs a numeric tick locator
based on maximum and minimum values. Allows one to specify using
a simple locator, spacing ticks equally between max and min
values.
- Parameters:
max - the largest value to be plottedmin - the smallest value to be plottednumTicsDesired - the approximate desired number of tick marksmaxTics - the most allowed ticksforce_simple - true to force the locator to create exactly numTicsDesired starting with min and ending with max
getTickMarkLocationsAsPairs
public double[] getTickMarkLocationsAsPairs(double x)
- Returns an array of x,y pairs. The y value contains a y tick
location, while all the x values contain the passed value.
- Parameters:
x - the value to use for y in the x,y pairs
- Returns:
- a vector of x,y pairs ready for use in an AffineTransform