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.internal;
020
021 /**
022 * An abstract base class for charts (pie chart, venn diagram) that support
023 * only a sub-set of the options supported by
024 * <a href='http://code.google.com/apis/chart/'>Google Chart API</a>.
025 *
026 * @author Rakesh Vidyadharan 2008-08-21
027 * @version $Id: SimpleChart.java 66 2008-09-09 08:13:37Z sptrakesh $
028 */
029 public class SimpleChart<N extends Number> extends AbstractChart<N>
030 {
031 private static final long serialVersionUID = 1l;
032
033 /**
034 * The legend position for the chart. Specify the values as defined by
035 * the Google Chart API documentation. This property is best styled.
036 */
037 public static final String PROPERTY_LEGEND_POSITION = "legendPosition";
038
039 /**
040 * Get the value of the {@link #PROPERTY_LEGEND_POSITION} property.
041 *
042 * @return The value of the {@link #PROPERTY_LEGEND_POSITION} property.
043 */
044 public String getLegendPosition()
045 {
046 return (String) get( PROPERTY_LEGEND_POSITION );
047 }
048
049 /**
050 * Set the value of the {@link #PROPERTY_LEGEND_POSITION} property.
051 *
052 * @param legendPosition The value to set for the property.
053 */
054 public void setLegendPosition( final String legendPosition )
055 {
056 set( PROPERTY_LEGEND_POSITION, legendPosition );
057 }
058 }