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

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

import com.vaadin.flow.component.charts.model.style.Style;

/**
 * A title to be added on top of the legend.
 */
public class LegendTitle extends AbstractConfigurationObject {

    private Style style;
    private String text;

    public LegendTitle() {
    }

    /**
     * @see #setStyle(Style)
     */
    public Style getStyle() {
        if (style == null) {
            style = new Style();
        }
        return style;
    }

    /**
     * Generic CSS styles for the legend title.
     * 

* Defaults to: {"fontWeight":"bold"} */ public void setStyle(Style style) { this.style = style; } public LegendTitle(String text) { this.text = text; } /** * @see #setText(String) */ public String getText() { return text; } /** * A text or HTML string for the title. *

* Defaults to: null */ public void setText(String text) { this.text = text; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy