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

com.vaadin.flow.component.charts.model.Subtitle 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 - 2019 Vaadin Ltd
 * %%
 * This program is available under Commercial Vaadin Add-On License 3.0
 * (CVALv3).
 * 
 * See the file licensing.txt distributed with this software for more
 * information about licensing.
 * 
 * You should have received a copy of the CVALv3 along with this program.
 * If not, see .
 * #L%
 */


import javax.annotation.Generated;
import com.vaadin.flow.component.charts.model.style.Style;

/**
 * The chart's subtitle
 */
@Generated(value = "This class is generated and shouldn't be modified", comments = "Incorrect and missing API should be reported to https://github.com/vaadin/vaadin-charts-flow/issues/new")
public class Subtitle extends AbstractConfigurationObject {

	private HorizontalAlign align;
	private Boolean floating;
	private Style style;
	private String text;
	private Boolean useHTML;
	private VerticalAlign verticalAlign;
	private Number widthAdjust;
	private Number x;
	private Number y;

	public Subtitle() {
	}

	/**
	 * @see #setAlign(HorizontalAlign)
	 */
	public HorizontalAlign getAlign() {
		return align;
	}

	/**
	 * The horizontal alignment of the subtitle. Can be one of "left", "center"
	 * and "right".
	 * 

* Defaults to: center */ public void setAlign(HorizontalAlign align) { this.align = align; } /** * @see #setFloating(Boolean) */ public Boolean getFloating() { return floating; } /** * When the subtitle is floating, the plot area will not move to make space * for it. *

* Defaults to: false */ public void setFloating(Boolean floating) { this.floating = floating; } /** * @see #setStyle(Style) */ public Style getStyle() { if (style == null) { style = new Style(); } return style; } /** *

* CSS styles for the title. *

* *

* In styled mode, the subtitle style is given in the * .highcharts-subtitle class. *

*

* Defaults to: { "color": "#666666" } */ public void setStyle(Style style) { this.style = style; } public Subtitle(String text) { this.text = text; } /** * @see #setText(String) */ public String getText() { return text; } /** * The subtitle of the chart. */ public void setText(String text) { this.text = text; } /** * @see #setUseHTML(Boolean) */ public Boolean getUseHTML() { return useHTML; } /** * Whether to use HTML to render the text. *

* Defaults to: false */ public void setUseHTML(Boolean useHTML) { this.useHTML = useHTML; } /** * @see #setVerticalAlign(VerticalAlign) */ public VerticalAlign getVerticalAlign() { return verticalAlign; } /** * The vertical alignment of the title. Can be one of "top", "middle" and * "bottom". When a value is given, the title behaves as floating. *

* Defaults to: */ public void setVerticalAlign(VerticalAlign verticalAlign) { this.verticalAlign = verticalAlign; } /** * @see #setWidthAdjust(Number) */ public Number getWidthAdjust() { return widthAdjust; } /** * Adjustment made to the subtitle width, normally to reserve space for the * exporting burger menu. *

* Defaults to: -44 */ public void setWidthAdjust(Number widthAdjust) { this.widthAdjust = widthAdjust; } /** * @see #setX(Number) */ public Number getX() { return x; } /** * The x position of the subtitle relative to the alignment within * chart.spacingLeft and chart.spacingRight. *

* Defaults to: 0 */ public void setX(Number x) { this.x = x; } /** * @see #setY(Number) */ public Number getY() { return y; } /** * The y position of the subtitle relative to the alignment within * chart.spacingTop and chart.spacingBottom. By default the subtitle is laid * out below the title unless the title is floating. *

* Defaults to: null */ public void setY(Number y) { this.y = y; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy