00001 /******************************************************************************* 00002 * Copyright (c) 2008-2014 SWTChart project. All rights reserved. 00003 * 00004 * This code is distributed under the terms of the Eclipse Public License v1.0 00005 * which is available at http://www.eclipse.org/legal/epl-v10.html 00006 *******************************************************************************/ 00007 package org.swtchart.internal; 00008 00009 import org.swtchart.Chart; 00010 00014 public class ChartTitle extends Title { 00015 00017 private static final String DEFAULT_TEXT = "Chart Title"; 00018 00025 public ChartTitle(Chart chart) { 00026 super(chart); 00027 setText(getDefaultText()); 00028 } 00029 00030 /* 00031 * @see Title#getDefaultText() 00032 */ 00033 @Override 00034 protected String getDefaultText() { 00035 return DEFAULT_TEXT; 00036 } 00037 }