lib/browser/GraphBrowser/DummyVertex.java
author haftmann
Sun, 29 May 2016 14:43:18 +0200
changeset 63175 d191892b1c23
parent 50473 ca4088bf8365
permissions -rw-r--r--
explicit check that abstract constructors cannot be part of official interface

/***************************************************************************
  Title:      GraphBrowser/DummyVertex.java
  Author:     Stefan Berghofer, TU Muenchen
  Options:    :tabSize=4:

  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) {}
}