From bc3ff938544d3ae512afca458119a5ce6a79e0d4 Mon Sep 17 00:00:00 2001 From: Sayo Oladeji Date: Tue, 5 Dec 2017 14:24:37 +0200 Subject: [PATCH] CHARTS-693: Remove style config vaadin/vaadin-charts-flow#56 * Remove unused config from example * Removed Handles Web-component: vaadin-charts --- .../charts/model/AbstractDataLabels.java | 40 ------ .../addon/charts/model/AreaOptions.java | 13 -- .../com/vaadin/addon/charts/model/Axis.java | 40 ------ .../vaadin/addon/charts/model/Background.java | 51 ------- .../addon/charts/model/ColumnOptions.java | 13 -- .../addon/charts/model/ContextButton.java | 71 ---------- .../vaadin/addon/charts/model/Credits.java | 23 ---- .../vaadin/addon/charts/model/DataLabels.java | 77 ----------- .../addon/charts/model/DataLabelsFunnel.java | 77 ----------- .../addon/charts/model/DataLabelsRange.java | 79 ----------- .../vaadin/addon/charts/model/Handles.java | 57 -------- .../com/vaadin/addon/charts/model/Legend.java | 122 ----------------- .../addon/charts/model/LegendNavigation.java | 56 -------- .../addon/charts/model/LegendTitle.java | 22 --- .../vaadin/addon/charts/model/Loading.java | 44 ------ .../vaadin/addon/charts/model/Navigation.java | 69 ---------- .../vaadin/addon/charts/model/Navigator.java | 84 ------------ .../com/vaadin/addon/charts/model/NoData.java | 23 ---- .../addon/charts/model/OhlcOptions.java | 13 -- .../addon/charts/model/PlotOptionsArea.java | 32 ----- .../charts/model/PlotOptionsArearange.java | 32 ----- .../charts/model/PlotOptionsAreaspline.java | 32 ----- .../model/PlotOptionsAreasplinerange.java | 32 ----- .../addon/charts/model/PlotOptionsBar.java | 32 ----- .../charts/model/PlotOptionsBoxplot.java | 34 +---- .../addon/charts/model/PlotOptionsBubble.java | 34 +---- .../charts/model/PlotOptionsCandlestick.java | 34 +---- .../addon/charts/model/PlotOptionsColumn.java | 32 ----- .../charts/model/PlotOptionsColumnrange.java | 32 ----- .../charts/model/PlotOptionsErrorbar.java | 21 +-- .../addon/charts/model/PlotOptionsFlags.java | 34 +---- .../addon/charts/model/PlotOptionsGauge.java | 34 +---- .../charts/model/PlotOptionsHeatmap.java | 20 --- .../addon/charts/model/PlotOptionsLine.java | 34 +---- .../addon/charts/model/PlotOptionsOhlc.java | 34 +---- .../charts/model/PlotOptionsPolygon.java | 34 +---- .../charts/model/PlotOptionsScatter.java | 34 +---- .../addon/charts/model/PlotOptionsSeries.java | 84 +----------- .../addon/charts/model/PlotOptionsSpline.java | 34 +---- .../charts/model/PlotOptionsTreemap.java | 20 --- .../charts/model/PlotOptionsWaterfall.java | 32 ----- .../addon/charts/model/PointOptions.java | 13 -- .../addon/charts/model/RangeSelector.java | 98 -------------- .../addon/charts/model/StackLabels.java | 34 ----- .../vaadin/addon/charts/model/Subtitle.java | 31 ----- .../com/vaadin/addon/charts/model/Title.java | 32 ----- .../com/vaadin/addon/charts/model/XAxis.java | 105 -------------- .../com/vaadin/addon/charts/model/YAxis.java | 96 ------------- .../com/vaadin/addon/charts/model/ZAxis.java | 52 ------- .../addon/charts/model/style/AxisStyle.java | 75 ---------- .../addon/charts/model/style/ChartStyle.java | 128 ------------------ .../examples/combinations/MultipleAxes.java | 2 - .../examples/dynamic/DynamicExtremes.java | 2 +- 53 files changed, 13 insertions(+), 2370 deletions(-) delete mode 100644 model/src/main/java/com/vaadin/addon/charts/model/Handles.java diff --git a/model/src/main/java/com/vaadin/addon/charts/model/AbstractDataLabels.java b/model/src/main/java/com/vaadin/addon/charts/model/AbstractDataLabels.java index c5bd15fd56a..cc8c4b6c9ef 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/AbstractDataLabels.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/AbstractDataLabels.java @@ -25,26 +25,6 @@ public abstract class AbstractDataLabels extends AbstractConfigurationObject { public static final String OVERFLOW_JUSTIFY = "justify"; public static final String OVERFLOW_NONE = "none"; - /** - * @see #setBackgroundColor(Color) - */ - public abstract Color getBackgroundColor(); - - /** - * The background color or gradient for the data label. - */ - public abstract void setBackgroundColor(Color backgroundColor); - - /** - * @see #setBorderColor(Color) - */ - public abstract Color getBorderColor(); - - /** - * The border color for the data label. - */ - public abstract void setBorderColor(Color borderColor); - /** * @see #setBorderRadius(Number) */ @@ -65,16 +45,6 @@ public abstract class AbstractDataLabels extends AbstractConfigurationObject { */ public abstract void setBorderWidth(Number borderWidth); - /** - * @see #setColor(Color) - */ - public abstract Color getColor(); - - /** - * The text color for the data labels. - */ - public abstract void setColor(Color color); - /** * @see #setCrop(Boolean) */ @@ -197,16 +167,6 @@ public abstract class AbstractDataLabels extends AbstractConfigurationObject { */ public abstract void setShape(Shape shape); - /** - * @see #setStyle(Style) - */ - public abstract Style getStyle(); - - /** - * Styles for the label. - */ - public abstract void setStyle(Style style); - /** * @see #setUseHTML(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/AreaOptions.java b/model/src/main/java/com/vaadin/addon/charts/model/AreaOptions.java index 7cb6b1b3f9b..16845caf00a 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/AreaOptions.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/AreaOptions.java @@ -54,19 +54,6 @@ public abstract class AreaOptions extends AbstractPlotOptions { */ public abstract void setAnimation(Boolean animation); - /** - * @see #setColor(Color) - */ - public abstract Color getColor(); - - /** - * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - */ - public abstract void setColor(Color color); - /** * @see #setConnectNulls(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Axis.java b/model/src/main/java/com/vaadin/addon/charts/model/Axis.java index 3da601e030a..c7e4ef3a2d4 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Axis.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Axis.java @@ -320,16 +320,6 @@ public abstract void setDateTimeLabelFormats( */ public abstract void setFloor(Number floor); - /** - * @see #setGridLineColor(Color) - */ - public abstract Color getGridLineColor(); - - /** - * Color of the grid lines extending the ticks across the plot area. - */ - public abstract void setGridLineColor(Color gridLineColor); - /** * @see #setGridLineDashStyle(DashStyle) */ @@ -340,16 +330,6 @@ public abstract void setDateTimeLabelFormats( */ public abstract void setGridLineDashStyle(DashStyle gridLineDashStyle); - /** - * @see #setGridLineWidth(Number) - */ - public abstract Number getGridLineWidth(); - - /** - * The width of the grid lines extending the ticks across the plot area. - */ - public abstract void setGridLineWidth(Number gridLineWidth); - /** * @see #setId(String) */ @@ -424,16 +404,6 @@ public abstract void setDateTimeLabelFormats( */ public abstract void setMinTickInterval(Number minTickInterval); - /** - * @see #setMinorGridLineColor(Color) - */ - public abstract Color getMinorGridLineColor(); - - /** - * Color of the minor, secondary grid lines. - */ - public abstract void setMinorGridLineColor(Color minorGridLineColor); - /** * @see #setMinorGridLineDashStyle(DashStyle) */ @@ -444,16 +414,6 @@ public abstract void setDateTimeLabelFormats( */ public abstract void setMinorGridLineDashStyle(DashStyle minorGridLineDashStyle); - /** - * @see #setMinorGridLineWidth(Number) - */ - public abstract Number getMinorGridLineWidth(); - - /** - * Width of the minor, secondary grid lines. - */ - public abstract void setMinorGridLineWidth(Number minorGridLineWidth); - /** * @see #setMinorTickColor(Color) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Background.java b/model/src/main/java/com/vaadin/addon/charts/model/Background.java index da4a48fc597..3837e93a090 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Background.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Background.java @@ -28,61 +28,10 @@ * the Pane-configuration object. */ public class Background extends AbstractConfigurationObject { - private Color backgroundColor; - private Color borderColor; - private Number borderWidth; private String outerRadius; private String innerRadius; private BackgroundShape shape; - /** - * @see #setBackgroundColor(Color) - */ - public Color getBackgroundColor() { - return backgroundColor; - } - - /** - * Sets the background color - * - * @param backgroundColor - */ - public void setBackgroundColor(Color backgroundColor) { - this.backgroundColor = backgroundColor; - } - - /** - * @see #setBorderColor(Color) - */ - public Color getBorderColor() { - return borderColor; - } - - /** - * Sets the border color - * - * @param borderColor - */ - public void setBorderColor(Color borderColor) { - this.borderColor = borderColor; - } - - /** - * @see #setBorderWidth(Number) - */ - public Number getBorderWidth() { - return borderWidth; - } - - /** - * Sets the width of the border - * - * @param borderWidth - */ - public void setBorderWidth(Number borderWidth) { - this.borderWidth = borderWidth; - } - /** * Sets the outer radius of the circular shaped background using a string * representation of a percentage, e.g. "110%". The percentage is relative diff --git a/model/src/main/java/com/vaadin/addon/charts/model/ColumnOptions.java b/model/src/main/java/com/vaadin/addon/charts/model/ColumnOptions.java index 020b19e6796..b5984726f99 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/ColumnOptions.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/ColumnOptions.java @@ -81,19 +81,6 @@ public abstract class ColumnOptions extends AbstractPlotOptions { */ public abstract void setBorderWidth(Number borderWidth); - /** - * @see #setColor(Color) - */ - public abstract Color getColor(); - - /** - * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - */ - public abstract void setColor(Color color); - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/ContextButton.java b/model/src/main/java/com/vaadin/addon/charts/model/ContextButton.java index c9273099f61..ca8dfbc0750 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/ContextButton.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/ContextButton.java @@ -1,6 +1,5 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import com.vaadin.addon.charts.model.style.ButtonTheme; /** * Options for the export button. @@ -12,10 +11,6 @@ public class ContextButton extends AbstractConfigurationObject { private Number height; private ContextButtonMenuItem[] menuItems; private String symbol; - private Color symbolFill; - private Number symbolSize; - private Color symbolStroke; - private Number symbolStrokeWidth; private Number symbolX; private Number symbolY; private String text; @@ -123,72 +118,6 @@ public void setSymbol(String symbol) { this.symbol = symbol; } - /** - * @see #setSymbolFill(Color) - */ - public Color getSymbolFill() { - return symbolFill; - } - - /** - * See navigation.buttonOptions => - * symbolFill. - *

