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

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

There is a newer version: 24.6.0
Show newest version
/**
 * 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;

/**
 * 

* Options for the halo appearing around the hovered point in line-type series * as well as outside the hovered slice in pie charts. By default the halo is * filled by the current point or series color with an opacity of 0.25. The halo * can be disabled by setting the halo option to false * . *

* *

* In * styled mode, the halo is styled with the .highcharts-halo * class, with colors inherited from .highcharts-color-{n}. *

*/ public class Halo extends AbstractConfigurationObject { private Attributes attributes; private Number opacity; private Number size; public Halo() { } /** * @see #setAttributes(Attributes) */ public Attributes getAttributes() { if (attributes == null) { attributes = new Attributes(); } return attributes; } /** * A collection of SVG attributes to override the appearance of the halo, * for example fill, stroke and * stroke-width. */ public void setAttributes(Attributes attributes) { this.attributes = attributes; } /** * @see #setOpacity(Number) */ public Number getOpacity() { return opacity; } /** * Opacity for the halo unless a specific fill is overridden using the * attributes setting. Note that Highcharts is only able to * apply opacity to colors of hex or rgb(a) formats. *

* Defaults to: 0.25 */ public void setOpacity(Number opacity) { this.opacity = opacity; } /** * @see #setSize(Number) */ public Number getSize() { return size; } /** * The pixel size of the halo. For point markers this is the radius of the * halo. For pie slices it is the width of the halo outside the slice. For * bubbles it defaults to 5 and is the width of the halo outside the bubble. *

* Defaults to: 10 */ public void setSize(Number size) { this.size = size; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy