net.sf.dynamicreports.design.base.chart.plot.DRDesignMeterPlot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dynamicreports-core Show documentation
Show all versions of dynamicreports-core Show documentation
DynamicReports is an open source Java reporting library based on JasperReports. It allows to create dynamic report designs and it doesn't need a visual report designer.
You can very quickly create reports and produce documents that can be displayed, printed or exported into many popular formats such as PDF, Excel, Word and others.
/**
* DynamicReports - Free Java reporting library for creating reports dynamically
*
* Copyright (C) 2010 - 2016 Ricardo Mariaca
* http://www.dynamicreports.org
*
* This file is part of DynamicReports.
*
* DynamicReports is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DynamicReports is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with DynamicReports. If not, see .
*/
package net.sf.dynamicreports.design.base.chart.plot;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import net.sf.dynamicreports.design.definition.chart.plot.DRIDesignMeterInterval;
import net.sf.dynamicreports.design.definition.chart.plot.DRIDesignMeterPlot;
import net.sf.dynamicreports.design.definition.expression.DRIDesignExpression;
import net.sf.dynamicreports.design.definition.style.DRIDesignFont;
import net.sf.dynamicreports.report.constant.Constants;
import net.sf.dynamicreports.report.constant.MeterShape;
/**
* @author Ricardo Mariaca ([email protected])
*/
public class DRDesignMeterPlot extends DRDesignAxisPlot implements DRIDesignMeterPlot {
private static final long serialVersionUID = Constants.SERIAL_VERSION_UID;
private DRIDesignExpression dataRangeLowExpression;
private DRIDesignExpression dataRangeHighExpression;
private Color valueColor;
private String valueMask;
private DRIDesignFont valueFont;
private MeterShape shape;
private List intervals;
private Integer meterAngle;
private String units;
private Double tickInterval;
private Color meterBackgroundColor;
private Color needleColor;
private Color tickColor;
private DRIDesignFont tickLabelFont;
public DRDesignMeterPlot() {
intervals = new ArrayList();
}
@Override
public DRIDesignExpression getDataRangeLowExpression() {
return dataRangeLowExpression;
}
public void setDataRangeLowExpression(DRIDesignExpression dataRangeLowExpression) {
this.dataRangeLowExpression = dataRangeLowExpression;
}
@Override
public DRIDesignExpression getDataRangeHighExpression() {
return dataRangeHighExpression;
}
public void setDataRangeHighExpression(DRIDesignExpression dataRangeHighExpression) {
this.dataRangeHighExpression = dataRangeHighExpression;
}
@Override
public Color getValueColor() {
return valueColor;
}
public void setValueColor(Color valueColor) {
this.valueColor = valueColor;
}
@Override
public String getValueMask() {
return valueMask;
}
public void setValueMask(String valueMask) {
this.valueMask = valueMask;
}
@Override
public DRIDesignFont getValueFont() {
return valueFont;
}
public void setValueFont(DRIDesignFont valueFont) {
this.valueFont = valueFont;
}
@Override
public MeterShape getShape() {
return shape;
}
public void setShape(MeterShape shape) {
this.shape = shape;
}
@Override
public List getIntervals() {
return intervals;
}
public void setIntervals(List intervals) {
this.intervals = intervals;
}
@Override
public Integer getMeterAngle() {
return meterAngle;
}
public void setMeterAngle(Integer meterAngle) {
this.meterAngle = meterAngle;
}
@Override
public String getUnits() {
return units;
}
public void setUnits(String units) {
this.units = units;
}
@Override
public Double getTickInterval() {
return tickInterval;
}
public void setTickInterval(Double tickInterval) {
this.tickInterval = tickInterval;
}
@Override
public Color getMeterBackgroundColor() {
return meterBackgroundColor;
}
public void setMeterBackgroundColor(Color meterBackgroundColor) {
this.meterBackgroundColor = meterBackgroundColor;
}
@Override
public Color getNeedleColor() {
return needleColor;
}
public void setNeedleColor(Color needleColor) {
this.needleColor = needleColor;
}
@Override
public Color getTickColor() {
return tickColor;
}
public void setTickColor(Color tickColor) {
this.tickColor = tickColor;
}
@Override
public DRIDesignFont getTickLabelFont() {
return tickLabelFont;
}
public void setTickLabelFont(DRIDesignFont tickLabelFont) {
this.tickLabelFont = tickLabelFont;
}
}