
com.github.highcharts4gwt.model.highcharts.option.jso.seriesareasplinerange.JsoData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of highcharts Show documentation
Show all versions of highcharts Show documentation
GWT wrapper for highcharts library.
The newest version!
package com.github.highcharts4gwt.model.highcharts.option.jso.seriesareasplinerange;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.Data;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.ClickHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.MouseOutHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.MouseOverHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.RemoveHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.SelectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.UnselectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.UpdateHandler;
import com.google.gwt.core.client.JavaScriptObject;
/**
* An array of data points for the series. For the areasplinerange
series type, points can be given in the following ways:
*
* An array of arrays with 3 or 2 values. In this case, the values correspond to x,low,high
. If the first value is a string, it is
* applied as the name of the point, and the x
value is inferred. The x
value can also be omitted, in which case the inner arrays should be of length 2. Then the x
value is automatically calculated, either starting at 0 and incremented by 1, or from pointStart
* and pointInterval
given in the series options.
* data: [
* [0, 0, 5],
* [1, 9, 1],
* [2, 5, 2]
* ]
*
*
* An array of objects with named values. The objects are
* point configuration objects as seen below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
*
* data: [{
* x: 1,
* low: 5,
* high: 0,
* name: "Point2",
* color: "#00FF00"
* }, {
* x: 1,
* low: 4,
* high: 1,
* name: "Point1",
* color: "#FF00FF"
* }]
*
*
*/
public class JsoData
extends JavaScriptObject
implements Data
{
protected JsoData() {
}
public final native String color()
throws RuntimeException /*-{
return this["color"] = (this["color"] || "undefined");
}-*/
;
public final native JsoData color(String color)
throws RuntimeException /*-{
this["color"] = color;
return this;
}-*/
;
public final native String dataLabels()
throws RuntimeException /*-{
this["dataLabels"] = (this["dataLabels"] || {});
return JSON.stringify(this["dataLabels"]);
}-*/
;
public final native JsoData dataLabels(String dataLabelsAsJsonString)
throws RuntimeException /*-{
this["dataLabels"] = JSON.parse(dataLabelsAsJsonString);
return this;
}-*/
;
public final native String drilldown()
throws RuntimeException /*-{
return this["drilldown"] = (this["drilldown"] || "");
}-*/
;
public final native JsoData drilldown(String drilldown)
throws RuntimeException /*-{
this["drilldown"] = drilldown;
return this;
}-*/
;
public final native void addClickHandler(ClickHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
click: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.ClickHandler::onClick(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesareasplinerange/data/ClickEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addMouseOutHandler(MouseOutHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
mouseOut: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.MouseOutHandler::onMouseOut(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesareasplinerange/data/MouseOutEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addMouseOverHandler(MouseOverHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
mouseOver: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.MouseOverHandler::onMouseOver(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesareasplinerange/data/MouseOverEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addRemoveHandler(RemoveHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
remove: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.RemoveHandler::onRemove(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesareasplinerange/data/RemoveEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addSelectHandler(SelectHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
select: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.SelectHandler::onSelect(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesareasplinerange/data/SelectEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addUnselectHandler(UnselectHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
unselect: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.UnselectHandler::onUnselect(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesareasplinerange/data/UnselectEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native void addUpdateHandler(UpdateHandler handler)
throws RuntimeException
/*-{
$wnd.jQuery.extend(true, this,
{
events: {
update: function(event) {
handler.@com.github.highcharts4gwt.model.highcharts.option.api.seriesareasplinerange.data.UpdateHandler::onUpdate(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesareasplinerange/data/UpdateEvent;)(
$wnd.jQuery.extend(true, event, {source:this})
);
}
}
});
}-*/;
;
public final native double high()
throws RuntimeException /*-{
return this["high"] = (this["high"] || null);
}-*/
;
public final native JsoData high(double high)
throws RuntimeException /*-{
this["high"] = high;
return this;
}-*/
;
public final native String id()
throws RuntimeException /*-{
return this["id"] = (this["id"] || "null");
}-*/
;
public final native JsoData id(String id)
throws RuntimeException /*-{
this["id"] = id;
return this;
}-*/
;
public final native double low()
throws RuntimeException /*-{
return this["low"] = (this["low"] || null);
}-*/
;
public final native JsoData low(double low)
throws RuntimeException /*-{
this["low"] = low;
return this;
}-*/
;
public final native String name()
throws RuntimeException /*-{
return this["name"] = (this["name"] || "null");
}-*/
;
public final native JsoData name(String name)
throws RuntimeException /*-{
this["name"] = name;
return this;
}-*/
;
public final native boolean selected()
throws RuntimeException /*-{
return this["selected"] = (this["selected"] || false);
}-*/
;
public final native JsoData selected(boolean selected)
throws RuntimeException /*-{
this["selected"] = selected;
return this;
}-*/
;
public final native double x()
throws RuntimeException /*-{
return this["x"] = (this["x"] || null);
}-*/
;
public final native JsoData x(double x)
throws RuntimeException /*-{
this["x"] = x;
return this;
}-*/
;
public final native String getFieldAsJsonObject(String fieldName)
throws RuntimeException /*-{
this[fieldName] = (this[fieldName] || {});
return JSON.stringify(this[fieldName]);
}-*/
;
public final native JsoData setFieldAsJsonObject(String fieldName, String fieldValueAsJsonObject)
throws RuntimeException /*-{
this[fieldName] = JSON.parse(fieldValueAsJsonObject);
return this;
}-*/
;
public final native String getFunctionAsString(String fieldName)
throws RuntimeException /*-{
this[fieldName] = (this[fieldName] || {});
return JSON.stringify(this[fieldName]);
}-*/
;
public final native JsoData setFunctionAsString(String fieldName, String functionAsString)
throws RuntimeException /*-{
this[fieldName] = eval('(' + functionAsString + ')');
return this;
}-*/
;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy