public class DateTimeLabelFormats extends Configurable<DateTimeLabelFormats>
axis.setDateTimeLabelFormats(
new DateTimeLabelFormats()
.setHour("%I %p")
.setMinute("%I:%M %p")
);
| Constructor and Description |
|---|
DateTimeLabelFormats() |
| Modifier and Type | Method and Description |
|---|---|
DateTimeLabelFormats |
setDay(String day)
Convenience method for setting the 'day' format.
|
DateTimeLabelFormats |
setDay(String singleUnit,
String startDate,
String endDate)
Convenience method for setting the 'day' format.
|
DateTimeLabelFormats |
setHour(String hour)
Convenience method for setting the 'hour' format.
|
DateTimeLabelFormats |
setHour(String singleUnit,
String startDate,
String endDate)
Convenience method for setting the 'hour' format.
|
DateTimeLabelFormats |
setMillisecond(String millisecond)
Convenience method for setting the 'millisecond' format.
|
DateTimeLabelFormats |
setMillisecond(String singleUnit,
String startDate,
String endDate)
Convenience method for setting the 'millisecond' format.
|
DateTimeLabelFormats |
setMinute(String minute)
Convenience method for setting the 'minute' format.
|
DateTimeLabelFormats |
setMinute(String singleUnit,
String startDate,
String endDate)
Convenience method for setting the 'minute' format.
|
DateTimeLabelFormats |
setMonth(String month)
Convenience method for setting the 'month' format.
|
DateTimeLabelFormats |
setMonth(String singleUnit,
String startDate,
String endDate)
Convenience method for setting the 'month' format.
|
DateTimeLabelFormats |
setSecond(String second)
Convenience method for setting the 'second' format.
|
DateTimeLabelFormats |
setSecond(String singleUnit,
String startDate,
String endDate)
Convenience method for setting the 'second' format.
|
DateTimeLabelFormats |
setWeek(String week)
Convenience method for setting the 'week' format.
|
DateTimeLabelFormats |
setWeek(String singleUnit,
String startDate,
String endDate)
Convenience method for setting the 'week' format.
|
DateTimeLabelFormats |
setYear(String year)
Convenience method for setting the 'year' format.
|
DateTimeLabelFormats |
setYear(String singleUnit,
String startDate,
String endDate)
Convenience method for setting the 'year' format.
|
getOptions, setOptionpublic DateTimeLabelFormats setMillisecond(String millisecond)
dateTimeLabelFormats.setOption("millisecond", "%H:%M:%S.%L");
millisecond - The format to use when displaying labels in units of milliseconds.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setMillisecond(String singleUnit, String startDate, String endDate)
DataGrouping.setDateTimeLabelFormats(DateTimeLabelFormats)
method for more detail.singleUnit - The format to use when the active time span is one unit.startDate - The format to use for the start date when the active time span is more than one unit.endDate - The format to use for the end date when the active time span is more than one unit.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setSecond(String second)
dateTimeLabelFormats.setOption("second", "%H:%M:%S");
second - The format to use when displaying labels in units of seconds.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setSecond(String singleUnit, String startDate, String endDate)
DataGrouping.setDateTimeLabelFormats(DateTimeLabelFormats)
method for more detail.singleUnit - The format to use when the active time span is one unit.startDate - The format to use for the start date when the active time span is more than one unit.endDate - The format to use for the end date when the active time span is more than one unit.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setMinute(String minute)
dateTimeLabelFormats.setOption("minute", "%H:%M");
minute - The format to use when displaying labels in units of minutes.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setMinute(String singleUnit, String startDate, String endDate)
DataGrouping.setDateTimeLabelFormats(DateTimeLabelFormats)
method for more detail.singleUnit - The format to use when the active time span is one unit.startDate - The format to use for the start date when the active time span is more than one unit.endDate - The format to use for the end date when the active time span is more than one unit.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setHour(String hour)
dateTimeLabelFormats.setOption("hour", "%H:%M");
hour - The format to use when displaying labels in units of hours.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setHour(String singleUnit, String startDate, String endDate)
DataGrouping.setDateTimeLabelFormats(DateTimeLabelFormats)
method for more detail.singleUnit - The format to use when the active time span is one unit.startDate - The format to use for the start date when the active time span is more than one unit.endDate - The format to use for the end date when the active time span is more than one unit.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setDay(String day)
dateTimeLabelFormats.setOption("day", "%e. %b");
day - The format to use when displaying labels in units of days.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setDay(String singleUnit, String startDate, String endDate)
DataGrouping.setDateTimeLabelFormats(DateTimeLabelFormats)
method for more detail.singleUnit - The format to use when the active time span is one unit.startDate - The format to use for the start date when the active time span is more than one unit.endDate - The format to use for the end date when the active time span is more than one unit.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setWeek(String week)
dateTimeLabelFormats.setOption("week", "%e. %b");
week - The format to use when displaying labels in units of weeks.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setWeek(String singleUnit, String startDate, String endDate)
DataGrouping.setDateTimeLabelFormats(DateTimeLabelFormats)
method for more detail.singleUnit - The format to use when the active time span is one unit.startDate - The format to use for the start date when the active time span is more than one unit.endDate - The format to use for the end date when the active time span is more than one unit.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setMonth(String month)
dateTimeLabelFormats.setOption("month", "%b \'%y");
month - The format to use when displaying labels in units of month.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setMonth(String singleUnit, String startDate, String endDate)
DataGrouping.setDateTimeLabelFormats(DateTimeLabelFormats)
method for more detail.singleUnit - The format to use when the active time span is one unit.startDate - The format to use for the start date when the active time span is more than one unit.endDate - The format to use for the end date when the active time span is more than one unit.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setYear(String year)
dateTimeLabelFormats.setOption("year", "%Y");
year - The format to use when displaying labels in units of year.DateTimeLabelFormats instance for convenient method chaining.public DateTimeLabelFormats setYear(String singleUnit, String startDate, String endDate)
DataGrouping.setDateTimeLabelFormats(DateTimeLabelFormats)
method for more detail.singleUnit - The format to use when the active time span is one unit.startDate - The format to use for the start date when the active time span is more than one unit.endDate - The format to use for the end date when the active time span is more than one unit.DateTimeLabelFormats instance for convenient method chaining.Copyright © 2015. All Rights Reserved.