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 that represents a range marker for the graph.  See
025     * <a href='http://code.google.com/apis/chart/#hor_line_marker'>Range
026     * marker</a> specifications.
027     *
028     * @author Rakesh Vidyadharan 2008-08-10
029     * @version $Id: RangeMarker.java 63 2008-08-29 07:46:39Z sptrakesh $
030     */
031    public class RangeMarker extends Marker
032    {
033      private static final long serialVersionUID = 1l;
034    
035      /** The start point for the marked region. Betweem 0.0 and 1.0. */
036      private double startPoint;
037    
038      /** The end point for the marked region. Betweem 0.0 and 1.0. */
039      private double endPoint;
040    
041      /**
042       * Create a new instance using the specified values.
043       *
044       * @param markerType The {@link #markerType} to use.
045       * @param color The {@link #color} to use.
046       * @param startPoint The {@link #startPoint} to use.
047       * @param endPoint The {@link #endPoint} to use.
048       */
049      public RangeMarker( final String markerType, final String color,
050          final double startPoint, final double endPoint )
051      {
052        this.markerType = markerType;
053        this.color = color;
054        this.startPoint = startPoint;
055        this.endPoint = endPoint;
056      }
057    
058      /**
059       * Accessor for property 'startPoint'.
060       *
061       * @return Value for property 'startPoint'.
062       */
063      public double getStartPoint()
064      {
065        return startPoint;
066      }
067    
068      /**
069       * Accessor for property 'endPoint'.
070       *
071       * @return Value for property 'endPoint'.
072       */
073      public double getEndPoint()
074      {
075        return endPoint;
076      }
077    }