Project

General

Profile

Download (977 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/*******************************************************************************
2
 * Copyright (c) 2003, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.draw2d.graph;
12

    
13
/**
14
 * Performs some action on a Graph.
15
 * 
16
 * @author Randy Hudson
17
 * @since 2.1.2
18
 */
19
abstract class GraphVisitor {
20

    
21
	/**
22
	 * Act on the given directed graph.
23
	 * 
24
	 * @param g
25
	 *            the graph
26
	 */
27
	void visit(DirectedGraph g) {
28
	}
29

    
30
	/**
31
	 * Called in reverse order of visit.
32
	 * 
33
	 * @since 3.1
34
	 * @param g
35
	 *            the graph to act upon
36
	 */
37
	void revisit(DirectedGraph g) {
38
	}
39

    
40
}
(17-17/49)