@Override
public void serialize(XYChart xychart, JsonGenerator jgen, SerializerProvider sp)
throws IOException, JsonProcessingException {
jgen.writeStartObject();
serialize(xychart, jgen);
jgen.writeObjectField(GRAPHICS_LIST, xychart.getGraphics());
jgen.writeObjectField(CONSTANT_LINES, xychart.getConstantLines());
jgen.writeObjectField(CONSTANT_BANDS, xychart.getConstantBands());
jgen.writeObjectField(RASTERS, xychart.getRasters());
jgen.writeObjectField(TEXTS, xychart.getTexts());
jgen.writeObjectField(X_AUTO_RANGE, xychart.getXAutoRange());
jgen.writeObjectField(X_LOWER_BOUND, xychart.getXLowerBound());
jgen.writeObjectField(X_UPPER_BOUND, xychart.getXUpperBound());
jgen.writeObjectField(LOG_X, xychart.getLogX());
jgen.writeObjectField(X_LOG_BASE, xychart.getXLogBase());
if (xychart.getLodThreshold() != null) {
jgen.writeObjectField(LOD_THRESHOLD, xychart.getLodThreshold());
}
jgen.writeObjectField(X_TICK_LABELS_VISIBLE, xychart.isxTickLabelsVisible());
jgen.writeObjectField(Y_TICK_LABELS_VISIBLE, xychart.isyTickLabelsVisible());
jgen.writeEndObject();
}