001 /*
002 * This file is part of the Echo Point Project. This project is a
003 * collection of Components that have extended the Echo Web Application
004 * Framework Version 3.
005 *
006 * Version: MPL 1.1
007 *
008 * The contents of this file are subject to the Mozilla Public License Version
009 * 1.1 (the "License"); you may not use this file except in compliance with
010 * the License. You may obtain a copy of the License at
011 * http://www.mozilla.org/MPL/
012 *
013 * Software distributed under the License is distributed on an "AS IS" basis,
014 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
015 * for the specific language governing rights and limitations under the
016 * License.
017 */
018
019 package echopoint.google.chart.model;
020
021 import echopoint.google.chart.internal.Marker;
022
023 /**
024 * A model object used to represent a fill that represents an area between
025 * two sets of lines plotted. See
026 * <a href='http://code.google.com/apis/chart/colors.html#fill_area_marker'>Fill
027 * area</a> specifications.
028 *
029 * @author Rakesh 2008-08-10
030 * @version $Id: FillArea.java 116 2009-02-19 00:23:08Z sptrakesh $
031 */
032 public class FillArea extends Marker
033 {
034 private static final long serialVersionUID = 1l;
035
036 /** The starting index of the line from which to fill. */
037 private int startIndex;
038
039 /** The ending index of the line till which to fill. */
040 private int endIndex;
041
042 /**
043 * Create a new instance using the specified values.
044 *
045 * @param markerType The {@link #markerType} value to use.
046 * @param color The {@link #color} value to use.
047 * @param startIndex The {@link #startIndex} value to use.
048 * @param endIndex The {@link #endIndex} value to use.
049 */
050 public FillArea( final String markerType, final String color,
051 final int startIndex, final int endIndex )
052 {
053 this.markerType = markerType;
054 this.color = color;
055 this.startIndex = startIndex;
056 this.endIndex = endIndex;
057 }
058
059 /**
060 * Accessor for property 'startIndex'.
061 *
062 * @return Value for property 'startIndex'.
063 */
064 public int getStartIndex()
065 {
066 return startIndex;
067 }
068
069 /**
070 * Accessor for property 'endIndex'.
071 *
072 * @return Value for property 'endIndex'.
073 */
074 public int getEndIndex()
075 {
076 return endIndex;
077 }
078 }