80 x 25.
+ */
+ public ChartFormat dimensions(int newWidth, int newHeight) {
+ return new ChartFormat(
+ output,
+ type,
+ display,
+ newWidth,
+ newHeight,
+ category,
+ categoryAsText,
+ values,
+ shades,
+ showHorizontalLegend,
+ showVerticalLegend,
+ newline,
+ numericFormat
+ );
+ }
+
+ /**
+ * The new chart width, defaulting to 80.
+ */
+ public ChartFormat width(int newWidth) {
+ return dimensions(newWidth, height);
+ }
+
+ /**
+ * The chart width.
+ */
+ public int width() {
+ return width;
+ }
+
+ /**
+ * The new chart height, defaulting to 25.
+ */
+ public ChartFormat height(int newHeight) {
+ return dimensions(width, newHeight);
+ }
+
+ /**
+ * The chart height.
+ */
+ public int height() {
+ return height;
+ }
+
+ /**
+ * The new category source column number, defaulting to 0.
+ */
+ public ChartFormat category(int newCategory) {
+ return new ChartFormat(
+ output,
+ type,
+ display,
+ width,
+ height,
+ newCategory,
+ categoryAsText,
+ values,
+ shades,
+ showHorizontalLegend,
+ showVerticalLegend,
+ newline,
+ numericFormat
+ );
+ }
+
+ /**
+ * The category source column number.
+ */
+ public int category() {
+ return category;
+ }
+
+ /**
+ * The new category as text value, defaulting to true.
+ */
+ public ChartFormat categoryAsText(boolean newCategoryAsText) {
+ return new ChartFormat(
+ output,
+ type,
+ display,
+ width,
+ height,
+ category,
+ newCategoryAsText,
+ values,
+ shades,
+ showHorizontalLegend,
+ showVerticalLegend,
+ newline,
+ numericFormat
+ );
+ }
+
+ /**
+ * The category as text value.
+ */
+ public boolean categoryAsText() {
+ return categoryAsText;
+ }
+
+ /**
+ * The new value source column numbers, defaulting to { 1 }.
+ */
+ public ChartFormat values(int... newValues) {
+ return new ChartFormat(
+ output,
+ type,
+ display,
+ width,
+ height,
+ category,
+ categoryAsText,
+ newValues,
+ shades,
+ showHorizontalLegend,
+ showVerticalLegend,
+ newline,
+ numericFormat
+ );
+ }
+
+ /**
+ * The value source column numbers.
+ */
+ public int[] values() {
+ return values;
+ }
+
+ /**
+ * The new column shades, defaulting to { 'X' }.
+ */
+ public ChartFormat shades(char... newShades) {
+ return new ChartFormat(
+ output,
+ type,
+ display,
+ width,
+ height,
+ category,
+ categoryAsText,
+ values,
+ newShades,
+ showHorizontalLegend,
+ showVerticalLegend,
+ newline,
+ numericFormat
+ );
+ }
+
+ /**
+ * The value column shades.
+ */
+ public char[] shades() {
+ return shades;
+ }
+
+ /**
+ * Whether to show legends, defaulting to true.
+ */
+ public ChartFormat showLegends(boolean newShowHorizontalLegend, boolean newShowVerticalLegend) {
+ return new ChartFormat(
+ output,
+ type,
+ display,
+ width,
+ height,
+ category,
+ categoryAsText,
+ values,
+ shades,
+ newShowHorizontalLegend,
+ newShowVerticalLegend,
+ newline,
+ numericFormat
+ );
+ }
+
+ /**
+ * Whether to show the horizontal legend, defaulting to true.
+ */
+ public ChartFormat showHorizontalLegend(boolean newShowHorizontalLegend) {
+ return showLegends(newShowHorizontalLegend, showVerticalLegend);
+ }
+
+ /**
+ * Whether to show the horizontal legend.
+ */
+ public boolean showHorizontalLegend() {
+ return showHorizontalLegend;
+ }
+
+ /**
+ * Whether to show the vertical legend, defaulting to true.
+ */
+ public ChartFormat showVerticalLegend(boolean newShowVerticalLegend) {
+ return showLegends(showHorizontalLegend, newShowVerticalLegend);
+ }
+
+ /**
+ * Whether to show the vertical legend.
+ */
+ public boolean showVerticalLegend() {
+ return showVerticalLegend;
+ }
+
+ /**
+ * The new newline character, defaulting to \n.
+ */
+ public ChartFormat newline(String newNewline) {
+ return new ChartFormat(
+ output,
+ type,
+ display,
+ width,
+ height,
+ category,
+ categoryAsText,
+ values,
+ shades,
+ showHorizontalLegend,
+ showVerticalLegend,
+ newNewline,
+ numericFormat
+ );
+ }
+
+ /**
+ * The newline character.
+ */
+ public String newline() {
+ return newline;
+ }
+
+ /**
+ * The new numeric format, defaulting to ###,###.00.
+ */
+ public ChartFormat numericFormat(DecimalFormat newNumericFormat) {
+ return new ChartFormat(
+ output,
+ type,
+ display,
+ width,
+ height,
+ category,
+ categoryAsText,
+ values,
+ shades,
+ showHorizontalLegend,
+ showVerticalLegend,
+ newline,
+ newNumericFormat
+ );
+ }
+
+ /**
+ * The numeric format.
+ */
+ public DecimalFormat numericFormat() {
+ return numericFormat;
+ }
+
+ /**
+ * The chart output format.
+ */
+ public enum Output {
+
+ /**
+ * An ASCII chart.
+ */
+ ASCII,
+
+// /**
+// * An ANSI escape sequenced chart.
+// */
+// ANSI,
+//
+// /**
+// * An SVG chart.
+// */
+// SVG,
+
+ }
+
+ public static enum Type {
+
+ /**
+ * An area chart.
+ */
+ AREA,
+ }
+
+ public static enum Display {
+
+ /**
+ * The areas are located in front of one another.
+ */
+ DEFAULT,
+
+ /**
+ * The areas are stacked on top of one another.
+ */
+ STACKED,
+
+ /**
+ * The areas stack up to 100%.
+ */
+ HUNDRED_PERCENT_STACKED
+ }
+}
diff --git a/jOOQ/src/main/java/org/jooq/Result.java b/jOOQ/src/main/java/org/jooq/Result.java
index 207312930a..d8e59f0128 100644
--- a/jOOQ/src/main/java/org/jooq/Result.java
+++ b/jOOQ/src/main/java/org/jooq/Result.java
@@ -630,6 +630,10 @@ public interface ResultINSERT statements.
*
@@ -747,6 +751,20 @@ public interface Result