Coverage details for edu.uci.ics.jung.visualization.AbstractRenderer

LineHitsSource
1 /*
2 * Copyright (c) 2003, the JUNG Project and the Regents of the University
3 * of California
4 * All rights reserved.
5 *
6 * This software is open-source under the BSD license; see either
7 * "license.txt" or
8 * http://jung.sourceforge.net/license.txt for a description.
9 */
10 /*
11  * Created on Jul 27, 2003
12  *
13  * To change the template for this generated file go to
14  * Window>Preferences>Java>Code Generation>Code and Comments
15  */
16 package edu.uci.ics.jung.visualization;
17  
18 import java.awt.Graphics;
19  
20 import edu.uci.ics.jung.graph.ArchetypeEdge;
21 import edu.uci.ics.jung.graph.ArchetypeVertex;
22 import edu.uci.ics.jung.graph.Edge;
23 import edu.uci.ics.jung.graph.Vertex;
24  
25 /**
26  * This abstract class structures much of the annoying
27  * bits of Renderers, allowing the user to simply override
28  * the important methods and move on.
29  *
30  * @author danyelf
31  */
320public abstract class AbstractRenderer implements Renderer {
33  
34     private PickedInfo pickedInfo;
35  
36     abstract public void paintEdge(
37         Graphics g,
38         Edge e,
39         int x1,
40         int y1,
41         int x2,
42         int y2);
43  
44     abstract public void paintVertex(Graphics g, Vertex v, int x, int y);
45  
46     public void setPickedKey(PickedInfo pk) {
470        this.pickedInfo = pk;
480    }
49  
50     public PickedInfo getPickedKey()
51     {
520        return pickedInfo;
53     }
54     
55     protected boolean isPicked(ArchetypeVertex v) {
560        return pickedInfo.isPicked(v);
57     }
58     
59     protected boolean isPicked(ArchetypeEdge e) {
600        return pickedInfo.isPicked(e);
61     }
62  
63 // public int wiggleRoomX() {
64 // return 0;
65 // }
66 //
67 // public int wiggleRoomY() {
68 // return 0;
69 // }
70  
71 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.