lib/browser/GraphBrowser/Vertex.java
author berghofe
Tue, 16 Oct 2001 16:47:54 +0200
changeset 11798 fbab70de9b0d
parent 6541 d3ac35b2bfbf
child 11872 4f24fd4dbcf5
permissions -rw-r--r--
Added support for batch mode layout (without X11 connection).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3599
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     1
/***************************************************************************
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     2
  Title:      GraphBrowser/Vertex.java
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     3
  ID:         $Id$
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     4
  Author:     Stefan Berghofer, TU Muenchen
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     5
  Copyright   1997  TU Muenchen
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     6
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     7
  This class contains attributes and methods common to all kinds of
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     8
  vertices (e.g. coordinates, successors, predecessors).
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
     9
***************************************************************************/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    10
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    11
package GraphBrowser;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    12
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    13
import java.util.*;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    14
import java.awt.*;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    15
import java.io.*;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    16
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    17
abstract class Vertex {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    18
	protected static final Font font=new Font("Helvetica",Font.PLAIN,12);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    19
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    20
	Vector children=new Vector(10,10);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    21
	Vector parents=new Vector(10,10);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    22
	int degree=0;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    23
	int number=-1;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    24
	double weight=0;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    25
	int x,y;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    26
	Graph gra;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    27
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    28
	public abstract Object clone();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    29
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    30
	public void setGraph(Graph g) { gra=g; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    31
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    32
	public int countChildren() { return children.size(); }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    33
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    34
	/** getInflate returns a vector of vertices which get **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    35
	/** inflated again if the user clicks on this vertex  **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    36
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    37
	public void setInflate(Vector v) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    38
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    39
	public Vector getInflate() { return null; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    40
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    41
	/** getUp returns a vector of vertices which get inflated   **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    42
	/** again, if the user clicks on this vertex's upward arrow **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    43
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    44
	public Vector getUp() { return null; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    45
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    46
	public void setUp(Vector v) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    47
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    48
	/** getUp returns a vector of vertices which get inflated     **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    49
	/** again, if the user clicks on this vertex's downward arrow **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    50
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    51
	public Vector getDown() { return null; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    52
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    53
	public void setDown(Vector v) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    54
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    55
	/** internal number, for decoding / encoding etc. **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    56
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    57
	public int getNumber() { return number; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    58
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    59
	public void setNumber(int n) { number=n; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    60
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    61
	public String getLabel() {return "";}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    62
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    63
	public void setLabel(String s) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    64
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    65
	/** unique identifier **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    66
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    67
	public String getID() {return "";}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    68
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    69
	public void setID(String s) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    70
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    71
	public Dimension getLabelSize(Graphics g) {
11798
fbab70de9b0d Added support for batch mode layout (without X11 connection).
berghofe
parents: 6541
diff changeset
    72
		FontMetrics fm = g == null ? 
fbab70de9b0d Added support for batch mode layout (without X11 connection).
berghofe
parents: 6541
diff changeset
    73
		    new DefaultFontMetrics(font) : g.getFontMetrics(font);
3599
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    74
		
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    75
		return new Dimension(
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    76
		        Math.max(fm.stringWidth("[. . . .]"),fm.stringWidth(getLabel())),
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    77
			fm.getAscent()+fm.getDescent());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    78
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    79
		
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    80
	public String getPath() { return "";}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    81
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    82
	public void setPath(String p) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    83
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    84
	public String getDir() { return ""; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    85
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    86
	public void setDir(String d) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    87
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    88
	public void setWeight(double w) {weight=w;}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    89
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    90
	public double getWeight() {return weight;}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    91
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    92
	public void setDegree(int d) { degree=d; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    93
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    94
	public int getDegree() { return degree; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    95
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    96
	public boolean isDummy() { return false; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    97
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    98
	public Enumeration getChildren() {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    99
		return ((Vector)(children.clone())).elements();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   100
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   101
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   102
	public void addChild(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   103
		children.addElement(v);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   104
		v.parents.addElement(this);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   105
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   106
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   107
	public void removeChild(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   108
		children.removeElement(v);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   109
		v.parents.removeElement(this);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   110
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   111
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   112
	public boolean isChild(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   113
		return children.indexOf(v)>=0;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   114
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   115
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   116
	public boolean isParent(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   117
		return parents.indexOf(v)>=0;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   118
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   119
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   120
	public Enumeration getParents() {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   121
		return ((Vector)(parents.clone())).elements();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   122
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   123
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   124
	public void addParent(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   125
		parents.addElement(v);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   126
		v.children.addElement(this);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   127
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   128
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   129
	public void removeParent(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   130
		parents.removeElement(v);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   131
		v.children.removeElement(this);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   132
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   133
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   134
	/********************************************************************/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   135
	/*                   get all predecessor vertices                   */
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   136
	/********************************************************************/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   137
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   138
	public Vector getPreds() {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   139
		Vector v1=new Vector(10,10);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   140
		Vertex vx1,vx2;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   141
		Enumeration e1,e2;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   142
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   143
		e1=getParents();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   144
		while (e1.hasMoreElements()) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   145
			vx1=(Vertex)(e1.nextElement());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   146
			if (v1.indexOf(vx1)<0) v1.addElement(vx1);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   147
			e2=vx1.getPreds().elements();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   148
			while (e2.hasMoreElements()) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   149
				vx2=(Vertex)(e2.nextElement());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   150
				if (v1.indexOf(vx2)<0) v1.addElement(vx2);			
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   151
			}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   152
		}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   153
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   154
		return v1;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   155
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   156
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   157
	/********************************************************************/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   158
	/*                     get all successor vertices                   */
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   159
	/********************************************************************/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   160
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   161
	public Vector getSuccs() {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   162
		Vector v1=new Vector(10,10);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   163
		Vertex vx1,vx2;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   164
		Enumeration e1,e2;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   165
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   166
		e1=getChildren();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   167
		while (e1.hasMoreElements()) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   168
			vx1=(Vertex)(e1.nextElement());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   169
			if (v1.indexOf(vx1)<0) v1.addElement(vx1);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   170
			e2=vx1.getSuccs().elements();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   171
			while (e2.hasMoreElements()) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   172
				vx2=(Vertex)(e2.nextElement());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   173
				if (v1.indexOf(vx2)<0) v1.addElement(vx2);			
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   174
			}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   175
		}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   176
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   177
		return v1;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   178
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   179
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   180
	public void setX(int x) {this.x=x;}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   181
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   182
	public void setY(int y) {this.y=y;}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   183
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   184
	public int getX() {return x;}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   185
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   186
	public int getY() {return y;}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   187
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   188
	public abstract int leftX();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   189
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   190
	public abstract int rightX();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   191
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   192
	public abstract void draw(Graphics g);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   193
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   194
	public void drawButtons(Graphics g) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   195
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   196
	public void drawBox(Graphics g,Color boxColor) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   197
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   198
	public void removeButtons(Graphics g) {}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   199
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   200
	public boolean contains(int x,int y) { return false; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   201
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   202
	public boolean leftButton(int x,int y) { return false; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   203
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   204
	public boolean rightButton(int x,int y) { return false; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   205
6541
d3ac35b2bfbf Updated to JDK 1.1.x
berghofe
parents: 3599
diff changeset
   206
	public void PS(PrintWriter p) {}
3599
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   207
}