fsw.write("\"point\":{"); fsw.write(this.point.encode()); fsw.write("}"); fsw.write(preString + "\"line\":{"); fsw.write(this.line.encode()); fsw.write("}"); fsw.write(preString + "\"rectangle\":{"); fsw.write(this.rectangle.encode()); fsw.write("}"); fsw.write(preString + "\"arc\":{"); fsw.write(this.arc.encode()); fsw.write("}");
/** * 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 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 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(); } }
fsw.write("{\"start\":" + encodeDate(browserTZ, targetTZ, event.getStartDate())); fsw.write(",\"end\":" + encodeDate(browserTZ, targetTZ, event.getEndDate())); fsw.write(",\"end\":null"); fsw.write(",\"editable\":" + event.isEditable()); fsw.write(",\"editable\":null"); fsw.write(",\"group\":\"" + groupContent + "\""); fsw.write(",\"group\":\"" + groupsContent.get(foundGroup.getId()) + "\""); fswHtml.reset(); fsw.write(",\"group\":\"" + prefix + foundGroup.getData().toString() + "\""); fsw.write(",\"group\":null"); fsw.write(",\"group\":\"" + event.getGroup() + "\""); fsw.write(",\"group\":null"); fsw.write(",\"className\":\"" + event.getStyleClass() + "\""); fsw.write(",\"className\":null"); fsw.write(",\"content\":\""); if (timeline.getChildCount() > 0) {
/** * 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 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 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 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 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 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(); } }