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

nl.pvanassen.highchart.api.Title Maven / Gradle / Ivy

The newest version!
package nl.pvanassen.highchart.api;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import nl.pvanassen.highchart.api.base.BaseObject;
import nl.pvanassen.highchart.api.base.Style;

@XmlAccessorType(XmlAccessType.NONE)
public class Title extends BaseObject {

    @XmlElement
    private String text;

    private Style style;

    @XmlElement
    private Integer margin;

    public Title() {
        style = null;
        text = "";
    }

    public int getMargin() {
        return margin;
    }

    public Style getStyle() {
        if (style == null) {
            style = new Style();
        }
        return style;
    }

    public String getText() {
        return text;
    }

    public Title setMargin(int margin) {
        this.margin = margin;
        return this;
    }

    public Title setText(String text) {
        this.text = text;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy