public class AbsTimeScaleMapper extends TimeScaleMapper
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbsTimeScaleMapper.StartTickReturn |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Calendar |
calendar |
protected int |
firstMajorTick |
protected ThreadSafeSimpleDateFormat |
longTimeFormat |
protected ThreadSafeSimpleDateFormat |
mediumTimeFormat |
protected ThreadSafeSimpleDateFormat |
shortTimeFormat |
beginTime, endTime, hintPixels, majorTickStep, minTick, numTicks, tickInc, totalPixels| Constructor and Description |
|---|
AbsTimeScaleMapper(int totalPixels,
int hintPixels,
MicroSecondDate beginTime,
MicroSecondDate endTime) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateTicks() |
java.lang.String |
getLabel(int i)
Gets the label if there is one for the ith tick.
|
int |
getNumTicks()
Gets the total number of ticks.
|
int |
getPixelLocation(int i)
Gets the pixel location for the ith tick.
|
int |
getTotalPixels()
returns the total pixels used to calculate map.
|
AbsTimeScaleMapper.StartTickReturn |
startTick(double goalTickInc,
java.util.Date startTime) |
getAxisLabel, isLabelTick, isMajorTick, setHintPixels, setTimes, setTotalPixels, setTotalPixelsprotected ThreadSafeSimpleDateFormat longTimeFormat
protected ThreadSafeSimpleDateFormat mediumTimeFormat
protected ThreadSafeSimpleDateFormat shortTimeFormat
protected java.util.Calendar calendar
protected int firstMajorTick
public AbsTimeScaleMapper(int totalPixels,
int hintPixels,
MicroSecondDate beginTime,
MicroSecondDate endTime)
public int getPixelLocation(int i)
ScaleMapperi - The number of the tick of interest.public java.lang.String getLabel(int i)
ScaleMapperpublic int getNumTicks()
ScaleMapperpublic int getTotalPixels()
ScaleMapperprotected void calculateTicks()
calculateTicks in class TimeScaleMapperpublic AbsTimeScaleMapper.StartTickReturn startTick(double goalTickInc, java.util.Date startTime)