com.vaadin.flow.component.charts.model.Attributes Maven / Gradle / Ivy
package com.vaadin.flow.component.charts.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.vaadin.flow.component.charts.model.style.Color;
/*
* #%L
* Vaadin Charts
* %%
* Copyright (C) 2014 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see .
* #L%
*/
/**
* A collection of style attributes for the {@link Halo}
*/
public class Attributes extends AbstractConfigurationObject {
private Color fill;
private Color stroke;
@JsonProperty("stroke-width")
private Number strokeWidth;
/**
* @see #setFill(Color)
* @return
*/
public Color getFill() {
return fill;
}
/**
* SVG fill attribute
*
* @param fill
*/
public void setFill(Color fill) {
this.fill = fill;
}
/**
* @see #setStroke(Color)
* @return
*/
public Color getStroke() {
return stroke;
}
/**
* SVG stroke attribute
*
* @param stroke
*/
public void setStroke(Color stroke) {
this.stroke = stroke;
}
/**
* @see #setStrokeWidth(Number)
* @return
*/
public Number getStrokeWidth() {
return strokeWidth;
}
/**
* SVG stroke-width attribute
*
* @param strokeWidth
*/
public void setStrokeWidth(Number strokeWidth) {
this.strokeWidth = strokeWidth;
}
}