com.approximatrix.charting.coordsystem.ticklocator
Class NumericXTickLocator
java.lang.Object
com.approximatrix.charting.coordsystem.ticklocator.NumericTickLocator
com.approximatrix.charting.coordsystem.ticklocator.NumericXTickLocator
public class NumericXTickLocator
- extends NumericTickLocator
Extended class to locate and return a transformable vector of x,y pairs for
locating tick marks on an x axis (horizontal).
- Author:
- armstrong
|
Constructor Summary |
NumericXTickLocator(double max,
double min,
int numTicsDesired,
int maxTics)
Pass-through constructor to constructs a numeric tick locator
based on maximum and minimum values. |
NumericXTickLocator(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 |
NumericXTickLocator
public NumericXTickLocator(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.
- 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
NumericXTickLocator
public NumericXTickLocator(double max,
double min,
int numTicsDesired,
int maxTics)
- 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 ticks
getTickMarkLocationsAsPairs
public double[] getTickMarkLocationsAsPairs(double y)
- Returns an array of x,y pairs. The x value contains an x tick
location, while all the y values contain the passed value.
- Parameters:
y - the value to use for y in the x,y pairs
- Returns:
- a vector of x,y pairs ready for use in an AffineTransform