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

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

There is a newer version: 24.5.4
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;

public class States extends AbstractConfigurationObject {

    private Hover hover;
    private Select select;
    private Inactive inactive;

    public States() {
    }

    /**
     * @see #setHover(Hover)
     */
    public Hover getHover() {
        if (hover == null) {
            hover = new Hover();
        }
        return hover;
    }

    /**
     * The appearance of the other marker or data point when hover.
     *
     * @see #setInactive(Hover)
     */
    public void setHover(Hover hover) {
        this.hover = hover;
    }

    /**
     * @see #setSelect(Select)
     */
    public Select getSelect() {
        if (select == null) {
            select = new Select();
        }
        return select;
    }

    /**
     * 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 void setSelect(Select select) {
        this.select = select;
    }

    /**
     * @see #setInactive(Hover)
     */
    public Inactive getInactive() {
        if (inactive == null) {
            inactive = new Inactive();
        }
        return inactive;
    }

    /**
     * The appearance of the other data points when one is hovered.
     * 

* Note: Inactive style is not applied to Marker. * * @see #setHover(Hover) */ public void setInactive(Inactive inactive) { this.inactive = inactive; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy