|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.moxieapps.gwt.highcharts.client.Configurable<DateTimeLabelFormats> org.moxieapps.gwt.highcharts.client.DateTimeLabelFormats
public class DateTimeLabelFormats
Represents the configuration options available for controlling the way date and time information will be displayed. For a datetime axis, the scale will automatically adjust to the appropriate unit. This configuration class controls the default string format representations used for each unit. Defaults to:
axis.setDateTimeLabelFormats(
new DateTimeLabelFormats()
.setHour("%I %p")
.setMinute("%I:%M %p")
);
Constructor Summary | |
---|---|
DateTimeLabelFormats()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.moxieapps.gwt.highcharts.client.Configurable |
---|
getOptions, setOption |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateTimeLabelFormats()
Method Detail |
---|
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |