uk.ac.starlink.ttools.plot
Class BarStyle.Placement
java.lang.Object
uk.ac.starlink.ttools.plot.BarStyle.Placement
- Enclosing class:
- BarStyle
public abstract static class BarStyle.Placement
- extends Object
Describes bar placement, that is how multiple bars covering the same
data range are to be arranged.
Method Summary |
abstract int[] |
getXRange(int lo,
int hi,
int iseq,
int nseq)
Returns the range of X coordinates to be used for plotting a bar. |
String |
toString()
|
BarStyle.Placement
protected BarStyle.Placement(String name)
getXRange
public abstract int[] getXRange(int lo,
int hi,
int iseq,
int nseq)
- Returns the range of X coordinates to be used for plotting a bar.
- Parameters:
lo
- lower bound of total range for data regionhi
- upper bound of total range for data region + 1iseq
- index of the bar to be plotted in the returned rangenseq
- total number of bars which will be plotted in
the data region
- Returns:
- 2-element arrage giving (lower bound, upper bound+1) of
the region the plotted bar should occupy
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009 Central Laboratory of the Research Councils. All Rights Reserved.