All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.highcharts4gwt.model.highcharts.option.jso.seriesscatter.JsoData Maven / Gradle / Ivy

The newest version!

package com.github.highcharts4gwt.model.highcharts.option.jso.seriesscatter;

import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.Data;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.data.ClickHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.data.Marker;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.data.MouseOutHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.data.MouseOverHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.data.RemoveHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.data.SelectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.data.UnselectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriesscatter.data.UpdateHandler;
import com.google.gwt.core.client.JavaScriptObject;


/**
 * An array of data points for the series. For the scatter series type, points can be given in the following ways:
 *  
    *
  1. An array of numerical values. In this case, the numerical values will * be interpreted as y options. The x values will be automatically calculated, * either starting at 0 and incremented by 1, or from pointStart * and pointInterval given in the series options. If the axis * has categories, these will be used. Example: *
    data: [0, 5, 3, 5]
    *
  2. *
  3. An array of arrays with 2 values. In this case, the values correspond to x,y. If the first value is a string, it is * applied as the name of the point, and the x value is inferred.

    data: [
     *     [0, 0], 
     *     [1, 8], 
     *     [2, 9]
     * ]
  4. * * *
  5. 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,
     *     y: 2,
     *     name: "Point2",
     *     color: "#00FF00"
     * }, {
     *     x: 1,
     *     y: 4,
     *     name: "Point1",
     *     color: "#FF00FF"
     * }]
  6. *
* */ 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.seriesscatter.data.ClickHandler::onClick(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesscatter/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.seriesscatter.data.MouseOutHandler::onMouseOut(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesscatter/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.seriesscatter.data.MouseOverHandler::onMouseOver(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesscatter/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.seriesscatter.data.RemoveHandler::onRemove(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesscatter/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.seriesscatter.data.SelectHandler::onSelect(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesscatter/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.seriesscatter.data.UnselectHandler::onUnselect(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesscatter/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.seriesscatter.data.UpdateHandler::onUpdate(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriesscatter/data/UpdateEvent;)( $wnd.jQuery.extend(true, event, {source: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 Marker marker() throws RuntimeException /*-{ return this["marker"] = (this["marker"] || {}); }-*/ ; public final native JsoData marker(Marker marker) throws RuntimeException /*-{ this["marker"] = marker; 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 double y() throws RuntimeException /*-{ return this["y"] = (this["y"] || null); }-*/ ; public final native JsoData y(double y) throws RuntimeException /*-{ this["y"] = y; 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 - 2024 Weber Informatics LLC | Privacy Policy