public static class ChartOptions.Default extends Object implements ChartOptions
ChartOptions.Default| Modifier and Type | Field and Description |
|---|---|
private String |
id |
private Dimension |
preferredSize |
| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getId()
Returns the id for this chart
|
Optional<Dimension> |
getPreferredSize()
Returns the preferred size for this chart
|
ChartOptions |
withId(String id)
Sets an id for this chart
|
ChartOptions |
withPreferredSize(int width,
int height)
Sets the preferred size for the chart
|
public Optional<String> getId()
ChartOptionsgetId in interface ChartOptionspublic Optional<Dimension> getPreferredSize()
ChartOptionsgetPreferredSize in interface ChartOptionspublic ChartOptions withId(String id)
ChartOptionswithId in interface ChartOptionsid - the id string for chartpublic ChartOptions withPreferredSize(int width, int height)
ChartOptionswithPreferredSize in interface ChartOptionswidth - the preferred width in pixelsheight - the preferred heigth in pixelsCopyright 2014-2017, Xavier Witdouck