+/**\r
+ * Copyright (C) 2009 - 2012 SC 4ViewSoft SRL\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ * \r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ * \r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.achartengine.renderer;\r
+\r
+import org.achartengine.chart.PointStyle;\r
+\r
+import android.graphics.Color;\r
+\r
+/**\r
+ * A renderer for the XY type series.\r
+ */\r
+public class XYSeriesRenderer extends SimpleSeriesRenderer {\r
+ /** If the chart points should be filled. */\r
+ private boolean mFillPoints = false;\r
+ /** If the chart should be filled below its line. */\r
+ private boolean mFillBelowLine = false;\r
+ /** The fill below the chart line color. */\r
+ private int mFillColor = Color.argb(125, 0, 0, 200);\r
+ /** The point style. */\r
+ private PointStyle mPointStyle = PointStyle.POINT;\r
+ /** The chart line width. */\r
+ private float mLineWidth = 1;\r
+\r
+ /**\r
+ * Returns if the chart should be filled below the line.\r
+ * \r
+ * @return the fill below line status\r
+ */\r
+ public boolean isFillBelowLine() {\r
+ return mFillBelowLine;\r
+ }\r
+\r
+ /**\r
+ * Sets if the line chart should be filled below its line. Filling below the\r
+ * line transforms a line chart into an area chart.\r
+ * \r
+ * @param fill the fill below line flag value\r
+ */\r
+ public void setFillBelowLine(boolean fill) {\r
+ mFillBelowLine = fill;\r
+ }\r
+\r
+ /**\r
+ * Returns if the chart points should be filled.\r
+ * \r
+ * @return the points fill status\r
+ */\r
+ public boolean isFillPoints() {\r
+ return mFillPoints;\r
+ }\r
+\r
+ /**\r
+ * Sets if the chart points should be filled.\r
+ * \r
+ * @param fill the points fill flag value\r
+ */\r
+ public void setFillPoints(boolean fill) {\r
+ mFillPoints = fill;\r
+ }\r
+\r
+ /**\r
+ * Returns the fill below line color.\r
+ * \r
+ * @return the fill below line color\r
+ */\r
+ public int getFillBelowLineColor() {\r
+ return mFillColor;\r
+ }\r
+\r
+ /**\r
+ * Sets the fill below the line color.\r
+ * \r
+ * @param color the fill below line color\r
+ */\r
+ public void setFillBelowLineColor(int color) {\r
+ mFillColor = color;\r
+ }\r
+\r
+ /**\r
+ * Returns the point style.\r
+ * \r
+ * @return the point style\r
+ */\r
+ public PointStyle getPointStyle() {\r
+ return mPointStyle;\r
+ }\r
+\r
+ /**\r
+ * Sets the point style.\r
+ * \r
+ * @param style the point style\r
+ */\r
+ public void setPointStyle(PointStyle style) {\r
+ mPointStyle = style;\r
+ }\r
+\r
+ /**\r
+ * Returns the chart line width.\r
+ * \r
+ * @return the line width\r
+ */\r
+ public float getLineWidth() {\r
+ return mLineWidth;\r
+ }\r
+\r
+ /**\r
+ * Sets the chart line width.\r
+ * \r
+ * @param lineWidth the line width\r
+ */\r
+ public void setLineWidth(float lineWidth) {\r
+ mLineWidth = lineWidth;\r
+ }\r
+ \r
+}\r