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

software.xdev.chartjs.model.options.Font Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
/*
 * Copyright © 2023 XDEV Software (https://xdev.software)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package software.xdev.chartjs.model.options;

import software.xdev.chartjs.model.enums.FontStyle;


public class Font
{
	protected String family;
	protected Number size;
	protected FontStyle style;
	protected Number weight;
	protected String lineHeight;
	
	public String getFamily()
	{
		return this.family;
	}
	
	/**
	 * 

* Font family for the scale title, follows CSS font-family options. *

* *

* Default {@code "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"} *

*/ public Font setFamily(final String family) { this.family = family; return this; } public Number getSize() { return this.size; } /** *

* Font size for the scale title. *

* *

* Default {@code 12} *

*/ public Font setSize(final Number size) { this.size = size; return this; } public FontStyle getStyle() { return this.style; } /** *

* Font style for the scale title, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit). *

* *

* Default {@code "normal"} *

*/ public Font setStyle(final FontStyle style) { this.style = style; return this; } public Number getWeight() { return this.weight; } public Font setWeight(final Number weight) { this.weight = weight; return this; } /** * @see #setLineHeight(String) */ public String getLineHeight() { return this.lineHeight; } /** * Height of an individual line of text */ public void setLineHeight(final String lineHeight) { this.lineHeight = lineHeight; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy