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

com.vaadin.flow.component.charts.model.Responsive 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;

/**
 * Allows setting a set of rules to apply for different screen or chart sizes.
 * Each rule specifies additional chart options.
 */
public class Responsive extends AbstractConfigurationObject {

    private Rules rules;

    public Responsive() {
    }

    /**
     * @see #setRules(Rules)
     */
    public Rules getRules() {
        if (rules == null) {
            rules = new Rules();
        }
        return rules;
    }

    /**
     * A set of rules for responsive settings. The rules are executed from the
     * top down.
     */
    public void setRules(Rules rules) {
        this.rules = rules;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy