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

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

There is a newer version: 24.4.12
Show newest version
package com.vaadin.flow.component.charts.model;

/*-
 * #%L
 * Vaadin Charts for Flow
 * %%
 * Copyright (C) 2014 - 2020 Vaadin Ltd
 * %%
 * This program is available under Commercial Vaadin Developer License
 * 4.0 (CVDLv4).
 * 
 * For the full License, see .
 * #L%
 */

/**
 * Under which conditions the rule applies.
 */
public class Condition extends AbstractConfigurationObject {

    private String _fn_callback;
    private Number maxHeight;
    private Number maxWidth;
    private Number minHeight;
    private Number minWidth;

    public Condition() {
    }

    public String getCallback() {
        return _fn_callback;
    }

    public void setCallback(String _fn_callback) {
        this._fn_callback = _fn_callback;
    }

    /**
     * @see #setMaxHeight(Number)
     */
    public Number getMaxHeight() {
        return maxHeight;
    }

    /**
     * The responsive rule applies if the chart height is less than this.
     */
    public void setMaxHeight(Number maxHeight) {
        this.maxHeight = maxHeight;
    }

    /**
     * @see #setMaxWidth(Number)
     */
    public Number getMaxWidth() {
        return maxWidth;
    }

    /**
     * The responsive rule applies if the chart width is less than this.
     */
    public void setMaxWidth(Number maxWidth) {
        this.maxWidth = maxWidth;
    }

    /**
     * @see #setMinHeight(Number)
     */
    public Number getMinHeight() {
        return minHeight;
    }

    /**
     * The responsive rule applies if the chart height is greater than this.
     * 

* Defaults to: 0 */ public void setMinHeight(Number minHeight) { this.minHeight = minHeight; } /** * @see #setMinWidth(Number) */ public Number getMinWidth() { return minWidth; } /** * The responsive rule applies if the chart width is greater than this. *

* Defaults to: 0 */ public void setMinWidth(Number minWidth) { this.minWidth = minWidth; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy