public class TimeAxisLabelHandler extends Object implements AxisLabelHandler
Modifier and Type | Class and Description |
---|---|
static class |
TimeAxisLabelHandler.DayStruct |
static class |
TimeAxisLabelHandler.DayStructFactory |
static class |
TimeAxisLabelHandler.HourStruct |
static class |
TimeAxisLabelHandler.HourStructFactory |
static class |
TimeAxisLabelHandler.MonthStruct |
static class |
TimeAxisLabelHandler.MonthStructFactory |
static class |
TimeAxisLabelHandler.TimeStruct |
static interface |
TimeAxisLabelHandler.TimeStructFactory |
static class |
TimeAxisLabelHandler.YearStruct |
static class |
TimeAxisLabelHandler.YearStructFactory |
Constructor and Description |
---|
TimeAxisLabelHandler(Epoch epoch) |
TimeAxisLabelHandler(String minuteSecondString,
String hourDayMonthString,
String hourMinuteString,
String dayMonthYearString,
String dayString,
String monthString,
String monthYearString,
String yearString,
TimeZone timeZone,
Epoch epoch) |
TimeAxisLabelHandler(TimeZone timeZone,
Epoch epoch) |
public TimeAxisLabelHandler(Epoch epoch)
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public TimeAxisLabelHandler.TimeStructFactory getHourStructFactory()
public TimeAxisLabelHandler.TimeStructFactory getDayStructFactory()
public TimeAxisLabelHandler.TimeStructFactory getMonthStructFactory()
public TimeAxisLabelHandler.TimeStructFactory getYearStructFactory()
public TimeStampFormat getYearFormat()
public TimeStampFormat getMonthYearFormat()
public TimeStampFormat getMonthFormat()
public TimeStampFormat getDayFormat()
public TimeStampFormat getDayMonthYearFormat()
public TimeStampFormat getHourMinuteFormat()
public TimeStampFormat getHourDayMonthFormat()
public TimeStampFormat getSecondMinuteFormat()
public void setPixelsBetweenTicks(int pixels)
public void setEpoch(Epoch epoch)
public Epoch getEpoch()
public TimeStamp toTimeStamp(double time)
public double fromTimeStamp(TimeStamp time)
public static int getYearStep(double spanYears)
public static int getRoundedYear(int currentYear, int yearStep)
public static int tickInterval_Days(double approxTickInterval_SU)
public static double tickInterval_SU(double approxTickInterval_SU)
public static <T extends Comparable<T>> T min(T a, T b)
public static <T extends Comparable<T>> T max(T a, T b)
public List<TimeAxisLabelHandler.TimeStruct> timeStructs(Axis1D axis, List<TimeStamp> tickTimes, TimeAxisLabelHandler.TimeStructFactory factory)
public double[] getTickPositions(Axis1D axis)
getTickPositions
in interface AxisLabelHandler
public String[] getTickLabels(Axis1D axis, double[] tickPositions)
getTickLabels
in interface AxisLabelHandler
tickPositions
- the output from getTickPositions( ).public double[] getMinorTickPositions(double[] tickPositions)
AxisLabelHandler
getMinorTickPositions
in interface AxisLabelHandler
public String getAxisLabel(Axis1D axis)
getAxisLabel
in interface AxisLabelHandler
public void setAxisLabel(String label)
setAxisLabel
in interface AxisLabelHandler
label
- provides a hint regarding what label information to displaypublic AxisUnitConverter getAxisUnitConverter()
getAxisUnitConverter
in interface AxisLabelHandler
public void setAxisUnitConverter(AxisUnitConverter converter)
setAxisUnitConverter
in interface AxisLabelHandler
converter
- sets a new AxisUnitConverterCopyright © 2013 Metron, Inc.. All rights reserved.