Package org.jooq
Class ChartFormat
- java.lang.Object
-
- org.jooq.ChartFormat
-
public final class ChartFormat extends java.lang.Object
- Author:
- Lukas Eder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChartFormat.Display
static class
ChartFormat.Output
The chart output format.static class
ChartFormat.Type
-
Field Summary
Fields Modifier and Type Field Description static ChartFormat
DEFAULT
-
Constructor Summary
Constructors Constructor Description ChartFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
category()
The category source column number.ChartFormat
category(int newCategory)
The new category source column number, defaulting to0
.boolean
categoryAsText()
The category as text value.ChartFormat
categoryAsText(boolean newCategoryAsText)
The new category as text value, defaulting totrue
.ChartFormat
dimensions(int newWidth, int newHeight)
The new chart dimensions, defaulting to80 x 25
.ChartFormat.Display
display()
The display format.ChartFormat
display(ChartFormat.Display newDisplay)
The new display format, defaulting toChartFormat.Display.STACKED
.int
height()
The chart height.ChartFormat
height(int newHeight)
The new chart height, defaulting to25
.java.lang.String
newline()
The newline character.ChartFormat
newline(java.lang.String newNewline)
The new newline character, defaulting to\n
.java.text.DecimalFormat
numericFormat()
The numeric format.ChartFormat
numericFormat(java.text.DecimalFormat newNumericFormat)
The new numeric format, defaulting to###,###.00
.ChartFormat.Output
output()
The output format.ChartFormat
output(ChartFormat.Output newOutput)
The new output format, defaulting toChartFormat.Output.ASCII
.char[]
shades()
The value column shades.ChartFormat
shades(char... newShades)
The new column shades, defaulting to{ 'X' }
.boolean
showHorizontalLegend()
Whether to show the horizontal legend.ChartFormat
showHorizontalLegend(boolean newShowHorizontalLegend)
Whether to show the horizontal legend, defaulting totrue
.ChartFormat
showLegends(boolean newShowHorizontalLegend, boolean newShowVerticalLegend)
Whether to show legends, defaulting totrue
.boolean
showVerticalLegend()
Whether to show the vertical legend.ChartFormat
showVerticalLegend(boolean newShowVerticalLegend)
Whether to show the vertical legend, defaulting totrue
.ChartFormat.Type
type()
ChartFormat
type(ChartFormat.Type newType)
The new chart type, defaulting toChartFormat.Type.AREA
.int[]
values()
The value source column numbers.ChartFormat
values(int... newValues)
The new value source column numbers, defaulting to{ 1 }
.int
width()
The chart width.ChartFormat
width(int newWidth)
The new chart width, defaulting to80
.
-
-
-
Field Detail
-
DEFAULT
public static final ChartFormat DEFAULT
-
-
Method Detail
-
output
public ChartFormat output(ChartFormat.Output newOutput)
The new output format, defaulting toChartFormat.Output.ASCII
.
-
output
public ChartFormat.Output output()
The output format.
-
type
public ChartFormat type(ChartFormat.Type newType)
The new chart type, defaulting toChartFormat.Type.AREA
.
-
type
public ChartFormat.Type type()
-
display
public ChartFormat display(ChartFormat.Display newDisplay)
The new display format, defaulting toChartFormat.Display.STACKED
.
-
display
public ChartFormat.Display display()
The display format.
-
dimensions
public ChartFormat dimensions(int newWidth, int newHeight)
The new chart dimensions, defaulting to80 x 25
.
-
width
public ChartFormat width(int newWidth)
The new chart width, defaulting to80
.
-
width
public int width()
The chart width.
-
height
public ChartFormat height(int newHeight)
The new chart height, defaulting to25
.
-
height
public int height()
The chart height.
-
category
public ChartFormat category(int newCategory)
The new category source column number, defaulting to0
.
-
category
public int category()
The category source column number.
-
categoryAsText
public ChartFormat categoryAsText(boolean newCategoryAsText)
The new category as text value, defaulting totrue
.
-
categoryAsText
public boolean categoryAsText()
The category as text value.
-
values
public ChartFormat values(int... newValues)
The new value source column numbers, defaulting to{ 1 }
.
-
values
public int[] values()
The value source column numbers.
-
shades
public ChartFormat shades(char... newShades)
The new column shades, defaulting to{ 'X' }
.
-
shades
public char[] shades()
The value column shades.
-
showLegends
public ChartFormat showLegends(boolean newShowHorizontalLegend, boolean newShowVerticalLegend)
Whether to show legends, defaulting totrue
.
-
showHorizontalLegend
public ChartFormat showHorizontalLegend(boolean newShowHorizontalLegend)
Whether to show the horizontal legend, defaulting totrue
.
-
showHorizontalLegend
public boolean showHorizontalLegend()
Whether to show the horizontal legend.
-
showVerticalLegend
public ChartFormat showVerticalLegend(boolean newShowVerticalLegend)
Whether to show the vertical legend, defaulting totrue
.
-
showVerticalLegend
public boolean showVerticalLegend()
Whether to show the vertical legend.
-
newline
public ChartFormat newline(java.lang.String newNewline)
The new newline character, defaulting to\n
.
-
newline
public java.lang.String newline()
The newline character.
-
numericFormat
public ChartFormat numericFormat(java.text.DecimalFormat newNumericFormat)
The new numeric format, defaulting to###,###.00
.
-
numericFormat
public java.text.DecimalFormat numericFormat()
The numeric format.
-
-