Package org.dashbuilder.displayer.impl
Class AbstractChartSettingsBuilder<T extends ChartSettingsBuilder>
- java.lang.Object
-
- org.dashbuilder.dataset.impl.AbstractDataSetLookupBuilder<T>
-
- org.dashbuilder.displayer.impl.AbstractDisplayerSettingsBuilder<T>
-
- org.dashbuilder.displayer.impl.AbstractChartSettingsBuilder<T>
-
- All Implemented Interfaces:
org.dashbuilder.dataset.DataSetLookupBuilder<T>,ChartSettingsBuilder<T>,DisplayerSettingsBuilder<T>
- Direct Known Subclasses:
AbstractXAxisChartSettingsBuilder,BubbleChartSettingsBuilderImpl,ExternalDisplayerSettingsBuilderImpl,MeterChartSettingsBuilderImpl,MetricSettingsBuilderImpl
public abstract class AbstractChartSettingsBuilder<T extends ChartSettingsBuilder> extends AbstractDisplayerSettingsBuilder<T> implements ChartSettingsBuilder<T>
-
-
Field Summary
-
Fields inherited from class org.dashbuilder.displayer.impl.AbstractDisplayerSettingsBuilder
displayerSettings
-
-
Constructor Summary
Constructors Constructor Description AbstractChartSettingsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Theight(int height)Sets the height of the chart.TlegendOff()Hides off the char legend.TlegendOn(String position)Turns on the char legend display.TlegendOn(Position position)Tmargins(int top, int bottom, int left, int right)Set the margins for this chart.TresizableOff()Set the chart as no resizable, it cannot change its size from the original one, defined bywidthandheightattributes.TresizableOn(int maxWidth, int maxHeight)Set the chart as resizable, it can change its size from the original one, defined bywidthandheightattributes.Twidth(int width)Sets the width of the chart.-
Methods inherited from class org.dashbuilder.displayer.impl.AbstractDisplayerSettingsBuilder
allowCsvExport, allowExcelExport, backgroundColor, buildSettings, createDisplayerSettings, dataset, expression, expression, filterOff, filterOn, format, format, format, htmlTemplate, jsTemplate, refreshOff, refreshOn, refreshOn, renderer, subtype, title, titleVisible, uuid, xAxisAngle, xAxisShowLabels, xAxisTitle, yAxisShowLabels, yAxisTitle
-
Methods inherited from class org.dashbuilder.dataset.impl.AbstractDataSetLookupBuilder
asc, buildColumnId, buildLookup, column, column, column, column, column, dataset, desc, dynamic, dynamic, dynamic, filter, filter, firstDay, firstMonth, fixed, getCurrentOp, group, group, group, join, rowNumber, rowOffset, select, sort, sort
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dashbuilder.dataset.DataSetLookupBuilder
asc, buildLookup, column, column, column, column, column, dataset, desc, dynamic, dynamic, dynamic, filter, filter, firstDay, firstMonth, fixed, group, group, group, join, rowNumber, rowOffset, select, sort, sort
-
Methods inherited from interface org.dashbuilder.displayer.DisplayerSettingsBuilder
backgroundColor, buildSettings, dataset, expression, expression, filterOff, filterOn, format, format, format, htmlTemplate, jsTemplate, refreshOff, refreshOn, refreshOn, renderer, subtype, title, titleVisible, uuid
-
-
-
-
Method Detail
-
width
public T width(int width)
Description copied from interface:ChartSettingsBuilderSets the width of the chart.- Specified by:
widthin interfaceChartSettingsBuilder<T extends ChartSettingsBuilder>- Parameters:
width- The width of the chart.- Returns:
- The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
-
height
public T height(int height)
Description copied from interface:ChartSettingsBuilderSets the height of the chart.- Specified by:
heightin interfaceChartSettingsBuilder<T extends ChartSettingsBuilder>- Parameters:
height- The height of the chart.- Returns:
- The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
-
margins
public T margins(int top, int bottom, int left, int right)
Description copied from interface:ChartSettingsBuilderSet the margins for this chart.- Specified by:
marginsin interfaceChartSettingsBuilder<T extends ChartSettingsBuilder>- Parameters:
top- The top margin.bottom- The bottom margin.left- The left margin.right- The right margin.- Returns:
- The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
-
legendOff
public T legendOff()
Description copied from interface:ChartSettingsBuilderHides off the char legend.- Specified by:
legendOffin interfaceChartSettingsBuilder<T extends ChartSettingsBuilder>- Returns:
- The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
-
legendOn
public T legendOn(Position position)
- Specified by:
legendOnin interfaceChartSettingsBuilder<T extends ChartSettingsBuilder>
-
legendOn
public T legendOn(String position)
Description copied from interface:ChartSettingsBuilderTurns on the char legend display.- Specified by:
legendOnin interfaceChartSettingsBuilder<T extends ChartSettingsBuilder>- Parameters:
position- The display position.- Returns:
- The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
-
resizableOn
public T resizableOn(int maxWidth, int maxHeight)
Description copied from interface:ChartSettingsBuilderSet the chart as resizable, it can change its size from the original one, defined bywidthandheightattributes.- Specified by:
resizableOnin interfaceChartSettingsBuilder<T extends ChartSettingsBuilder>- Parameters:
maxWidth- The maximum width value.maxHeight- The maximum height value.- Returns:
- The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
-
resizableOff
public T resizableOff()
Description copied from interface:ChartSettingsBuilderSet the chart as no resizable, it cannot change its size from the original one, defined bywidthandheightattributes.- Specified by:
resizableOffin interfaceChartSettingsBuilder<T extends ChartSettingsBuilder>- Returns:
- The DisplayerSettingsBuilder instance that is being used to configure a Chart data displayer.
-
-