
com.github.highcharts4gwt.model.highcharts.option.jso.xaxis.JsoPlotLine 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.xaxis;
import com.github.highcharts4gwt.model.highcharts.option.api.xaxis.PlotLine;
import com.github.highcharts4gwt.model.highcharts.option.api.xaxis.plotlines.Label;
import com.google.gwt.core.client.JavaScriptObject;
/**
* An array of lines stretching across the plot area, marking a specific value on one of the axes.
*
*/
public class JsoPlotLine
extends JavaScriptObject
implements PlotLine
{
protected JsoPlotLine() {
}
public final native String color()
throws RuntimeException /*-{
return this["color"] = (this["color"] || "null");
}-*/
;
public final native JsoPlotLine color(String color)
throws RuntimeException /*-{
this["color"] = color;
return this;
}-*/
;
public final native String dashStyle()
throws RuntimeException /*-{
return this["dashStyle"] = (this["dashStyle"] || "Solid");
}-*/
;
public final native JsoPlotLine dashStyle(String dashStyle)
throws RuntimeException /*-{
this["dashStyle"] = dashStyle;
return this;
}-*/
;
public final native String id()
throws RuntimeException /*-{
return this["id"] = (this["id"] || "null");
}-*/
;
public final native JsoPlotLine id(String id)
throws RuntimeException /*-{
this["id"] = id;
return this;
}-*/
;
public final native Label label()
throws RuntimeException /*-{
return this["label"] = (this["label"] || {});
}-*/
;
public final native JsoPlotLine label(Label label)
throws RuntimeException /*-{
this["label"] = label;
return this;
}-*/
;
public final native double value()
throws RuntimeException /*-{
return this["value"] = (this["value"] || null);
}-*/
;
public final native JsoPlotLine value(double value)
throws RuntimeException /*-{
this["value"] = value;
return this;
}-*/
;
public final native double width()
throws RuntimeException /*-{
return this["width"] = (this["width"] || null);
}-*/
;
public final native JsoPlotLine width(double width)
throws RuntimeException /*-{
this["width"] = width;
return this;
}-*/
;
public final native double zIndex()
throws RuntimeException /*-{
return this["zIndex"] = (this["zIndex"] || null);
}-*/
;
public final native JsoPlotLine zIndex(double zIndex)
throws RuntimeException /*-{
this["zIndex"] = zIndex;
return this;
}-*/
;
public final native String getFieldAsJsonObject(String fieldName)
throws RuntimeException /*-{
this[fieldName] = (this[fieldName] || {});
return JSON.stringify(this[fieldName]);
}-*/
;
public final native JsoPlotLine 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 JsoPlotLine setFunctionAsString(String fieldName, String functionAsString)
throws RuntimeException /*-{
this[fieldName] = eval('(' + functionAsString + ')');
return this;
}-*/
;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy