-
public class DateTimeWithCalendar extends ScatterBase
The DateTimeWithCalendar class contains methods for configuring calendar on the DateTime scale.
-
-
Constructor Summary
Constructors Constructor Description DateTimeWithCalendar(String jsChart)
-
Method Summary
Modifier and Type Method Description static DateTimeWithCalendarinstantiate()StringgetJsBase()Calendarcalendar()Getter for the scale calendar. DateTimeWithCalendarcalendar(Calendar calendar)voidcount()Getter for the unit count. DateTimeWithCalendarcount(Number count)Setter for the unit count. voiddateToPix(Number date)Transforms date to pixels. DateTimeWithCalendarextendDataRange(String var_args)Extends the current input domain with the passed values (if such don't exist in the domain). voidfinishAutoCalc(Boolean silently)Informs the scale that an auto-range calculation started for the chart in past was ended. voidgetTicks(Number fromPix, Number toPix, Interval unit, Number count)Returns ticks array (even indexes are left borders, odd indexes are right borders of the tick) with a passed interval. voidgetTicks(Number fromPix, Number toPix, String unit, Number count)Returns ticks array (even indexes are left borders, odd indexes are right borders of the tick) with a passed interval. voidgetType()Returns scale type. voidinverseTransform(Number ratio)Returns tick by its position ratio. voidinverted()Getter for the scale inversion. DateTimeWithCalendarinverted(Boolean enabled)Setter for scale inversion. voidmaximum()Getter for the scale maximum. DateTimeWithCalendarmaximum(Number maximum)Setter for the scale maximum. voidmaximumGap()Getter for the scale maximum gap. DateTimemaximumGap(Number gap)Setter for the scale maximum gap. voidminimum()Getter for the scale minimum. DateTimeWithCalendarminimum(Number minimum)Setter for the scale minimum. voidminimumGap()Getter for the scale minimum gap. DateTimeminimumGap(Number gap)Setter for the scale minimum gap. voidpixToDate(Number pix)Transforms pixels to date. voidremoveAllListeners(String type)Removes all listeners from an object. voidskipHolidays()Getter for skipping of holidays. DateTimeWithCalendarskipHolidays(Boolean enabled)Setter for skipping of holidays. voidsoftMaximum()Getter for the soft maximum. DateTimesoftMaximum(Number maximum)Setter for the soft maximum. voidsoftMinimum()Getter for the soft minimum. DateTimesoftMinimum(Number minimum)Setter for the soft minimum. DateTimeWithCalendarstartAutoCalc()Informs scale that an auto-range calculation started for the chart, so it should reset its data range on the first call of this method if needed. voidstartDate()Getter for the start date. DateTimeWithCalendarstartDate(Number date)voidtransform(String value)Returns tick position ratio by its name. voidunit()Getter for the unit interval. DateTimeWithCalendarunit(Interval interval)Setter for the unit interval. DateTimeWithCalendarunit(String interval)Setter for the unit interval. voidunitPixSize()Getter for the unit size. DateTimeWithCalendarunitPixSize(Number size)Setter for the unit size. DateTimeWithCalendarunitPixSize(String size)Setter for the unit size. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). voidalignMaximum()Getter for a flag if the maximum should be aligned by major ticks interval. DateTimeWithCalendaralignMaximum(Boolean enabled)Getter for a flag if the maximum should be aligned by major ticks interval. voidalignMinimum()Setter for a flag if the minimum should be aligned by major ticks interval. DateTimeWithCalendaralignMinimum(Boolean enabled)Setter for a flag if the minimum should be aligned by major ticks interval. voidmaxTicksCount()Getter for the maximum ticks count. DateTimeWithCalendarmaxTicksCount(Number count)Setter for the maximum ticks count. -
Methods inherited from class com.anychart.scales.ScatterBase
alignMaximum, alignMinimum, extendDataRange, instantiate, inverted, maxTicksCount, maximum, minimum, startAutoCalc -
Methods inherited from class com.anychart.scales.Base
instantiate, inverted, startAutoCalc -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DateTimeWithCalendar
DateTimeWithCalendar(String jsChart)
-
-
Method Detail
-
instantiate
static DateTimeWithCalendar instantiate()
-
calendar
DateTimeWithCalendar calendar(Calendar calendar)
-
count
void count()
Getter for the unit count.
-
count
DateTimeWithCalendar count(Number count)
Setter for the unit count.
-
extendDataRange
DateTimeWithCalendar extendDataRange(String var_args)
Extends the current input domain with the passed values (if such don't exist in the domain).Note: Attention! finishAutoCalc drops all passed values.
-
finishAutoCalc
void finishAutoCalc(Boolean silently)
Informs the scale that an auto-range calculation started for the chart in past was ended.
-
getTicks
void getTicks(Number fromPix, Number toPix, Interval unit, Number count)
Returns ticks array (even indexes are left borders, odd indexes are right borders of the tick) with a passed interval. Ticks fill space from the fromPix pixel to the toPix pixel (if available).
-
getTicks
void getTicks(Number fromPix, Number toPix, String unit, Number count)
Returns ticks array (even indexes are left borders, odd indexes are right borders of the tick) with a passed interval. Ticks fill space from the fromPix pixel to the toPix pixel (if available).
-
getType
void getType()
Returns scale type.
-
inverseTransform
void inverseTransform(Number ratio)
Returns tick by its position ratio.Note: returns correct values only after finishAutoCalc or chart.draw().
-
inverted
void inverted()
Getter for the scale inversion.
-
inverted
DateTimeWithCalendar inverted(Boolean enabled)
Setter for scale inversion. If the scale is inverted, axes and series go upside-down or right-to-left instead of bottom-to-top and left-to-right.
-
maximum
void maximum()
Getter for the scale maximum.
-
maximum
DateTimeWithCalendar maximum(Number maximum)
Setter for the scale maximum.
-
maximumGap
void maximumGap()
Getter for the scale maximum gap.
-
maximumGap
DateTime maximumGap(Number gap)
Setter for the scale maximum gap.
-
minimum
void minimum()
Getter for the scale minimum.
-
minimum
DateTimeWithCalendar minimum(Number minimum)
Setter for the scale minimum.
-
minimumGap
void minimumGap()
Getter for the scale minimum gap.
-
minimumGap
DateTime minimumGap(Number gap)
Setter for the scale minimum gap.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
skipHolidays
void skipHolidays()
Getter for skipping of holidays.
-
skipHolidays
DateTimeWithCalendar skipHolidays(Boolean enabled)
Setter for skipping of holidays.
-
softMaximum
void softMaximum()
Getter for the soft maximum.
-
softMaximum
DateTime softMaximum(Number maximum)
Setter for the soft maximum.
-
softMinimum
void softMinimum()
Getter for the soft minimum.
-
softMinimum
DateTime softMinimum(Number minimum)
Setter for the soft minimum.
-
startAutoCalc
DateTimeWithCalendar startAutoCalc()
Informs scale that an auto-range calculation started for the chart, so it should reset its data range on the first call of this method if needed.
-
startDate
void startDate()
Getter for the start date.
-
startDate
DateTimeWithCalendar startDate(Number date)
-
transform
void transform(String value)
Returns tick position ratio by its name.Note: returns correct values only after finishAutoCalc or chart.draw().
-
unit
void unit()
Getter for the unit interval.
-
unit
DateTimeWithCalendar unit(Interval interval)
Setter for the unit interval.
-
unit
DateTimeWithCalendar unit(String interval)
Setter for the unit interval.
-
unitPixSize
void unitPixSize()
Getter for the unit size.
-
unitPixSize
DateTimeWithCalendar unitPixSize(Number size)
Setter for the unit size.
-
unitPixSize
DateTimeWithCalendar unitPixSize(String size)
Setter for the unit size.
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
alignMaximum
void alignMaximum()
Getter for a flag if the maximum should be aligned by major ticks interval.
-
alignMaximum
DateTimeWithCalendar alignMaximum(Boolean enabled)
Getter for a flag if the maximum should be aligned by major ticks interval.
-
alignMinimum
void alignMinimum()
Setter for a flag if the minimum should be aligned by major ticks interval.
-
alignMinimum
DateTimeWithCalendar alignMinimum(Boolean enabled)
Setter for a flag if the minimum should be aligned by major ticks interval.
-
maxTicksCount
void maxTicksCount()
Getter for the maximum ticks count.
-
maxTicksCount
DateTimeWithCalendar maxTicksCount(Number count)
Setter for the maximum ticks count.
-
-
-
-