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

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

/**
 * Highchart by default puts a credits label in the lower right corner of the
 * chart. This can be changed using these options.
 */
public class Credits extends AbstractConfigurationObject {

    private Boolean enabled;
    private String href;
    private Position position;
    private Style style;
    private String text;

    public Credits() {
    }

    public Credits(Boolean enabled) {
        this.enabled = enabled;
    }

    /**
     * @see #setEnabled(Boolean)
     */
    public Boolean getEnabled() {
        return enabled;
    }

    /**
     * Whether to show the credits text.
     * 

* Defaults to: true */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** * @see #setHref(String) */ public String getHref() { return href; } /** * The URL for the credits label. *

* Defaults to: http://www.highcharts.com */ public void setHref(String href) { this.href = href; } /** * @see #setPosition(Position) */ public Position getPosition() { if (position == null) { position = new Position(); } return position; } /** * Position configuration for the credits label. */ public void setPosition(Position position) { this.position = position; } /** * @see #setStyle(Style) */ public Style getStyle() { if (style == null) { style = new Style(); } return style; } /** * CSS styles for the credits label. *

* Defaults to: { "cursor": "pointer", "color": "#999999", "fontSize": * "10px" } */ public void setStyle(Style style) { this.style = style; } public Credits(String text) { this.text = text; } /** * @see #setText(String) */ public String getText() { return text; } /** * The text for the credits label. *

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy