All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.flow.component.charts.model.PlotLine Maven / Gradle / Ivy

There is a newer version: 24.4.12
Show newest version
package com.vaadin.flow.component.charts.model;

/*-
 * #%L
 * Vaadin Charts for Flow
 * %%
 * Copyright (C) 2014 - 2020 Vaadin Ltd
 * %%
 * This program is available under Commercial Vaadin Developer License
 * 4.0 (CVDLv4).
 * 
 * For the full License, see .
 * #L%
 */

import com.vaadin.flow.component.charts.model.style.Color;

/**
 * 

* An array of lines stretching across the plot area, marking a specific value * on one of the axes. *

* *

* In * styled mode, the plot lines are styled by the * .highcharts-plot-line class in addition to the * className option. *

*/ public class PlotLine extends AbstractConfigurationObject { private String className; private Color color; private DashStyle dashStyle; private String id; private Label label; private Number value; private Number width; private Number zIndex; public PlotLine() { } /** * @see #setClassName(String) */ public String getClassName() { return className; } /** * A custom class name, in addition to the default * highcharts-plot-line, to apply to each individual line. */ public void setClassName(String className) { this.className = className; } /** * @see #setColor(Color) */ public Color getColor() { return color; } /** * The color of the line. */ public void setColor(Color color) { this.color = color; } /** * @see #setDashStyle(DashStyle) */ public DashStyle getDashStyle() { return dashStyle; } /** * The dashing or dot style for the plot line. For possible values see * this overview. *

* Defaults to: Solid */ public void setDashStyle(DashStyle dashStyle) { this.dashStyle = dashStyle; } /** * @see #setId(String) */ public String getId() { return id; } /** * An id used for identifying the plot line in Axis.removePlotLine. */ public void setId(String id) { this.id = id; } /** * @see #setLabel(Label) */ public Label getLabel() { if (label == null) { label = new Label(); } return label; } /** * Text labels for the plot bands */ public void setLabel(Label label) { this.label = label; } /** * @see #setValue(Number) */ public Number getValue() { return value; } /** * The position of the line in axis units. */ public void setValue(Number value) { this.value = value; } /** * @see #setWidth(Number) */ public Number getWidth() { return width; } /** * The width or thickness of the plot line. */ public void setWidth(Number width) { this.width = width; } /** * @see #setZIndex(Number) */ public Number getZIndex() { return zIndex; } /** * The z index of the plot line within the chart. */ public void setZIndex(Number zIndex) { this.zIndex = zIndex; } public PlotLine(Number value, Number width, Color color) { this.value = value; this.width = width; this.color = color; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy