com.vaadin.flow.component.charts.model.Select Maven / Gradle / Ivy
/**
* Copyright 2000-2024 Vaadin Ltd.
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See {@literal } for the full
* license.
*/
package com.vaadin.flow.component.charts.model;
import com.vaadin.flow.component.charts.model.style.Color;
/**
* The appearance of the point marker when selected. In order to allow a point
* to be selected, set the series.allowPointSelect
option to true.
*/
public class Select extends AbstractConfigurationObject {
private Boolean enabled;
private Color fillColor;
private Color lineColor;
private Number lineWidth;
private Number radius;
public Select() {
}
public Select(Boolean enabled) {
this.enabled = enabled;
}
/**
* @see #setEnabled(Boolean)
*/
public Boolean getEnabled() {
return enabled;
}
/**
* Enable or disable visible feedback for selection.
*
* Defaults to: true
*/
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
/**
* @see #setFillColor(Color)
*/
public Color getFillColor() {
return fillColor;
}
/**
* The fill color of the point marker.
*/
public void setFillColor(Color fillColor) {
this.fillColor = fillColor;
}
/**
* @see #setLineColor(Color)
*/
public Color getLineColor() {
return lineColor;
}
/**
* The color of the point marker's outline. When null
, the
* series' or point's color is used.
*
* Defaults to: #000000
*/
public void setLineColor(Color lineColor) {
this.lineColor = lineColor;
}
/**
* @see #setLineWidth(Number)
*/
public Number getLineWidth() {
return lineWidth;
}
/**
* The width of the point marker's outline.
*
* Defaults to: 0
*/
public void setLineWidth(Number lineWidth) {
this.lineWidth = lineWidth;
}
/**
* @see #setRadius(Number)
*/
public Number getRadius() {
return radius;
}
/**
* The radius of the point marker. In hover state, it defaults to the normal
* state's radius + 2.
*/
public void setRadius(Number radius) {
this.radius = radius;
}
}