org.primefaces.model.charts.ChartOptions Maven / Gradle / Ivy
/*
* The MIT License
*
* Copyright (c) 2009-2024 PrimeTek Informatics
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.primefaces.model.charts;
import java.io.Serializable;
import org.primefaces.model.charts.optionconfig.animation.Animation;
import org.primefaces.model.charts.optionconfig.elements.Elements;
import org.primefaces.model.charts.optionconfig.legend.Legend;
import org.primefaces.model.charts.optionconfig.title.Title;
import org.primefaces.model.charts.optionconfig.tooltip.Tooltip;
/**
* @deprecated please use new p:chart component
*/
@Deprecated(since = "14.0.0", forRemoval = true)
public abstract class ChartOptions implements Serializable {
private static final long serialVersionUID = 1L;
private boolean responsive = true;
private boolean maintainAspectRatio = true;
private Number aspectRatio;
private Elements elements;
private Title title;
private Title subtitle; // exact same model as Title
private Tooltip tooltip;
private Legend legend;
private Animation animation;
public Elements getElements() {
return elements;
}
public void setElements(Elements elements) {
this.elements = elements;
}
public Title getTitle() {
return title;
}
public void setSubtitle(Title subtitle) {
this.subtitle = subtitle;
}
public Title getSubtitle() {
return subtitle;
}
public void setTitle(Title title) {
this.title = title;
}
public Tooltip getTooltip() {
return tooltip;
}
public void setTooltip(Tooltip tooltip) {
this.tooltip = tooltip;
}
public Legend getLegend() {
return legend;
}
public void setLegend(Legend legend) {
this.legend = legend;
}
public Animation getAnimation() {
return animation;
}
public void setAnimation(Animation animation) {
this.animation = animation;
}
public boolean isResponsive() {
return responsive;
}
public void setResponsive(boolean responsive) {
this.responsive = responsive;
}
public boolean isMaintainAspectRatio() {
return maintainAspectRatio;
}
public void setMaintainAspectRatio(boolean maintainAspectRatio) {
this.maintainAspectRatio = maintainAspectRatio;
}
public Number getAspectRatio() {
return aspectRatio;
}
public void setAspectRatio(Number aspectRatio) {
this.aspectRatio = aspectRatio;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy