01: /*
02: * $Id: JGraphpadCellViewFactory.java,v 1.1.1.1 2005/08/04 11:21:58 gaudenz Exp $
03: * Copyright (c) 2001-2005, Gaudenz Alder
04: *
05: * All rights reserved.
06: *
07: * See LICENSE file for license details. If you are unable to locate
08: * this file please contact info (at) jgraph (dot) com.
09: */
10: package com.jgraph.pad.graph;
11:
12: import org.jgraph.graph.DefaultCellViewFactory;
13: import org.jgraph.graph.EdgeView;
14: import org.jgraph.graph.PortView;
15: import org.jgraph.graph.VertexView;
16:
17: /**
18: * Cell view factory for all graph layout caches (libraries and diagrams).
19: *
20: * @see JGraphpadGraphLayoutCache
21: */
22: public class JGraphpadCellViewFactory extends DefaultCellViewFactory {
23:
24: /*
25: * (non-Javadoc)
26: */
27: protected EdgeView createEdgeView(Object cell) {
28: return new JGraphpadEdgeView(cell);
29: }
30:
31: /*
32: * (non-Javadoc)
33: */
34: protected PortView createPortView(Object cell) {
35: return new JGraphpadPortView(cell);
36: }
37:
38: /*
39: * (non-Javadoc)
40: */
41: protected VertexView createVertexView(Object cell) {
42: return new JGraphpadVertexView(cell);
43: }
44:
45: }
|