KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > graph > ActivityView


1 /* ActivityView.java
2  *
3  * Authors:
4  * Stefanovic Nenad chupo@iis.ns.ac.yu
5  * Bojanic Sasa sasaboy@neobee.net
6  * Puskas Vladimir vpuskas@eunet.yu
7  * Pilipovic Goran zboniek@uns.ac.yu
8  *
9  */

10
11 package org.enhydra.jawe.graph;
12
13 import org.jgraph.JGraph;
14 import org.jgraph.graph.*;
15
16 import java.awt.*;
17 import java.awt.geom.Rectangle2D JavaDoc;
18
19 /**
20 * Represents a view for a model's Activity object.
21 */

22 public class ActivityView extends VertexView {
23
24    /** Renderer for the class. */
25    public static ActivityRenderer renderer = new ActivityRenderer();
26
27    /**
28    * Constructs a activity view for the specified model object.
29    *
30    * @param cell reference to the model object
31    */

32    public ActivityView(Object JavaDoc cell, JGraph graph, CellMapper cm) {
33       super(cell, graph, cm);
34    }
35
36    /**
37    * Returns a renderer for the class.
38    */

39    public CellViewRenderer getRenderer() {
40       return renderer;
41    }
42
43    /**
44    * Returns the bounding rectangle for this view.
45    */

46    public Rectangle2D JavaDoc getBounds() {//HM, JGraph3.4.1
47
return bounds;
48    }
49
50 }
51
52 /* End of ActivityView.java */
53
Popular Tags