Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions f...
If you think the Android project Dual-Battery-Widget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/**
* Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
* /*fromwww.java2s.com*/
* 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 org.achartengine.renderer;
import org.achartengine.chart.PointStyle;
import android.graphics.Color;
/**
* A renderer for the XY type series.
*/publicclass XYSeriesRenderer extends SimpleSeriesRenderer {
/** If the chart points should be filled. */privateboolean mFillPoints = false;
/** If the chart should be filled below its line. */privateboolean mFillBelowLine = false;
/** The fill below the chart line color. */privateint mFillColor = Color.argb(125, 0, 0, 200);
/** The point style. */private PointStyle mPointStyle = PointStyle.POINT;
/** The chart line width. */privatefloat mLineWidth = 1;
/**
* Returns if the chart should be filled below the line.
*
* @return the fill below line status
*/publicboolean isFillBelowLine() {
return mFillBelowLine;
}
/**
* Sets if the line chart should be filled below its line. Filling below the
* line transforms a line chart into an area chart.
*
* @param fill the fill below line flag value
*/publicvoid setFillBelowLine(boolean fill) {
mFillBelowLine = fill;
}
/**
* Returns if the chart points should be filled.
*
* @return the points fill status
*/publicboolean isFillPoints() {
return mFillPoints;
}
/**
* Sets if the chart points should be filled.
*
* @param fill the points fill flag value
*/publicvoid setFillPoints(boolean fill) {
mFillPoints = fill;
}
/**
* Returns the fill below line color.
*
* @return the fill below line color
*/publicint getFillBelowLineColor() {
return mFillColor;
}
/**
* Sets the fill below the line color.
*
* @param color the fill below line color
*/publicvoid setFillBelowLineColor(int color) {
mFillColor = color;
}
/**
* Returns the point style.
*
* @return the point style
*/public PointStyle getPointStyle() {
return mPointStyle;
}
/**
* Sets the point style.
*
* @param style the point style
*/publicvoid setPointStyle(PointStyle style) {
mPointStyle = style;
}
/**
* Returns the chart line width.
*
* @return the line width
*/publicfloat getLineWidth() {
return mLineWidth;
}
/**
* Sets the chart line width.
*
* @param lineWidth the line width
*/publicvoid setLineWidth(float lineWidth) {
mLineWidth = lineWidth;
}
}