3599
|
1 |
/***************************************************************************
|
|
2 |
Title: GraphBrowser/DummyVertex.java
|
|
3 |
ID: $Id$
|
|
4 |
Author: Stefan Berghofer, TU Muenchen
|
|
5 |
Copyright 1997 TU Muenchen
|
|
6 |
|
|
7 |
This class represents a dummy vertex, which is used to simplify the
|
|
8 |
layout algorithm.
|
|
9 |
***************************************************************************/
|
|
10 |
|
|
11 |
package GraphBrowser;
|
|
12 |
|
|
13 |
import java.util.*;
|
|
14 |
import java.awt.*;
|
|
15 |
|
|
16 |
class DummyVertex extends Vertex {
|
|
17 |
public boolean isDummy() {return true;}
|
|
18 |
|
|
19 |
public Object clone() {
|
|
20 |
Vertex ve=new DummyVertex();
|
|
21 |
ve.setX(getX());ve.setY(getY());
|
|
22 |
return ve;
|
|
23 |
}
|
|
24 |
|
|
25 |
public int leftX() { return getX(); }
|
|
26 |
|
|
27 |
public int rightX() { return getX(); }
|
|
28 |
|
|
29 |
public void draw(Graphics g) {}
|
|
30 |
}
|
|
31 |
|