lib/browser/GraphBrowser/DummyVertex.java
author bulwahn
Tue, 08 Feb 2011 08:58:24 +0100
changeset 41722 9575694d2da5
parent 33686 8e33ca8832b1
child 50473 ca4088bf8365
permissions -rw-r--r--
improving sum type and option type term constructions for correct presentation in Smallcheck

/***************************************************************************
  Title:      GraphBrowser/DummyVertex.java
  Author:     Stefan Berghofer, TU Muenchen

  This class represents a dummy vertex, which is used to simplify the
  layout algorithm.
***************************************************************************/

package GraphBrowser;

import java.awt.*;

class DummyVertex extends Vertex {
	public boolean isDummy() {return true;}

	public Object clone() {
		Vertex ve=new DummyVertex();
		ve.setX(getX());ve.setY(getY());
		return ve;
	}

	public int leftX() { return getX(); }

	public int rightX() { return getX(); }

	public void draw(Graphics g) {}
}