KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > fenyo > gnetwatch > GUI > MapComponent


1
2 /*
3  * GNetWatch
4  * Copyright 2006, 2007 Alexandre Fenyo
5  * gnetwatch@fenyo.net
6  *
7  * This file is part of GNetWatch.
8  *
9  * GNetWatch is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * GNetWatch is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with GNetWatch; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22  */

23
24 package net.fenyo.gnetwatch.GUI;
25
26 import java.io.*;
27 import java.util.Date JavaDoc;
28 import java.awt.*;
29 import java.awt.event.WindowEvent JavaDoc;
30 import java.awt.font.*;
31 import java.awt.geom.*;
32 import java.awt.image.*;
33 import javax.swing.*;
34 import javax.imageio.*;
35
36 import net.fenyo.gnetwatch.data.EventFlood;
37 import net.fenyo.gnetwatch.data.EventReachable;
38 import net.fenyo.gnetwatch.targets.Target;
39
40 import org.apache.commons.logging.Log;
41 import org.apache.commons.logging.LogFactory;
42
43 /**
44  * This class is intended to display maps.
45  * @author Alexandre Fenyo
46  * @version $Id: MapComponent.java,v 1.7 2007/03/03 00:38:19 fenyo Exp $
47  */

48
49 public class MapComponent extends BasicComponent {
50   private static Log log = LogFactory.getLog(MapComponent.class);
51
52   /**
53    * Constructor.
54    * @param target target this graphic component works on.
55    */

56   public MapComponent(final Target target) {
57     super(target);
58   }
59
60   /**
61    * Called when the window is closing.
62    * @param e event.
63    * @return void.
64    */

65   public void windowClosing(final WindowEvent JavaDoc e) {}
66
67   /**
68    * Fetches events that can be displayed.
69    * @param none.
70    * @return void.
71    */

72   protected void updateValues() {}
73 }
74
Popular Tags