public final class ChartFormat
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ChartFormat.Display |
static class |
ChartFormat.Output
The chart output format.
|
static class |
ChartFormat.Type |
Modifier and Type | Field and Description |
---|---|
static ChartFormat |
DEFAULT |
Constructor and Description |
---|
ChartFormat() |
Modifier and Type | Method and Description |
---|---|
int |
category()
The category source column number.
|
ChartFormat |
category(int newCategory)
The new category source column number, defaulting to
0 . |
boolean |
categoryAsText()
The category as text value.
|
ChartFormat |
categoryAsText(boolean newCategoryAsText)
The new category as text value, defaulting to
true . |
ChartFormat |
dimensions(int newWidth,
int newHeight)
The new chart dimensions, defaulting to
80 x 25 . |
ChartFormat.Display |
display()
The display format.
|
ChartFormat |
display(ChartFormat.Display newDisplay)
The new display format, defaulting to
ChartFormat.Display.STACKED . |
int |
height()
The chart height.
|
ChartFormat |
height(int newHeight)
The new chart height, defaulting to
25 . |
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 to
ChartFormat.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 to
true . |
ChartFormat |
showLegends(boolean newShowHorizontalLegend,
boolean newShowVerticalLegend)
Whether to show legends, defaulting to
true . |
boolean |
showVerticalLegend()
Whether to show the vertical legend.
|
ChartFormat |
showVerticalLegend(boolean newShowVerticalLegend)
Whether to show the vertical legend, defaulting to
true . |
ChartFormat.Type |
type() |
ChartFormat |
type(ChartFormat.Type newType)
The new chart type, defaulting to
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 to
80 . |
public static final ChartFormat DEFAULT
public ChartFormat output(ChartFormat.Output newOutput)
ChartFormat.Output.ASCII
.public ChartFormat.Output output()
public ChartFormat type(ChartFormat.Type newType)
Area
.public ChartFormat.Type type()
public ChartFormat display(ChartFormat.Display newDisplay)
ChartFormat.Display.STACKED
.public ChartFormat.Display display()
public ChartFormat dimensions(int newWidth, int newHeight)
80 x 25
.public ChartFormat width(int newWidth)
80
.public int width()
public ChartFormat height(int newHeight)
25
.public int height()
public ChartFormat category(int newCategory)
0
.public int category()
public ChartFormat categoryAsText(boolean newCategoryAsText)
true
.public boolean categoryAsText()
public ChartFormat values(int... newValues)
{ 1 }
.public int[] values()
public ChartFormat shades(char... newShades)
{ 'X' }
.public char[] shades()
public ChartFormat showLegends(boolean newShowHorizontalLegend, boolean newShowVerticalLegend)
true
.public ChartFormat showHorizontalLegend(boolean newShowHorizontalLegend)
true
.public boolean showHorizontalLegend()
public ChartFormat showVerticalLegend(boolean newShowVerticalLegend)
true
.public boolean showVerticalLegend()
public ChartFormat newline(java.lang.String newNewline)
\n
.public java.lang.String newline()
public ChartFormat numericFormat(java.text.DecimalFormat newNumericFormat)
###,###.00
.public java.text.DecimalFormat numericFormat()
Copyright © 2018. All Rights Reserved.