public abstract class AbstractChartSettingsBuilder<T extends ChartSettingsBuilder> extends AbstractDisplayerSettingsBuilder<T> implements ChartSettingsBuilder<T>
displayerSettings
Constructor and Description |
---|
AbstractChartSettingsBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
height(int height)
Sets the height of the chart.
|
T |
legendOff()
Hides off the char legend.
|
T |
legendOn(Position position) |
T |
legendOn(String position)
Turns on the char legend display.
|
T |
margins(int top,
int bottom,
int left,
int right)
Set the margins for this chart.
|
T |
resizableOff()
Set the chart as no resizable, it cannot change its size from the original one, defined by
width and height attributes. |
T |
resizableOn(int maxWidth,
int maxHeight)
Set the chart as resizable, it can change its size from the original one, defined by
width and height attributes. |
T |
width(int width)
Sets the width of the chart.
|
allowCsvExport, allowExcelExport, backgroundColor, buildSettings, createDisplayerSettings, dataset, expression, expression, filterOff, filterOn, format, format, format, htmlTemplate, jsTemplate, refreshOff, refreshOn, refreshOn, renderer, subtype, title, titleVisible, uuid, xAxisAngle, xAxisTitle, yAxisTitle
asc, buildColumnId, buildLookup, column, column, column, column, column, dataset, desc, dynamic, dynamic, dynamic, filter, filter, firstDay, firstMonth, fixed, getCurrentOp, group, group, join, rowNumber, rowOffset, select, sort, sort
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
backgroundColor, buildSettings, dataset, expression, expression, filterOff, filterOn, format, format, format, htmlTemplate, jsTemplate, refreshOff, refreshOn, refreshOn, renderer, subtype, title, titleVisible, uuid
public T width(int width)
ChartSettingsBuilder
width
in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
width
- The width of the chart.public T height(int height)
ChartSettingsBuilder
height
in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
height
- The height of the chart.public T margins(int top, int bottom, int left, int right)
ChartSettingsBuilder
margins
in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
top
- The top margin.bottom
- The bottom margin.left
- The left margin.right
- The right margin.public T legendOff()
ChartSettingsBuilder
legendOff
in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
public T legendOn(Position position)
legendOn
in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
public T legendOn(String position)
ChartSettingsBuilder
legendOn
in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
position
- The display position.public T resizableOn(int maxWidth, int maxHeight)
ChartSettingsBuilder
width
and height
attributes.resizableOn
in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
maxWidth
- The maximum width value.maxHeight
- The maximum height value.public T resizableOff()
ChartSettingsBuilder
width
and height
attributes.resizableOff
in interface ChartSettingsBuilder<T extends ChartSettingsBuilder>
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.