- * Defaults to: #666666 - */ - public void setSymbolFill(Color symbolFill) { - this.symbolFill = symbolFill; - } - - /** - * @see #setSymbolSize(Number) - */ - public Number getSymbolSize() { - return symbolSize; - } - - /** - * The pixel size of the symbol on the button. - *

- * Defaults to: 14 - */ - public void setSymbolSize(Number symbolSize) { - this.symbolSize = symbolSize; - } - - /** - * @see #setSymbolStroke(Color) - */ - public Color getSymbolStroke() { - return symbolStroke; - } - - /** - * The color of the symbol's stroke or line. - *

- * Defaults to: #666666 - */ - public void setSymbolStroke(Color symbolStroke) { - this.symbolStroke = symbolStroke; - } - - /** - * @see #setSymbolStrokeWidth(Number) - */ - public Number getSymbolStrokeWidth() { - return symbolStrokeWidth; - } - - /** - * The pixel stroke width of the symbol on the button. - *

- * Defaults to: 1 - */ - public void setSymbolStrokeWidth(Number symbolStrokeWidth) { - this.symbolStrokeWidth = symbolStrokeWidth; - } - /** * @see #setSymbolX(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Credits.java b/model/src/main/java/com/vaadin/addon/charts/model/Credits.java index de9dc921050..3be887006d0 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Credits.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Credits.java @@ -1,6 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Style; /** * Highchart by default puts a credits label in the lower right corner of the * chart. This can be changed using these options. @@ -10,7 +8,6 @@ public class Credits extends AbstractConfigurationObject { private Boolean enabled; private String href; private Position position; - private Style style; private String text; public Credits() { @@ -69,26 +66,6 @@ public void setPosition(Position position) { this.position = position; } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - * CSS styles for the credits label. - *

- * Defaults to: { "cursor": "pointer", "color": "#999999", "fontSize": - * "10px" } - */ - public void setStyle(Style style) { - this.style = style; - } - public Credits(String text) { this.text = text; } diff --git a/model/src/main/java/com/vaadin/addon/charts/model/DataLabels.java b/model/src/main/java/com/vaadin/addon/charts/model/DataLabels.java index 6262705e1fb..70e5425c92b 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/DataLabels.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/DataLabels.java @@ -1,7 +1,6 @@ package com.vaadin.addon.charts.model; import com.vaadin.addon.charts.model.style.Color; -import com.vaadin.addon.charts.model.style.Style; /** *

* Options for the series data labels, appearing next to each data point. @@ -21,12 +20,9 @@ public class DataLabels extends AbstractDataLabels { private HorizontalAlign align; private Boolean allowOverlap; - private Color backgroundColor; - private Color borderColor; private Number borderRadius; private Number borderWidth; private String className; - private Color color; private Boolean crop; private Boolean defer; private Boolean enabled; @@ -38,7 +34,6 @@ public class DataLabels extends AbstractDataLabels { private Number rotation; private Boolean shadow; private Shape shape; - private Style style; private Boolean useHTML; private VerticalAlign verticalAlign; private Number x; @@ -93,35 +88,6 @@ public void setAllowOverlap(Boolean allowOverlap) { this.allowOverlap = allowOverlap; } - /** - * @see #setBackgroundColor(Color) - */ - public Color getBackgroundColor() { - return backgroundColor; - } - - /** - * The background color or gradient for the data label. Defaults to - * undefined. - */ - public void setBackgroundColor(Color backgroundColor) { - this.backgroundColor = backgroundColor; - } - - /** - * @see #setBorderColor(Color) - */ - public Color getBorderColor() { - return borderColor; - } - - /** - * The border color for the data label. Defaults to undefined. - */ - public void setBorderColor(Color borderColor) { - this.borderColor = borderColor; - } - /** * @see #setBorderRadius(Number) */ @@ -174,20 +140,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - * The text color for the data labels. Defaults to null. - */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setCrop(Boolean) */ @@ -376,35 +328,6 @@ public void setShape(Shape shape) { this.shape = shape; } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - * Styles for the label. The default color setting is - * "contrast", which is a pseudo color that Highcharts picks up - * and applies the maximum contrast to the underlying point item, for - * example the bar in a bar chart. The textOutline is a pseudo - * property that applies an outline of the given width with the given color, - * which by default is the maximum contrast to the text. So a bright text - * color will result in a black text outline for maximum readability on a - * mixed background. In some cases, especially with grayscale text, the text - * outline doesn't work well, in which cases it can be disabled by setting - * it to "none". - *

