/** * Write the arc options of Elements * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "borderWidth", this.borderWidth, false); ChartUtils.writeDataValue(fsw, "backgroundColor", this.backgroundColor, true); ChartUtils.writeDataValue(fsw, "borderColor", this.borderColor, true); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the rectangle options of Elements * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "borderSkipped", this.borderSkipped, false); ChartUtils.writeDataValue(fsw, "backgroundColor", this.backgroundColor, true); ChartUtils.writeDataValue(fsw, "borderWidth", this.borderWidth, true); ChartUtils.writeDataValue(fsw, "borderColor", this.borderColor, true); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the options of angled lines on radial linear type * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write("{"); ChartUtils.writeDataValue(fsw, "display", this.display, false); ChartUtils.writeDataValue(fsw, "color", this.color, true); ChartUtils.writeDataValue(fsw, "lineWidth", this.lineWidth, true); fsw.write("}"); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the options of cartesian category ticks * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ @Override public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write(super.encode()); ChartUtils.writeDataValue(fsw, "labels", this.labels, true); ChartUtils.writeDataValue(fsw, "min", this.min, true); ChartUtils.writeDataValue(fsw, "max", this.max, true); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the options of point labels on radial linear type * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write("{"); ChartUtils.writeDataValue(fsw, "fontSize", this.fontSize, false); ChartUtils.writeDataValue(fsw, "fontColor", this.fontColor, true); ChartUtils.writeDataValue(fsw, "fontFamily", this.fontFamily, true); ChartUtils.writeDataValue(fsw, "fontStyle", this.fontStyle, true); fsw.write("}"); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the common ticks options of axes * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "display", this.display, false); ChartUtils.writeDataValue(fsw, "fontColor", this.fontColor, true); ChartUtils.writeDataValue(fsw, "fontFamily", this.fontFamily, true); ChartUtils.writeDataValue(fsw, "fontSize", this.fontSize, true); ChartUtils.writeDataValue(fsw, "fontStyle", this.fontStyle, true); ChartUtils.writeDataValue(fsw, "reverse", this.reverse, true); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the common options of cartesian axes * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "display", this.display, false); ChartUtils.writeDataValue(fsw, "position", this.position, true); ChartUtils.writeDataValue(fsw, "fullWidth", this.fullWidth, true); ChartUtils.writeDataValue(fsw, "reverse", this.reverse, true); if (this.labels != null) { fsw.write(",\"labels\":" + this.labels.encode()); } } finally { fsw.close(); } return fsw.toString(); }
/** * Write the common ticks options * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "autoSkip", this.autoSkip, false); ChartUtils.writeDataValue(fsw, "autoSkipPadding", this.autoSkipPadding, true); ChartUtils.writeDataValue(fsw, "labelOffset", this.labelOffset, true); ChartUtils.writeDataValue(fsw, "maxRotation", this.maxRotation, true); ChartUtils.writeDataValue(fsw, "minRotation", this.minRotation, true); ChartUtils.writeDataValue(fsw, "mirror", this.mirror, true); ChartUtils.writeDataValue(fsw, "padding", this.padding, true); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the options of cartesian category axes * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ @Override public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write(super.encode()); if (this.type != null) { fsw.write(",\"type\":\"" + this.type + "\""); } if (this.ticks != null) { fsw.write(",\"ticks\":{"); fsw.write(this.ticks.encode()); fsw.write("}"); } } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the point options of Elements * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "radius", this.radius, false); ChartUtils.writeDataValue(fsw, "pointStyle", this.pointStyle, true); ChartUtils.writeDataValue(fsw, "backgroundColor", this.backgroundColor, true); ChartUtils.writeDataValue(fsw, "borderWidth", this.borderWidth, true); ChartUtils.writeDataValue(fsw, "borderColor", this.borderColor, true); ChartUtils.writeDataValue(fsw, "hitRadius", this.hitRadius, true); ChartUtils.writeDataValue(fsw, "hoverRadius", this.hoverRadius, true); ChartUtils.writeDataValue(fsw, "hoverBorderWidth", this.hoverBorderWidth, true); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the options of scale label * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write("{"); ChartUtils.writeDataValue(fsw, "usePointStyle", this.usePointStyle, false); ChartUtils.writeDataValue(fsw, "fontColor", this.fontColor, true); ChartUtils.writeDataValue(fsw, "fontFamily", this.fontFamily, true); ChartUtils.writeDataValue(fsw, "fontSize", this.fontSize, true); ChartUtils.writeDataValue(fsw, "fontStyle", this.fontStyle, true); ChartUtils.writeDataValue(fsw, "padding", this.padding, true); ChartUtils.writeDataValue(fsw, "boxWidth", this.boxWidth, true); fsw.write("}"); } finally { fsw.close(); } return fsw.toString(); }
/** * Write the common options of cartesian axes * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "offset", this.offset, false); ChartUtils.writeDataValue(fsw, "position", this.position, true); ChartUtils.writeDataValue(fsw, "id", this.id, true); ChartUtils.writeDataValue(fsw, "stacked", this.stacked, true); if (this.gridLines != null) { fsw.write(",\"gridLines\":" + this.gridLines.encode()); } if (this.scaleLabel != null) { fsw.write(",\"scaleLabel\":" + this.scaleLabel.encode()); } } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the options of cartesian linear ticks * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ @Override public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write(super.encode()); ChartUtils.writeDataValue(fsw, "beginAtZero", this.beginAtZero, true); ChartUtils.writeDataValue(fsw, "min", this.min, true); ChartUtils.writeDataValue(fsw, "max", this.max, true); ChartUtils.writeDataValue(fsw, "maxTicksLimit", this.maxTicksLimit, true); ChartUtils.writeDataValue(fsw, "stepSize", this.stepSize, true); ChartUtils.writeDataValue(fsw, "suggestedMax", this.suggestedMax, true); ChartUtils.writeDataValue(fsw, "suggestedMin", this.suggestedMin, true); } finally { fsw.close(); } return fsw.toString(); } }
return fsw.toString();
/** * Write the options of Title * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "display", this.display, false); ChartUtils.writeDataValue(fsw, "position", this.position, true); ChartUtils.writeDataValue(fsw, "fontSize", this.fontSize, true); ChartUtils.writeDataValue(fsw, "fontFamily", this.fontFamily, true); ChartUtils.writeDataValue(fsw, "fontColor", this.fontColor, true); ChartUtils.writeDataValue(fsw, "fontStyle", this.fontStyle, true); ChartUtils.writeDataValue(fsw, "padding", this.padding, true); ChartUtils.writeDataValue(fsw, "lineHeight", this.lineHeight, true); ChartUtils.writeDataValue(fsw, "text", this.text, true); } finally { fsw.close(); } return fsw.toString(); } }
return fsw.toString();
/** * Write the options of scale label * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { fsw.write("{"); ChartUtils.writeDataValue(fsw, "display", this.display, false); ChartUtils.writeDataValue(fsw, "labelString", this.labelString, true); ChartUtils.writeDataValue(fsw, "lineHeight", this.lineHeight, true); ChartUtils.writeDataValue(fsw, "fontColor", this.fontColor, true); ChartUtils.writeDataValue(fsw, "fontFamily", this.fontFamily, true); ChartUtils.writeDataValue(fsw, "fontSize", this.fontSize, true); ChartUtils.writeDataValue(fsw, "fontStyle", this.fontStyle, true); ChartUtils.writeDataValue(fsw, "padding", this.padding, true); fsw.write("}"); } finally { fsw.close(); } return fsw.toString(); } }
/** * Write the line options of Elements * * @return options as JSON object * @throws java.io.IOException If an I/O error occurs */ public String encode() throws IOException { FastStringWriter fsw = new FastStringWriter(); try { ChartUtils.writeDataValue(fsw, "tension", this.tension, false); ChartUtils.writeDataValue(fsw, "backgroundColor", this.backgroundColor, true); ChartUtils.writeDataValue(fsw, "borderWidth", this.borderWidth, true); ChartUtils.writeDataValue(fsw, "borderColor", this.borderColor, true); ChartUtils.writeDataValue(fsw, "borderCapStyle", this.borderCapStyle, true); ChartUtils.writeDataValue(fsw, "borderDash", this.borderDash, true); ChartUtils.writeDataValue(fsw, "borderDashOffset", this.borderDashOffset, true); ChartUtils.writeDataValue(fsw, "borderJoinStyle", this.borderJoinStyle, true); ChartUtils.writeDataValue(fsw, "capBezierPoints", this.capBezierPoints, true); ChartUtils.writeDataValue(fsw, "fill", this.fill, true); ChartUtils.writeDataValue(fsw, "stepped", this.stepped, true); } finally { fsw.close(); } return fsw.toString(); } }
return fsw.toString();
return fsw.toString();