001/* ---------------------------------------------------------------------------- 002 The Kiwi Toolkit - A Java Class Library 003 Copyright (C) 1998-2004 Mark A. Lindner 004 005 This library is free software; you can redistribute it and/or 006 modify it under the terms of the GNU General Public License as 007 published by the Free Software Foundation; either version 2 of the 008 License, or (at your option) any later version. 009 010 This library is distributed in the hope that it will be useful, 011 but WITHOUT ANY WARRANTY; without even the implied warranty of 012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 General Public License for more details. 014 015 You should have received a copy of the GNU General Public License 016 along with this library; if not, write to the Free Software 017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 018 02111-1307, USA. 019 020 The author may be contacted at: mark_a_lindner@yahoo.com 021 ---------------------------------------------------------------------------- 022 $Log: ChartModelEvent.java,v $ 023 Revision 1.4 2004/05/05 22:16:57 markl 024 comment block updates 025 026 Revision 1.3 2003/02/06 07:42:58 markl 027 fixed javadoc typo 028 029 Revision 1.2 2003/01/19 09:34:08 markl 030 Javadoc & comment header updates. 031 032 Revision 1.1 2001/03/12 03:42:29 markl 033 Moved from kiwi.ui.graph package. 034 035 Revision 1.1 2000/10/13 02:04:19 markl 036 Added remaining classes, and integrated components with models. 037 ---------------------------------------------------------------------------- 038*/ 039 040package kiwi.event; 041 042import kiwi.ui.model.*; 043 044/** A class that represents a general <code>ChartModel</code> event. Any 045 * change in the data will require a complete repaint of the chart, so more 046 * specific events would not be useful. 047 * 048 * @author Mark Lindner 049 */ 050 051public class ChartModelEvent 052 { 053 private ChartModel source; 054 055 /** Construct a new <code>ChartModelEvent</code> for the specified source. 056 * 057 * @param source The <code>ChartModel</code> that is the source of this 058 * event. 059 */ 060 061 public ChartModelEvent(ChartModel source) 062 { 063 this.source = source; 064 } 065 066 /** Get the source of the event. 067 * 068 * @return The <code>ChartModel</code> that is the source of this event. 069 */ 070 071 public ChartModel getSource() 072 { 073 return(source); 074 } 075 076 } 077 078/* end of source file */