- * Defaults to: {"color": "contrast", "fontSize": "11px", "fontWeight": - * "bold", "textOutline": "1px contrast" } - */ - public void setStyle(Style style) { - this.style = style; - } - /** * @see #setUseHTML(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/DataLabelsFunnel.java b/model/src/main/java/com/vaadin/addon/charts/model/DataLabelsFunnel.java index 315052a1da0..beee521158d 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/DataLabelsFunnel.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/DataLabelsFunnel.java @@ -1,17 +1,13 @@ package com.vaadin.addon.charts.model; import com.vaadin.addon.charts.model.style.Color; -import com.vaadin.addon.charts.model.style.Style; /** */ public class DataLabelsFunnel extends AbstractDataLabels { - private Color backgroundColor; - private Color borderColor; private Number borderRadius; private Number borderWidth; private String className; - private Color color; private Color connectorColor; private Number connectorPadding; private Number connectorWidth; @@ -28,7 +24,6 @@ public class DataLabelsFunnel extends AbstractDataLabels { private Boolean shadow; private Shape shape; private Boolean softConnector; - private Style style; private Boolean useHTML; private VerticalAlign verticalAlign; private Number x; @@ -38,35 +33,6 @@ public class DataLabelsFunnel extends AbstractDataLabels { public DataLabelsFunnel() { } - /** - * @see #setBackgroundColor(Color) - */ - public Color getBackgroundColor() { - return backgroundColor; - } - - /** - * The background color or gradient for the data label. Defaults to - * undefined. - */ - public void setBackgroundColor(Color backgroundColor) { - this.backgroundColor = backgroundColor; - } - - /** - * @see #setBorderColor(Color) - */ - public Color getBorderColor() { - return borderColor; - } - - /** - * The border color for the data label. Defaults to undefined. - */ - public void setBorderColor(Color borderColor) { - this.borderColor = borderColor; - } - /** * @see #setBorderRadius(Number) */ @@ -119,20 +85,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - * The text color for the data labels. Defaults to null. - */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setConnectorColor(Color) */ @@ -422,35 +374,6 @@ public void setSoftConnector(Boolean softConnector) { this.softConnector = softConnector; } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - * Styles for the label. The default color setting is - * "contrast", which is a pseudo color that Highcharts picks up - * and applies the maximum contrast to the underlying point item, for - * example the bar in a bar chart. The textOutline is a pseudo - * property that applies an outline of the given width with the given color, - * which by default is the maximum contrast to the text. So a bright text - * color will result in a black text outline for maximum readability on a - * mixed background. In some cases, especially with grayscale text, the text - * outline doesn't work well, in which cases it can be disabled by setting - * it to "none". - *

- * Defaults to: {"color": "contrast", "fontSize": "11px", "fontWeight": - * "bold", "textOutline": "1px contrast" } - */ - public void setStyle(Style style) { - this.style = style; - } - /** * @see #setUseHTML(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/DataLabelsRange.java b/model/src/main/java/com/vaadin/addon/charts/model/DataLabelsRange.java index 7aa94f81711..2d3131308cd 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/DataLabelsRange.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/DataLabelsRange.java @@ -1,7 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Color; -import com.vaadin.addon.charts.model.style.Style; /** * Extended data labels for range series types. Range series data labels have no * x and y options. Instead, they have @@ -13,12 +10,9 @@ public class DataLabelsRange extends AbstractDataLabels { private HorizontalAlign align; private Boolean allowOverlap; - private Color backgroundColor; - private Color borderColor; private Number borderRadius; private Number borderWidth; private String className; - private Color color; private Boolean crop; private Boolean defer; private Boolean enabled; @@ -30,7 +24,6 @@ public class DataLabelsRange extends AbstractDataLabels { private Number rotation; private Boolean shadow; private Shape shape; - private Style style; private Boolean useHTML; private VerticalAlign verticalAlign; private Number xHigh; @@ -82,35 +75,6 @@ public void setAllowOverlap(Boolean allowOverlap) { this.allowOverlap = allowOverlap; } - /** - * @see #setBackgroundColor(Color) - */ - public Color getBackgroundColor() { - return backgroundColor; - } - - /** - * The background color or gradient for the data label. Defaults to - * undefined. - */ - public void setBackgroundColor(Color backgroundColor) { - this.backgroundColor = backgroundColor; - } - - /** - * @see #setBorderColor(Color) - */ - public Color getBorderColor() { - return borderColor; - } - - /** - * The border color for the data label. Defaults to undefined. - */ - public void setBorderColor(Color borderColor) { - this.borderColor = borderColor; - } - /** * @see #setBorderRadius(Number) */ @@ -163,20 +127,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - * The text color for the data labels. Defaults to null. - */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setCrop(Boolean) */ @@ -365,35 +315,6 @@ public void setShape(Shape shape) { this.shape = shape; } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - * Styles for the label. The default color setting is - * "contrast", which is a pseudo color that Highcharts picks up - * and applies the maximum contrast to the underlying point item, for - * example the bar in a bar chart. The textOutline is a pseudo - * property that applies an outline of the given width with the given color, - * which by default is the maximum contrast to the text. So a bright text - * color will result in a black text outline for maximum readability on a - * mixed background. In some cases, especially with grayscale text, the text - * outline doesn't work well, in which cases it can be disabled by setting - * it to "none". - *

- * Defaults to: {"color": "contrast", "fontSize": "11px", "fontWeight": - * "bold", "textOutline": "1px contrast" } - */ - public void setStyle(Style style) { - this.style = style; - } - /** * @see #setUseHTML(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Handles.java b/model/src/main/java/com/vaadin/addon/charts/model/Handles.java deleted file mode 100644 index e98f3cafee8..00000000000 --- a/model/src/main/java/com/vaadin/addon/charts/model/Handles.java +++ /dev/null @@ -1,57 +0,0 @@ -package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Color; -/** - *

- * Options for the handles for dragging the zoomed area. - *

- * - *

- * In styled mode, the navigator handles are styled with the - * .highcharts-navigator-handle, - * .highcharts-navigator-handle-left and - * .highcharts-navigator-handle-right classes. - *

- */ -public class Handles extends AbstractConfigurationObject { - - private Color backgroundColor; - private Color borderColor; - - public Handles() { - } - - /** - * @see #setBackgroundColor(Color) - */ - public Color getBackgroundColor() { - return backgroundColor; - } - - /** - * The fill for the handle. - *

- * Defaults to: #f2f2f2 - */ - public void setBackgroundColor(Color backgroundColor) { - this.backgroundColor = backgroundColor; - } - - /** - * @see #setBorderColor(Color) - */ - public Color getBorderColor() { - return borderColor; - } - - /** - * The stroke for the handle border and the stripes inside. - *

- * Defaults to: #999999 - */ - public void setBorderColor(Color borderColor) { - this.borderColor = borderColor; - } -} \ No newline at end of file diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Legend.java b/model/src/main/java/com/vaadin/addon/charts/model/Legend.java index 3b6331e4814..dc7e971a654 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Legend.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Legend.java @@ -1,7 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Color; -import com.vaadin.addon.charts.model.style.Style; /** * The legend is a box containing a symbol and name for each series item or * point item in the chart. @@ -9,18 +6,12 @@ public class Legend extends AbstractConfigurationObject { private HorizontalAlign align; - private Color backgroundColor; - private Color borderColor; private Number borderRadius; - private Number borderWidth; private Boolean enabled; private Boolean floating; private Number itemDistance; - private Style itemHiddenStyle; - private Style itemHoverStyle; private Number itemMarginBottom; private Number itemMarginTop; - private Style itemStyle; private Number itemWidth; private String labelFormat; private String _fn_labelFormatter; @@ -73,36 +64,6 @@ public void setAlign(HorizontalAlign align) { this.align = align; } - /** - * @see #setBackgroundColor(Color) - */ - public Color getBackgroundColor() { - return backgroundColor; - } - - /** - * The background color of the legend. - */ - public void setBackgroundColor(Color backgroundColor) { - this.backgroundColor = backgroundColor; - } - - /** - * @see #setBorderColor(Color) - */ - public Color getBorderColor() { - return borderColor; - } - - /** - * The color of the drawn border around the legend. - *

- * Defaults to: #999999 - */ - public void setBorderColor(Color borderColor) { - this.borderColor = borderColor; - } - /** * @see #setBorderRadius(Number) */ @@ -119,22 +80,6 @@ public void setBorderRadius(Number borderRadius) { this.borderRadius = borderRadius; } - /** - * @see #setBorderWidth(Number) - */ - public Number getBorderWidth() { - return borderWidth; - } - - /** - * The width of the drawn border around the legend. - *

- * Defaults to: 0 - */ - public void setBorderWidth(Number borderWidth) { - this.borderWidth = borderWidth; - } - public Legend(Boolean enabled) { this.enabled = enabled; } @@ -189,49 +134,6 @@ public void setItemDistance(Number itemDistance) { this.itemDistance = itemDistance; } - /** - * @see #setItemHiddenStyle(Style) - */ - public Style getItemHiddenStyle() { - if (itemHiddenStyle == null) { - itemHiddenStyle = new Style(); - } - return itemHiddenStyle; - } - - /** - * CSS styles for each legend item when the corresponding series or point is - * hidden. Only a subset of CSS is supported, notably those options related - * to text. Properties are inherited from style unless - * overridden here. - *

- * Defaults to: { "color": "#cccccc" } - */ - public void setItemHiddenStyle(Style itemHiddenStyle) { - this.itemHiddenStyle = itemHiddenStyle; - } - - /** - * @see #setItemHoverStyle(Style) - */ - public Style getItemHoverStyle() { - if (itemHoverStyle == null) { - itemHoverStyle = new Style(); - } - return itemHoverStyle; - } - - /** - * CSS styles for each legend item in hover mode. Only a subset of CSS is - * supported, notably those options related to text. Properties are - * inherited from style unless overridden here. - *

- * Defaults to: { "color": "#000000" } - */ - public void setItemHoverStyle(Style itemHoverStyle) { - this.itemHoverStyle = itemHoverStyle; - } - /** * @see #setItemMarginBottom(Number) */ @@ -264,30 +166,6 @@ public void setItemMarginTop(Number itemMarginTop) { this.itemMarginTop = itemMarginTop; } - /** - * @see #setItemStyle(Style) - */ - public Style getItemStyle() { - if (itemStyle == null) { - itemStyle = new Style(); - } - return itemStyle; - } - - /** - * CSS styles for each legend item. Only a subset of CSS is supported, - * notably those options related to text. The default - * textOverflow property makes long texts truncate. Set it to - * null to wrap text instead. A width property can - * be added to control the text width. - *

- * Defaults to: { "color": "#333333", "cursor": "pointer", "fontSize": - * "12px", "fontWeight": "bold", "textOverflow": "ellipsis" } - */ - public void setItemStyle(Style itemStyle) { - this.itemStyle = itemStyle; - } - /** * @see #setItemWidth(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/LegendNavigation.java b/model/src/main/java/com/vaadin/addon/charts/model/LegendNavigation.java index fb844c020ee..69b7711665c 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/LegendNavigation.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/LegendNavigation.java @@ -1,7 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Color; -import com.vaadin.addon.charts.model.style.Style; /** * Options for the paging or navigation appearing when the legend is overflown. * Navigation works well on screen, but not in static exported images. One way @@ -11,32 +8,13 @@ */ public class LegendNavigation extends AbstractConfigurationObject { - private Color activeColor; private Boolean animation; private Number arrowSize; private Boolean enabled; - private Color inactiveColor; - private Style style; public LegendNavigation() { } - /** - * @see #setActiveColor(Color) - */ - public Color getActiveColor() { - return activeColor; - } - - /** - * The color for the active up or down arrow in the legend page navigation. - *

- * Defaults to: #003399 - */ - public void setActiveColor(Color activeColor) { - this.activeColor = activeColor; - } - /** * @see #setAnimation(Boolean) */ @@ -102,38 +80,4 @@ public Boolean getEnabled() { public void setEnabled(Boolean enabled) { this.enabled = enabled; } - - /** - * @see #setInactiveColor(Color) - */ - public Color getInactiveColor() { - return inactiveColor; - } - - /** - * The color of the inactive up or down arrow in the legend page navigation. - * . - *

- * Defaults to: #cccccc - */ - public void setInactiveColor(Color inactiveColor) { - this.inactiveColor = inactiveColor; - } - - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - * Text styles for the legend page navigation. - */ - public void setStyle(Style style) { - this.style = style; - } } \ No newline at end of file diff --git a/model/src/main/java/com/vaadin/addon/charts/model/LegendTitle.java b/model/src/main/java/com/vaadin/addon/charts/model/LegendTitle.java index 4b7f0d0f7f4..547a0e3bdcf 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/LegendTitle.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/LegendTitle.java @@ -1,36 +1,14 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Style; /** * A title to be added on top of the legend. */ public class LegendTitle extends AbstractConfigurationObject { - private Style style; private String text; public LegendTitle() { } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - * Generic CSS styles for the legend title. - *

- * Defaults to: {"fontWeight":"bold"} - */ - public void setStyle(Style style) { - this.style = style; - } - public LegendTitle(String text) { this.text = text; } diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Loading.java b/model/src/main/java/com/vaadin/addon/charts/model/Loading.java index 82e045e19c6..c5bcf075cc8 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Loading.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Loading.java @@ -1,6 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Style; /** * The loading options control the appearance of the loading screen that covers * the plot area on chart operations. This screen only appears after an explicit @@ -13,9 +11,7 @@ public class Loading extends AbstractConfigurationObject { private Number hideDuration; - private Style labelStyle; private Number showDuration; - private Style style; public Loading() { } @@ -36,26 +32,6 @@ public void setHideDuration(Number hideDuration) { this.hideDuration = hideDuration; } - /** - * @see #setLabelStyle(Style) - */ - public Style getLabelStyle() { - if (labelStyle == null) { - labelStyle = new Style(); - } - return labelStyle; - } - - /** - * CSS styles for the loading label span. - *

- * Defaults to: { "fontWeight": "bold", "position": "relative", "top": "45%" - * } - */ - public void setLabelStyle(Style labelStyle) { - this.labelStyle = labelStyle; - } - /** * @see #setShowDuration(Number) */ @@ -71,24 +47,4 @@ public Number getShowDuration() { public void setShowDuration(Number showDuration) { this.showDuration = showDuration; } - - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - * CSS styles for the loading screen that covers the plot area. - *

- * Defaults to: { "position": "absolute", "backgroundColor": "#ffffff", - * "opacity": 0.5, "textAlign": "center" } - */ - public void setStyle(Style style) { - this.style = style; - } } \ No newline at end of file diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Navigation.java b/model/src/main/java/com/vaadin/addon/charts/model/Navigation.java index ba01e470221..62eca975f90 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Navigation.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Navigation.java @@ -1,6 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Style; /** * A collection of options for buttons and menus appearing in the exporting * module. @@ -8,9 +6,6 @@ public class Navigation extends AbstractConfigurationObject { private ButtonOptions buttonOptions; - private Style menuItemHoverStyle; - private Style menuItemStyle; - private Style menuStyle; public Navigation() { } @@ -41,68 +36,4 @@ public ButtonOptions getButtonOptions() { public void setButtonOptions(ButtonOptions buttonOptions) { this.buttonOptions = buttonOptions; } - - /** - * @see #setMenuItemHoverStyle(Style) - */ - public Style getMenuItemHoverStyle() { - if (menuItemHoverStyle == null) { - menuItemHoverStyle = new Style(); - } - return menuItemHoverStyle; - } - - /** - * CSS styles for the hover state of the individual items within the popup - * menu appearing by default when the export icon is clicked. The menu items - * are rendered in HTML. - *

- * Defaults to: { "background": "#335cad", "color": "#ffffff" } - */ - public void setMenuItemHoverStyle(Style menuItemHoverStyle) { - this.menuItemHoverStyle = menuItemHoverStyle; - } - - /** - * @see #setMenuItemStyle(Style) - */ - public Style getMenuItemStyle() { - if (menuItemStyle == null) { - menuItemStyle = new Style(); - } - return menuItemStyle; - } - - /** - * CSS styles for the individual items within the popup menu appearing by - * default when the export icon is clicked. The menu items are rendered in - * HTML. - *

- * Defaults to: { "padding": "0.5em 1em", "color": "#333333", "background": - * "none" } - */ - public void setMenuItemStyle(Style menuItemStyle) { - this.menuItemStyle = menuItemStyle; - } - - /** - * @see #setMenuStyle(Style) - */ - public Style getMenuStyle() { - if (menuStyle == null) { - menuStyle = new Style(); - } - return menuStyle; - } - - /** - * CSS styles for the popup menu appearing by default when the export icon - * is clicked. This menu is rendered in HTML. - *

- * Defaults to: { "border": "1px solid #999999", "background": "#ffffff", - * "padding": "5px 0" } - */ - public void setMenuStyle(Style menuStyle) { - this.menuStyle = menuStyle; - } } \ No newline at end of file diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Navigator.java b/model/src/main/java/com/vaadin/addon/charts/model/Navigator.java index 6f9eaa0b292..d9c73cecfa3 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Navigator.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Navigator.java @@ -1,6 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Color; /** * The navigator is a small series below the main series, displaying a view of * the entire data set. It provides tools to zoom in and out on parts of the @@ -10,14 +8,10 @@ public class Navigator extends AbstractConfigurationObject { private Boolean adaptToUpdatedData; private Boolean enabled; - private Handles handles; private Number height; private Number margin; - private Color maskFill; private Boolean maskInside; private Boolean opposite; - private Color outlineColor; - private Number outlineWidth; private PlotOptionsSeries series; private XAxis[] xAxis; private YAxis[] yAxis; @@ -66,34 +60,6 @@ public void setEnabled(Boolean enabled) { this.enabled = enabled; } - /** - * @see #setHandles(Handles) - */ - public Handles getHandles() { - if (handles == null) { - handles = new Handles(); - } - return handles; - } - - /** - *

- * Options for the handles for dragging the zoomed area. - *

- * - *

- * In styled mode, the navigator handles are styled with the - * .highcharts-navigator-handle, - * .highcharts-navigator-handle-left and - * .highcharts-navigator-handle-right classes. - *

- */ - public void setHandles(Handles handles) { - this.handles = handles; - } - /** * @see #setHeight(Number) */ @@ -126,24 +92,6 @@ public void setMargin(Number margin) { this.margin = margin; } - /** - * @see #setMaskFill(Color) - */ - public Color getMaskFill() { - return maskFill; - } - - /** - * The color of the mask covering the areas of the navigator series that are - * currently not visible in the main series. The default color is bluish - * with an opacity of 0.3 to see the series below. - *

- * Defaults to: rgba(102,133,194,0.3) - */ - public void setMaskFill(Color maskFill) { - this.maskFill = maskFill; - } - /** * @see #setMaskInside(Boolean) */ @@ -178,38 +126,6 @@ public void setOpposite(Boolean opposite) { this.opposite = opposite; } - /** - * @see #setOutlineColor(Color) - */ - public Color getOutlineColor() { - return outlineColor; - } - - /** - * The color of the line marking the currently zoomed area in the navigator. - *

- * Defaults to: #cccccc - */ - public void setOutlineColor(Color outlineColor) { - this.outlineColor = outlineColor; - } - - /** - * @see #setOutlineWidth(Number) - */ - public Number getOutlineWidth() { - return outlineWidth; - } - - /** - * The width of the line marking the currently zoomed area in the navigator. - *

- * Defaults to: 2 - */ - public void setOutlineWidth(Number outlineWidth) { - this.outlineWidth = outlineWidth; - } - /** * @see #setSeries(PlotOptionsSeries) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/NoData.java b/model/src/main/java/com/vaadin/addon/charts/model/NoData.java index 2e9db07f9b1..e86c7915886 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/NoData.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/NoData.java @@ -1,6 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Style; /** * Options for displaying a message like "No data to display". This feature * requires the file no-data-to-display.js to be loaded in the @@ -10,7 +8,6 @@ public class NoData extends AbstractConfigurationObject { private Position position; - private Style style; private Boolean useHTML; public NoData() { @@ -36,26 +33,6 @@ public void setPosition(Position position) { this.position = position; } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - * CSS styles for the no-data label. - *

- * Defaults to: { "fontSize": "12px", "fontWeight": "bold", "color": - * "#666666" } - */ - public void setStyle(Style style) { - this.style = style; - } - /** * @see #setUseHTML(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/OhlcOptions.java b/model/src/main/java/com/vaadin/addon/charts/model/OhlcOptions.java index 3859c44c103..195404acf45 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/OhlcOptions.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/OhlcOptions.java @@ -51,19 +51,6 @@ public abstract class OhlcOptions extends AbstractPlotOptions { */ public abstract void setAnimation(Boolean animation); - /** - * @see #setColor(Color) - */ - public abstract Color getColor(); - - /** - * The main color of the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - */ - public abstract void setColor(Color color); - /** * @see #setColors(Color...) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsArea.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsArea.java index 0e0bd73f957..6969b82f4bf 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsArea.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsArea.java @@ -12,7 +12,6 @@ public class PlotOptionsArea extends AreaOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Boolean connectEnds; private Boolean connectNulls; @@ -160,37 +159,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsArearange.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsArearange.java index 31e9ed662b5..8888ac0b96f 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsArearange.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsArearange.java @@ -16,7 +16,6 @@ public class PlotOptionsArearange extends AreaOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Boolean connectNulls; private Number cropThreshold; @@ -161,37 +160,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsAreaspline.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsAreaspline.java index 99b89a3b32e..9b01364c67f 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsAreaspline.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsAreaspline.java @@ -12,7 +12,6 @@ public class PlotOptionsAreaspline extends AreaOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Boolean connectEnds; private Boolean connectNulls; @@ -159,37 +158,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsAreasplinerange.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsAreasplinerange.java index d3b4741831f..411087fd3cd 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsAreasplinerange.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsAreasplinerange.java @@ -16,7 +16,6 @@ public class PlotOptionsAreasplinerange extends AreaOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Boolean connectNulls; private Number cropThreshold; @@ -159,37 +158,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBar.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBar.java index 205052c5862..316c4d16ae8 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBar.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBar.java @@ -15,7 +15,6 @@ public class PlotOptionsBar extends ColumnOptions { private Number borderRadius; private Number borderWidth; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -222,37 +221,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBoxplot.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBoxplot.java index daffaf6860a..a1781b228e8 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBoxplot.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBoxplot.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -17,7 +17,6 @@ public class PlotOptionsBoxplot extends AbstractPlotOptions { private Boolean allowPointSelect; private Number animationLimit; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -125,37 +124,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBubble.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBubble.java index cd261dd8681..3b751b7ce38 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBubble.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsBubble.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -18,7 +18,6 @@ public class PlotOptionsBubble extends AbstractPlotOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Number cropThreshold; private Cursor cursor; @@ -153,37 +152,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsCandlestick.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsCandlestick.java index 29589cfe8ad..0a864e70247 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsCandlestick.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsCandlestick.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -15,7 +15,6 @@ public class PlotOptionsCandlestick extends OhlcOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private ArrayList colors; private Number compareBase; @@ -158,37 +157,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color of the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsColumn.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsColumn.java index cd4f6f75f51..f8d56ac1e0c 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsColumn.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsColumn.java @@ -15,7 +15,6 @@ public class PlotOptionsColumn extends ColumnOptions { private Number borderRadius; private Number borderWidth; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -229,37 +228,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsColumnrange.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsColumnrange.java index 1d94788053e..cb7d64df1ef 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsColumnrange.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsColumnrange.java @@ -21,7 +21,6 @@ public class PlotOptionsColumnrange extends ColumnOptions { private Number borderRadius; private Number borderWidth; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -231,37 +230,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsErrorbar.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsErrorbar.java index 060b8dd41a0..5c0e6a55616 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsErrorbar.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsErrorbar.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -16,7 +16,6 @@ public class PlotOptionsErrorbar extends AbstractPlotOptions { private Boolean allowPointSelect; private Number animationLimit; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -117,24 +116,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - * The main color of the bars. This can be overridden by stemColor and whiskerColor individually. - *

- * Defaults to: #000000 - */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsFlags.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsFlags.java index 2a330677fb5..ecd61db76f6 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsFlags.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsFlags.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import com.vaadin.addon.charts.model.style.Style; /** * @@ -12,7 +12,6 @@ public class PlotOptionsFlags extends AbstractPlotOptions { private Boolean allowPointSelect; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private ArrayList colors; private Number compareBase; @@ -114,37 +113,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color of the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsGauge.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsGauge.java index 2e950281ba4..803664747aa 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsGauge.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsGauge.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; /** * General plotting options for the gauge series type. Requires * highcharts-more.js @@ -12,7 +12,6 @@ public class PlotOptionsGauge extends GaugeOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Cursor cursor; private DataLabels dataLabels; @@ -114,37 +113,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsHeatmap.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsHeatmap.java index 88daf9bbac8..f0189fc5ef1 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsHeatmap.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsHeatmap.java @@ -23,7 +23,6 @@ public class PlotOptionsHeatmap extends AbstractPlotOptions { private Number borderRadius; private Number borderWidth; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -214,25 +213,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - * The main color of the series. In heat maps this color is rarely used, as - * we mostly use the color to denote the value of each point. Unless options - * are set in the colorAxis, the default value is - * pulled from the options.colors array. - *

- * Defaults to: null - */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsLine.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsLine.java index d49dbc710ad..8734c49beec 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsLine.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsLine.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -12,7 +12,6 @@ public class PlotOptionsLine extends PointOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Boolean connectEnds; private Boolean connectNulls; @@ -155,37 +154,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsOhlc.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsOhlc.java index a00ad320ab3..1b5425778da 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsOhlc.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsOhlc.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -15,7 +15,6 @@ public class PlotOptionsOhlc extends OhlcOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -158,37 +157,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color of the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsPolygon.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsPolygon.java index 62ca21c5f5d..9d91ca67a3b 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsPolygon.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsPolygon.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -18,7 +18,6 @@ public class PlotOptionsPolygon extends AbstractPlotOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Number cropThreshold; private Cursor cursor; @@ -153,37 +152,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsScatter.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsScatter.java index cb0867f8059..96924ee2355 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsScatter.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsScatter.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -12,7 +12,6 @@ public class PlotOptionsScatter extends PointOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Number cropThreshold; private Cursor cursor; @@ -150,37 +149,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsSeries.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsSeries.java index 4768800de9e..346f67b1bf9 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsSeries.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsSeries.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -17,13 +17,11 @@ public class PlotOptionsSeries extends AbstractPlotOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Boolean connectEnds; private Boolean connectNulls; private Number cropThreshold; private Cursor cursor; - private DashStyle dashStyle; private DataLabels dataLabels; private String description; private Boolean enableMouseTracking; @@ -31,7 +29,6 @@ public class PlotOptionsSeries extends AbstractPlotOptions { private Dimension findNearestPointBy; private Boolean getExtremesFromAll; private ArrayList keys; - private Number lineWidth; private String linecap; private String linkedTo; private Marker marker; @@ -155,37 +152,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ @@ -276,38 +242,6 @@ public void setCursor(Cursor cursor) { this.cursor = cursor; } - /** - * @see #setDashStyle(DashStyle) - */ - public DashStyle getDashStyle() { - return dashStyle; - } - - /** - * A name for the dash style to use for the graph. Applies only to series - * type having a graph, like line, spline, - * area and scatter in case it has a - * lineWidth. The value for the dashStyle include: - *
    - *
  • Solid
  • - *
  • ShortDash
  • - *
  • ShortDot
  • - *
  • ShortDashDot
  • - *
  • ShortDashDotDot
  • - *
  • Dot
  • - *
  • Dash
  • - *
  • LongDash
  • - *
  • DashDot
  • - *
  • LongDashDot
  • - *
  • LongDashDotDot
  • - *
- *

- * Defaults to: Solid - */ - public void setDashStyle(DashStyle dashStyle) { - this.dashStyle = dashStyle; - } - /** * @see #setDataLabels(DataLabels) */ @@ -490,22 +424,6 @@ public void removeKey(String key) { this.keys.remove(key); } - /** - * @see #setLineWidth(Number) - */ - public Number getLineWidth() { - return lineWidth; - } - - /** - * Pixel with of the graph line. - *

- * Defaults to: 2 - */ - public void setLineWidth(Number lineWidth) { - this.lineWidth = lineWidth; - } - /** * @see #setLinecap(String) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsSpline.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsSpline.java index c4d3302e0fb..2c3a784a85a 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsSpline.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsSpline.java @@ -1,8 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.Color; import java.util.ArrayList; import java.util.Arrays; +import com.vaadin.addon.charts.model.style.Color; import java.util.Date; import java.time.Instant; import com.vaadin.addon.charts.util.Util; @@ -12,7 +12,6 @@ public class PlotOptionsSpline extends PointOptions { private Boolean animation; private Number animationLimit; private String className; - private Color color; private Number colorIndex; private Boolean connectEnds; private Boolean connectNulls; @@ -154,37 +153,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsTreemap.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsTreemap.java index 4311cabcef9..bc776196f87 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsTreemap.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsTreemap.java @@ -20,7 +20,6 @@ public class PlotOptionsTreemap extends AbstractPlotOptions { private Color borderColor; private Number borderWidth; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -227,25 +226,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - * The main color of the series. In heat maps this color is rarely used, as - * we mostly use the color to denote the value of each point. Unless options - * are set in the colorAxis, the default value is - * pulled from the options.colors array. - *

- * Defaults to: null - */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsWaterfall.java b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsWaterfall.java index 015c60bb917..16f9ad454c6 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsWaterfall.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PlotOptionsWaterfall.java @@ -18,7 +18,6 @@ public class PlotOptionsWaterfall extends ColumnOptions { private Number borderRadius; private Number borderWidth; private String className; - private Color color; private Boolean colorByPoint; private Number colorIndex; private ArrayList colors; @@ -225,37 +224,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setColor(Color) - */ - public Color getColor() { - return color; - } - - /** - *

- * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - *

- * - *

- * In styled mode, the color can be defined by the colorIndex option. Also, the - * series color can be set with the .highcharts-series, - * .highcharts-color-{n}, - * .highcharts-{type}-series or - * .highcharts-series-{n} class, or individual classes given by - * the className option. - *

- */ - public void setColor(Color color) { - this.color = color; - } - /** * @see #setColorByPoint(Boolean) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/PointOptions.java b/model/src/main/java/com/vaadin/addon/charts/model/PointOptions.java index 0378c35af5e..16bb8e960e0 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/PointOptions.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/PointOptions.java @@ -51,19 +51,6 @@ public abstract class PointOptions extends AbstractPlotOptions { */ public abstract void setAnimation(Boolean animation); - /** - * @see #setColor(Color) - */ - public abstract Color getColor(); - - /** - * The main color or the series. In line type series it applies to the line - * and the point markers unless otherwise specified. In bar type series it - * applies to the bars unless a color is specified per point. The default - * value is pulled from the options.colors array. - */ - public abstract void setColor(Color color); - /** * @see #setCropThreshold(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/RangeSelector.java b/model/src/main/java/com/vaadin/addon/charts/model/RangeSelector.java index ab950962494..2b3aa746895 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/RangeSelector.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/RangeSelector.java @@ -1,10 +1,8 @@ package com.vaadin.addon.charts.model; -import com.vaadin.addon.charts.model.style.ButtonTheme; import java.util.ArrayList; import java.util.Arrays; import com.vaadin.addon.charts.model.style.Color; -import com.vaadin.addon.charts.model.style.Style; /** * The range selector is a tool for selecting ranges to display within the * chart. It provides buttons to select preconfigured ranges in the chart, like @@ -16,7 +14,6 @@ public class RangeSelector extends AbstractConfigurationObject { private Boolean allButtonsEnabled; private ButtonPosition buttonPosition; private Number buttonSpacing; - private ButtonTheme buttonTheme; private ArrayList buttons; private Boolean enabled; private Number height; @@ -28,8 +25,6 @@ public class RangeSelector extends AbstractConfigurationObject { private String inputEditDateFormat; private Boolean inputEnabled; private ButtonPosition inputPosition; - private Style inputStyle; - private Style labelStyle; private Number selected; public RangeSelector() { @@ -88,46 +83,6 @@ public void setButtonSpacing(Number buttonSpacing) { this.buttonSpacing = buttonSpacing; } - /** - * @see #setButtonTheme(ButtonTheme) - */ - public ButtonTheme getButtonTheme() { - if (buttonTheme == null) { - buttonTheme = new ButtonTheme(); - } - return buttonTheme; - } - - /** - *

- * A collection of attributes for the buttons. The object takes SVG - * attributes like fill, stroke, - * stroke-width, as well as style, a collection of - * CSS properties for the text. - *

- * - *

- * The object can also be extended with states, so you can set - * presentational options for hover, select or - * disabled button states. - *

- * - *

- * CSS styles for the text label. - *

- * - *

- * In styled mode, the buttons are styled by the - * .highcharts-range-selector-buttons .highcharts-button rule - * with its different states. - *

- */ - public void setButtonTheme(ButtonTheme buttonTheme) { - this.buttonTheme = buttonTheme; - } - /** * @see #setButtons(RangeSelectorButton...) */ @@ -366,59 +321,6 @@ public void setInputPosition(ButtonPosition inputPosition) { this.inputPosition = inputPosition; } - /** - * @see #setInputStyle(Style) - */ - public Style getInputStyle() { - if (inputStyle == null) { - inputStyle = new Style(); - } - return inputStyle; - } - - /** - *

- * CSS for the HTML inputs in the range selector. - *

- * - *

- * In styled mode, the inputs are styled by the - * .highcharts-range-input text rule in SVG mode, and - * input.highcharts-range-selector when active. - *

- */ - public void setInputStyle(Style inputStyle) { - this.inputStyle = inputStyle; - } - - /** - * @see #setLabelStyle(Style) - */ - public Style getLabelStyle() { - if (labelStyle == null) { - labelStyle = new Style(); - } - return labelStyle; - } - - /** - *

- * CSS styles for the labels - the Zoom, From and To texts. - *

- * - *

- * In styled mode, the labels are styled by the - * .highcharts-range-label class. - *

- */ - public void setLabelStyle(Style labelStyle) { - this.labelStyle = labelStyle; - } - /** * @see #setSelected(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/StackLabels.java b/model/src/main/java/com/vaadin/addon/charts/model/StackLabels.java index 1499e813715..b78cc24707c 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/StackLabels.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/StackLabels.java @@ -1,6 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Style; /** * The stack labels show the total value for each bar in a stacked column or bar * chart. The label will be placed on top of positive columns and below negative @@ -14,7 +12,6 @@ public class StackLabels extends AbstractConfigurationObject { private String format; private String _fn_formatter; private Number rotation; - private Style style; private String textAlign; private Boolean useHTML; private VerticalAlign verticalAlign; @@ -103,37 +100,6 @@ public void setRotation(Number rotation) { this.rotation = rotation; } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - *

- * CSS styles for the label. - *

- * - *

- * In styled mode, the styles are set in the - * .highcharts-stack-label class. - *

- *

- * Defaults to: { "color": "#000000", "fontSize": "11px", "fontWeight": - * "bold", "textShadow": - * "1px 1px contrast, -1px -1px contrast, -1px 1px contrast, 1px -1px contrast" - * } - */ - public void setStyle(Style style) { - this.style = style; - } - /** * @see #setTextAlign(String) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Subtitle.java b/model/src/main/java/com/vaadin/addon/charts/model/Subtitle.java index d0ec716cd2e..9e43245d90f 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Subtitle.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Subtitle.java @@ -1,6 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Style; /** * The chart's subtitle */ @@ -8,7 +6,6 @@ public class Subtitle extends AbstractConfigurationObject { private HorizontalAlign align; private Boolean floating; - private Style style; private String text; private Boolean useHTML; private VerticalAlign verticalAlign; @@ -53,34 +50,6 @@ public void setFloating(Boolean floating) { this.floating = floating; } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - *

- * CSS styles for the title. - *

- * - *

- * In styled mode, the subtitle style is given in the - * .highcharts-subtitle class. - *

- *

- * Defaults to: { "color": "#666666" } - */ - public void setStyle(Style style) { - this.style = style; - } - public Subtitle(String text) { this.text = text; } diff --git a/model/src/main/java/com/vaadin/addon/charts/model/Title.java b/model/src/main/java/com/vaadin/addon/charts/model/Title.java index c3c4000e883..6e79d7df760 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/Title.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/Title.java @@ -1,6 +1,4 @@ package com.vaadin.addon.charts.model; - -import com.vaadin.addon.charts.model.style.Style; /** * The chart's main title. */ @@ -9,7 +7,6 @@ public class Title extends AbstractConfigurationObject { private HorizontalAlign align; private Boolean floating; private Number margin; - private Style style; private String text; private Boolean useHTML; private VerticalAlign verticalAlign; @@ -71,35 +68,6 @@ public void setMargin(Number margin) { this.margin = margin; } - /** - * @see #setStyle(Style) - */ - public Style getStyle() { - if (style == null) { - style = new Style(); - } - return style; - } - - /** - *

- * CSS styles for the title. Use this for font styling, but use - * align, x and y for text alignment. - *

- * - *

- * In styled mode, the title style is given in the - * .highcharts-title class. - *

- *

- * Defaults to: { "color": "#333333", "fontSize": "18px" } - */ - public void setStyle(Style style) { - this.style = style; - } - public Title(String text) { this.text = text; } diff --git a/model/src/main/java/com/vaadin/addon/charts/model/XAxis.java b/model/src/main/java/com/vaadin/addon/charts/model/XAxis.java index ff4cad7cad9..2355ddd07e8 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/XAxis.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/XAxis.java @@ -27,9 +27,7 @@ public class XAxis extends Axis { private String description; private Boolean endOnTick; private Number floor; - private Color gridLineColor; private DashStyle gridLineDashStyle; - private Number gridLineWidth; private Number gridZIndex; private String id; private Labels labels; @@ -40,9 +38,7 @@ public class XAxis extends Axis { private Number minPadding; private Number minRange; private Number minTickInterval; - private Color minorGridLineColor; private DashStyle minorGridLineDashStyle; - private Number minorGridLineWidth; private Color minorTickColor; private String minorTickInterval; private Number minorTickLength; @@ -348,31 +344,6 @@ public void setFloor(Number floor) { this.floor = floor; } - /** - * @see #setGridLineColor(Color) - */ - public Color getGridLineColor() { - return gridLineColor; - } - - /** - *

- * Color of the grid lines extending the ticks across the plot area. - *

- * - *

- * In styled mode, the stroke is given in the - * .highcharts-grid-line class. - *

- *

- * Defaults to: #e6e6e6 - */ - public void setGridLineColor(Color gridLineColor) { - this.gridLineColor = gridLineColor; - } - /** * @see #setGridLineDashStyle(DashStyle) */ @@ -392,31 +363,6 @@ public void setGridLineDashStyle(DashStyle gridLineDashStyle) { this.gridLineDashStyle = gridLineDashStyle; } - /** - * @see #setGridLineWidth(Number) - */ - public Number getGridLineWidth() { - return gridLineWidth; - } - - /** - *

- * The width of the grid lines extending the ticks across the plot area. - *

- * - *

- * In styled mode, the stroke width is given in the - * .highcharts-grid-line class. - *

- *

- * Defaults to: 0 - */ - public void setGridLineWidth(Number gridLineWidth) { - this.gridLineWidth = gridLineWidth; - } - /** * @see #setGridZIndex(Number) */ @@ -627,32 +573,6 @@ public void setMinTickInterval(Number minTickInterval) { this.minTickInterval = minTickInterval; } - /** - * @see #setMinorGridLineColor(Color) - */ - public Color getMinorGridLineColor() { - return minorGridLineColor; - } - - /** - *

- * Color of the minor, secondary grid lines. - *

- * - * - *

- * In styled mode, the stroke width is given in the - * .highcharts-minor-grid-line class. - *

- *

- * Defaults to: #f2f2f2 - */ - public void setMinorGridLineColor(Color minorGridLineColor) { - this.minorGridLineColor = minorGridLineColor; - } - /** * @see #setMinorGridLineDashStyle(DashStyle) */ @@ -672,31 +592,6 @@ public void setMinorGridLineDashStyle(DashStyle minorGridLineDashStyle) { this.minorGridLineDashStyle = minorGridLineDashStyle; } - /** - * @see #setMinorGridLineWidth(Number) - */ - public Number getMinorGridLineWidth() { - return minorGridLineWidth; - } - - /** - *

- * Width of the minor, secondary grid lines. - *

- * - *

- * In styled mode, the stroke width is given in the - * .highcharts-grid-line class. - *

- *

- * Defaults to: 1 - */ - public void setMinorGridLineWidth(Number minorGridLineWidth) { - this.minorGridLineWidth = minorGridLineWidth; - } - /** * @see #setMinorTickColor(Color) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/YAxis.java b/model/src/main/java/com/vaadin/addon/charts/model/YAxis.java index 5e887ff9129..aa04fae16d3 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/YAxis.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/YAxis.java @@ -27,10 +27,8 @@ public class YAxis extends Axis { private String description; private Boolean endOnTick; private Number floor; - private Color gridLineColor; private DashStyle gridLineDashStyle; private String gridLineInterpolation; - private Number gridLineWidth; private Number gridZIndex; private String id; private Labels labels; @@ -43,9 +41,7 @@ public class YAxis extends Axis { private Number minPadding; private Number minRange; private Number minTickInterval; - private Color minorGridLineColor; private DashStyle minorGridLineDashStyle; - private Number minorGridLineWidth; private Color minorTickColor; private String minorTickInterval; private Number minorTickLength; @@ -375,31 +371,6 @@ public void setFloor(Number floor) { this.floor = floor; } - /** - * @see #setGridLineColor(Color) - */ - public Color getGridLineColor() { - return gridLineColor; - } - - /** - *

- * Color of the grid lines extending the ticks across the plot area. - *

- * - *

- * In styled mode, the stroke is given in the - * .highcharts-grid-line class. - *

- *

- * Defaults to: #e6e6e6 - */ - public void setGridLineColor(Color gridLineColor) { - this.gridLineColor = gridLineColor; - } - /** * @see #setGridLineDashStyle(DashStyle) */ @@ -437,22 +408,6 @@ public void setGridLineInterpolation(String gridLineInterpolation) { this.gridLineInterpolation = gridLineInterpolation; } - /** - * @see #setGridLineWidth(Number) - */ - public Number getGridLineWidth() { - return gridLineWidth; - } - - /** - * The width of the grid lines extending the ticks across the plot area. - *

- * Defaults to: 1 - */ - public void setGridLineWidth(Number gridLineWidth) { - this.gridLineWidth = gridLineWidth; - } - /** * @see #setGridZIndex(Number) */ @@ -680,32 +635,6 @@ public void setMinTickInterval(Number minTickInterval) { this.minTickInterval = minTickInterval; } - /** - * @see #setMinorGridLineColor(Color) - */ - public Color getMinorGridLineColor() { - return minorGridLineColor; - } - - /** - *

- * Color of the minor, secondary grid lines. - *

- * - * - *

- * In styled mode, the stroke width is given in the - * .highcharts-minor-grid-line class. - *

- *

- * Defaults to: #f2f2f2 - */ - public void setMinorGridLineColor(Color minorGridLineColor) { - this.minorGridLineColor = minorGridLineColor; - } - /** * @see #setMinorGridLineDashStyle(DashStyle) */ @@ -725,31 +654,6 @@ public void setMinorGridLineDashStyle(DashStyle minorGridLineDashStyle) { this.minorGridLineDashStyle = minorGridLineDashStyle; } - /** - * @see #setMinorGridLineWidth(Number) - */ - public Number getMinorGridLineWidth() { - return minorGridLineWidth; - } - - /** - *

- * Width of the minor, secondary grid lines. - *

- * - *

- * In styled mode, the stroke width is given in the - * .highcharts-grid-line class. - *

- *

- * Defaults to: 1 - */ - public void setMinorGridLineWidth(Number minorGridLineWidth) { - this.minorGridLineWidth = minorGridLineWidth; - } - /** * @see #setMinorTickColor(Color) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/ZAxis.java b/model/src/main/java/com/vaadin/addon/charts/model/ZAxis.java index 2ff6da8e8a1..a64a4dbe267 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/ZAxis.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/ZAxis.java @@ -24,9 +24,7 @@ public class ZAxis extends Axis { private String description; private Boolean endOnTick; private Number floor; - private Color gridLineColor; private DashStyle gridLineDashStyle; - private Number gridLineWidth; private Number gridZIndex; private String id; private Labels labels; @@ -328,31 +326,6 @@ public void setFloor(Number floor) { this.floor = floor; } - /** - * @see #setGridLineColor(Color) - */ - public Color getGridLineColor() { - return gridLineColor; - } - - /** - *

- * Color of the grid lines extending the ticks across the plot area. - *

- * - *

- * In styled mode, the stroke is given in the - * .highcharts-grid-line class. - *

- *

- * Defaults to: #e6e6e6 - */ - public void setGridLineColor(Color gridLineColor) { - this.gridLineColor = gridLineColor; - } - /** * @see #setGridLineDashStyle(DashStyle) */ @@ -372,31 +345,6 @@ public void setGridLineDashStyle(DashStyle gridLineDashStyle) { this.gridLineDashStyle = gridLineDashStyle; } - /** - * @see #setGridLineWidth(Number) - */ - public Number getGridLineWidth() { - return gridLineWidth; - } - - /** - *

- * The width of the grid lines extending the ticks across the plot area. - *

- * - *

- * In styled mode, the stroke width is given in the - * .highcharts-grid-line class. - *

- *

- * Defaults to: 0 - */ - public void setGridLineWidth(Number gridLineWidth) { - this.gridLineWidth = gridLineWidth; - } - /** * @see #setGridZIndex(Number) */ diff --git a/model/src/main/java/com/vaadin/addon/charts/model/style/AxisStyle.java b/model/src/main/java/com/vaadin/addon/charts/model/style/AxisStyle.java index a491915745c..612a01ee69c 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/style/AxisStyle.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/style/AxisStyle.java @@ -28,10 +28,6 @@ public class AxisStyle extends AbstractConfigurationObject { private TickIntervalStyle minorTickInterval; private Color lineColor; private Number lineWidth; - private Number tickWidth; - private Color tickColor; - private Color gridLineColor; - private Number gridLineWidth; private Color alternateGridColor; private final StyleWrapper title = new StyleWrapper(); @@ -98,38 +94,6 @@ public void setLineWidth(Number lineWidth) { this.lineWidth = lineWidth; } - /** - * @see #setTickWidth(Number) - */ - public Number getTickWidth() { - return tickWidth; - } - - /** - * Sets the pixel width of the major tick marks. Defaults to 1. - * - * @param tickWidth - */ - public void setTickWidth(Number tickWidth) { - this.tickWidth = tickWidth; - } - - /** - * @see #setTickColor(Color) - */ - public Color getTickColor() { - return tickColor; - } - - /** - * Sets the color for the main tick marks. Defaults to #C0D0E0. - * - * @param tickColor - */ - public void setTickColor(Color tickColor) { - this.tickColor = tickColor; - } - /** * @return The title style */ @@ -180,25 +144,6 @@ public void setLabels(Style style) { labels.setStyle(style); } - /** - * @see #setGridLineWidth(Number) - * - * @return The width of grid lines or null if not defined - */ - public Number getGridLineWidth() { - return gridLineWidth; - } - - /** - * Sets the width of the grid lines extending the ticks across the plot - * area. Defaults to 0. - * - * @param gridLineWidth - */ - public void setGridLineWidth(Number gridLineWidth) { - this.gridLineWidth = gridLineWidth; - } - /** * @see #setAlternateGridColor(Color) * @@ -219,24 +164,4 @@ public void setAlternateGridColor(Color alternateGridColor) { this.alternateGridColor = alternateGridColor; } - /** - * @see #setGridLineColor(Color) - * - * @return The color of grid lines, null if not defined - */ - public Color getGridLineColor() { - return gridLineColor; - } - - /** - * Sets the color of the grid lines extending the ticks across the plot - * area. Defaults to "#C0C0C0". - * - * @param gridLineColor - * Color of grid lines - */ - public void setGridLineColor(Color gridLineColor) { - this.gridLineColor = gridLineColor; - } - } diff --git a/model/src/main/java/com/vaadin/addon/charts/model/style/ChartStyle.java b/model/src/main/java/com/vaadin/addon/charts/model/style/ChartStyle.java index 009188d1928..25382b82115 100644 --- a/model/src/main/java/com/vaadin/addon/charts/model/style/ChartStyle.java +++ b/model/src/main/java/com/vaadin/addon/charts/model/style/ChartStyle.java @@ -24,62 +24,12 @@ */ @SuppressWarnings("serial") public class ChartStyle extends AbstractConfigurationObject { - private Color backgroundColor; - private Color plotBackgroundColor; private String plotBackgroundImage; private Boolean plotShadow; - private Number plotBorderWidth; - private Color plotBorderColor; private String className; - private Number borderWidth; - private Color borderColor; private Number borderRadius; private Style style; - /** - * @see #setBackgroundColor(Color) - * @see #getPlotBackgroundColor() - * - * @return The background color of the chart, null if not defined - */ - public Color getBackgroundColor() { - return backgroundColor; - } - - /** - * Sets the background color of the outer chart area. May be a gradient. - * Defaults to "#FFFFFF". - * - * @see #setPlotBackgroundColor(Color) - * - * @param backgroundColor - */ - public void setBackgroundColor(Color backgroundColor) { - this.backgroundColor = backgroundColor; - } - - /** - * @see #setPlotBackgroundColor(Color) - * @see #getBackgroundColor() - * - * @return The background color of the plot, null if not defined - */ - public Color getPlotBackgroundColor() { - return plotBackgroundColor; - } - - /** - * Sets the background color of the plot area. May be a gradient. Defaults - * to null. - * - * @see #setBackgroundColor(Color) - * - * @param plotBackgroundColor - */ - public void setPlotBackgroundColor(Color plotBackgroundColor) { - this.plotBackgroundColor = plotBackgroundColor; - } - /** * @see #setPlotBackgroundImage(String) * @@ -119,25 +69,6 @@ public void setPlotShadow(Boolean plotShadow) { this.plotShadow = plotShadow; } - /** - * @see #setPlotBorderWidth(Number) - * - * @return The width of the plot border or null if not defined - */ - public Number getPlotBorderWidth() { - return plotBorderWidth; - } - - /** - * Sets the pixel width of the plot area border. Defaults to 0. - * - * @param plotBorderWidth - * Width of border - */ - public void setPlotBorderWidth(Number plotBorderWidth) { - this.plotBorderWidth = plotBorderWidth; - } - /** * @see #setClassName(String) */ @@ -155,26 +86,6 @@ public void setClassName(String className) { this.className = className; } - /** - * @see #setBorderWidth(Number) - * - * @return The width of the chart border, null if not defined - */ - public Number getBorderWidth() { - return borderWidth; - } - - /** - * Sets the pixel width of the outer chart border. The border is painted - * using vector graphic techniques to allow rounded corners. Defaults to 0. - * - * @param borderWidth - * Border width - */ - public void setBorderWidth(Number borderWidth) { - this.borderWidth = borderWidth; - } - /** * @see #setBorderRadius(Number) * @@ -194,25 +105,6 @@ public void setBorderRadius(Number borderRadius) { this.borderRadius = borderRadius; } - /** - * @see #setPlotBorderColor(Color) - * @return The color of the plot border, null if not defined - */ - public Color getPlotBorderColor() { - return plotBorderColor; - } - - /** - * Sets the color of the outer chart border. The border is painted using - * vector graphic techniques to allow rounded corners. Defaults to - * "#4572A7". - * - * @param plotBorderColor - */ - public void setPlotBorderColor(Color plotBorderColor) { - this.plotBorderColor = plotBorderColor; - } - /** * Gets various style defaults used. This can be used to for example define * default font family. @@ -241,24 +133,4 @@ public Style getStyle() { public void setStyle(Style style) { this.style = style; } - - - - /** - * @see #setBorderColor(Color) - * @return The color of the plot border, null if not defined - */ - public Color getBorderColor() { - return borderColor; - } - - /** - *Sets the color of the outer chart border. Defaults to #4572A7. - * - * @param borderColor - */ - - public void setBorderColor(Color borderColor) { - this.borderColor = borderColor; - } } diff --git a/vaadin-charts-flow-parent/vaadin-charts-flow-demo/src/main/java/com/vaadin/addon/charts/examples/combinations/MultipleAxes.java b/vaadin-charts-flow-parent/vaadin-charts-flow-demo/src/main/java/com/vaadin/addon/charts/examples/combinations/MultipleAxes.java index e85daa49726..abc84734212 100644 --- a/vaadin-charts-flow-parent/vaadin-charts-flow-demo/src/main/java/com/vaadin/addon/charts/examples/combinations/MultipleAxes.java +++ b/vaadin-charts-flow-parent/vaadin-charts-flow-demo/src/main/java/com/vaadin/addon/charts/examples/combinations/MultipleAxes.java @@ -33,7 +33,6 @@ public void initDemo() { conf.addyAxis(y1); YAxis y2 = new YAxis(); - y2.setGridLineWidth(0); y2.setTitle(new AxisTitle("Rainfall")); labels = new Labels(); labels.setFormatter("return this.value +' mm'"); @@ -42,7 +41,6 @@ public void initDemo() { conf.addyAxis(y2); YAxis y3 = new YAxis(); - y3.setGridLineWidth(0); y3.setTitle(new AxisTitle("Sea-Level Pressure")); labels = new Labels(); labels.setFormatter("return this.value +' mb'"); diff --git a/vaadin-charts-flow-parent/vaadin-charts-flow-demo/src/main/java/com/vaadin/addon/charts/examples/dynamic/DynamicExtremes.java b/vaadin-charts-flow-parent/vaadin-charts-flow-demo/src/main/java/com/vaadin/addon/charts/examples/dynamic/DynamicExtremes.java index 0906ae0a6e8..7d90949973e 100644 --- a/vaadin-charts-flow-parent/vaadin-charts-flow-demo/src/main/java/com/vaadin/addon/charts/examples/dynamic/DynamicExtremes.java +++ b/vaadin-charts-flow-parent/vaadin-charts-flow-demo/src/main/java/com/vaadin/addon/charts/examples/dynamic/DynamicExtremes.java @@ -53,8 +53,8 @@ public void initDemo() { legend.setAlign(HorizontalAlign.RIGHT); legend.setVerticalAlign(VerticalAlign.TOP); legend.setX(-10d); + legend.setY(100d); - legend.setBorderWidth(0); ListSeries ls = new ListSeries(); ls.setName("Tokyo");