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

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

The newest version!

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

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


/**
 * An array of data points for the series. For the treemap 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 value options. Example: *
    data: [0, 5, 3, 5]
    *
  2. *
  3. 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: [{
     *     value: 7,
     *     name: "Point2",
     *     color: "#00FF00"
     * }, {
     *     value: 2,
     *     name: "Point1",
     *     color: "#FF00FF"
     * }]
  4. *
* */ public class JsoData extends JavaScriptObject implements Data { protected JsoData() { } public final native String color() throws RuntimeException /*-{ return this["color"] = (this["color"] || "null"); }-*/ ; public final native JsoData color(String color) throws RuntimeException /*-{ this["color"] = color; return this; }-*/ ; public final native double colorValue() throws RuntimeException /*-{ return this["colorValue"] = (this["colorValue"] || undefined); }-*/ ; public final native JsoData colorValue(double colorValue) throws RuntimeException /*-{ this["colorValue"] = colorValue; 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.seriestreemap.data.ClickHandler::onClick(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriestreemap/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.seriestreemap.data.MouseOutHandler::onMouseOut(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriestreemap/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.seriestreemap.data.MouseOverHandler::onMouseOver(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriestreemap/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.seriestreemap.data.RemoveHandler::onRemove(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriestreemap/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.seriestreemap.data.SelectHandler::onSelect(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriestreemap/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.seriestreemap.data.UnselectHandler::onUnselect(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriestreemap/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.seriestreemap.data.UpdateHandler::onUpdate(Lcom/github/highcharts4gwt/model/highcharts/option/api/seriestreemap/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 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 String parent() throws RuntimeException /*-{ return this["parent"] = (this["parent"] || "undefined"); }-*/ ; public final native JsoData parent(String parent) throws RuntimeException /*-{ this["parent"] = parent; 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 value() throws RuntimeException /*-{ return this["value"] = (this["value"] || null); }-*/ ; public final native JsoData value(double value) throws RuntimeException /*-{ this["value"] = value; 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