br.com.digilabs.jqplot.renderer.plugin.BarRenderer Maven / Gradle / Ivy
/*
* Copyright 2011 Inaiat H. Moraes.
*
* 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.
* under the License.
*/
package br.com.digilabs.jqplot.renderer.plugin;
import java.util.Collection;
import br.com.digilabs.jqplot.JqPlotResources;
import br.com.digilabs.jqplot.renderer.Renderer;
/**
* A plugin renderer for jqPlot to draw a bar plot. Draws series as a line.
*
* @author inaiat
*/
@Deprecated
public class BarRenderer implements Renderer {
private static final long serialVersionUID = 2044639222061941989L;
private Integer barPadding;
private Integer barMargin;
private String barDirection;
private String barWidth;
private Integer shadowOffset;
private Float shadowAlpha;
private Boolean waterfall;
private Integer groups;
private Boolean varyBarColor;
private Boolean highlightMouseOver;
private Boolean highlightMouseDown;
private Collection highlightColors;
/**
* @return the barPadding
*/
public Integer getBarPadding() {
return barPadding;
}
/**
* @param barPadding the barPadding to set
*/
public void setBarPadding(Integer barPadding) {
this.barPadding = barPadding;
}
/**
* @return the barMargin
*/
public Integer getBarMargin() {
return barMargin;
}
/**
* @param barMargin the barMargin to set
*/
public void setBarMargin(Integer barMargin) {
this.barMargin = barMargin;
}
/**
* @return the barDirection
*/
public String getBarDirection() {
return barDirection;
}
/**
* @param barDirection the barDirection to set
*/
public void setBarDirection(String barDirection) {
this.barDirection = barDirection;
}
/**
* @return the barWidth
*/
public String getBarWidth() {
return barWidth;
}
/**
* @param barWidth the barWidth to set
*/
public void setBarWidth(String barWidth) {
this.barWidth = barWidth;
}
/**
* @return the shadowOffset
*/
public Integer getShadowOffset() {
return shadowOffset;
}
/**
* @param shadowOffset the shadowOffset to set
*/
public void setShadowOffset(Integer shadowOffset) {
this.shadowOffset = shadowOffset;
}
/**
* @return the shadowAlpha
*/
public Float getShadowAlpha() {
return shadowAlpha;
}
/**
* @param shadowAlpha the shadowAlpha to set
*/
public void setShadowAlpha(Float shadowAlpha) {
this.shadowAlpha = shadowAlpha;
}
/**
* @return the waterfall
*/
public boolean isWaterfall() {
return waterfall;
}
/**
* @param waterfall the waterfall to set
*/
public void setWaterfall(boolean waterfall) {
this.waterfall = waterfall;
}
/**
* @return the groups
*/
public Integer getGroups() {
return groups;
}
/**
* @param groups the groups to set
*/
public void setGroups(Integer groups) {
this.groups = groups;
}
/**
* @return the varyBarColor
*/
public boolean isVaryBarColor() {
return varyBarColor;
}
/**
* @param varyBarColor the varyBarColor to set
*/
public void setVaryBarColor(boolean varyBarColor) {
this.varyBarColor = varyBarColor;
}
/**
* @return the highlightMouseOver
*/
public boolean isHighlightMouseOver() {
return highlightMouseOver;
}
/**
* @param highlightMouseOver the highlightMouseOver to set
*/
public void setHighlightMouseOver(boolean highlightMouseOver) {
this.highlightMouseOver = highlightMouseOver;
}
/**
* @return the highlightMouseDown
*/
public boolean isHighlightMouseDown() {
return highlightMouseDown;
}
/**
* @param highlightMouseDown the highlightMouseDown to set
*/
public void setHighlightMouseDown(boolean highlightMouseDown) {
this.highlightMouseDown = highlightMouseDown;
}
/**
* @return the highlightColors
*/
public Collection getHighlightColors() {
return highlightColors;
}
/**
* @param highlightColors the highlightColors to set
*/
public void setHighlightColors(Collection highlightColors) {
this.highlightColors = highlightColors;
}
public JqPlotResources resource() {
return JqPlotResources.BarRenderer;
}
}