lib/browser/GraphBrowser/Vertex.java
author oheimb
Wed, 03 Apr 2002 10:21:13 +0200
changeset 13076 70704dd48bd5
parent 11872 4f24fd4dbcf5
child 13968 689868b99bde
permissions -rw-r--r--
bugfix concerning claset(), added limited support for ALLGOALS + fast_tac etc.
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
11872
4f24fd4dbcf5 Moved font settings from Vertex to GraphView.
berghofe
parents: 11798
diff changeset
     5
  License:    GPL (GNU GENERAL PUBLIC LICENSE)
3599
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
	Vector children=new Vector(10,10);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    19
	Vector parents=new Vector(10,10);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    20
	int degree=0;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    21
	int number=-1;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    22
	double weight=0;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    23
	int x,y;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    24
	Graph gra;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    25
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    26
	public abstract Object clone();
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 void setGraph(Graph g) { gra=g; }
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 int countChildren() { return children.size(); }
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
	/** getInflate returns a vector of vertices which get **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    33
	/** inflated again if the user clicks on this vertex  **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    34
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    35
	public void setInflate(Vector v) {}
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 Vector getInflate() { return null; }
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
	/** getUp returns a vector of vertices which get inflated   **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    40
	/** again, if the user clicks on this vertex's upward arrow **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    41
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    42
	public Vector getUp() { return null; }
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 void setUp(Vector v) {}
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
	/** getUp returns a vector of vertices which get inflated     **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    47
	/** again, if the user clicks on this vertex's downward arrow **/
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    48
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    49
	public Vector getDown() { return null; }
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 void setDown(Vector v) {}
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
	/** internal number, for decoding / encoding etc. **/
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
	public int getNumber() { return number; }
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 void setNumber(int n) { number=n; }
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 String getLabel() {return "";}
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 void setLabel(String s) {}
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
	/** unique identifier **/
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
	public String getID() {return "";}
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 void setID(String s) {}
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 Dimension getLabelSize(Graphics g) {
11798
fbab70de9b0d Added support for batch mode layout (without X11 connection).
berghofe
parents: 6541
diff changeset
    70
		FontMetrics fm = g == null ? 
11872
4f24fd4dbcf5 Moved font settings from Vertex to GraphView.
berghofe
parents: 11798
diff changeset
    71
		    new DefaultFontMetrics(12) : g.getFontMetrics(g.getFont());
3599
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    72
		
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    73
		return new Dimension(
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    74
		        Math.max(fm.stringWidth("[. . . .]"),fm.stringWidth(getLabel())),
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    75
			fm.getAscent()+fm.getDescent());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    76
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    77
		
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    78
	public String getPath() { return "";}
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 void setPath(String p) {}
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 String getDir() { return ""; }
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 void setDir(String d) {}
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 setWeight(double w) {weight=w;}
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 double getWeight() {return weight;}
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 void setDegree(int d) { degree=d; }
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 int getDegree() { return degree; }
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 boolean isDummy() { return false; }
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 Enumeration getChildren() {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    97
		return ((Vector)(children.clone())).elements();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    98
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
    99
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   100
	public void addChild(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   101
		children.addElement(v);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   102
		v.parents.addElement(this);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   103
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   104
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   105
	public void removeChild(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   106
		children.removeElement(v);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   107
		v.parents.removeElement(this);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   108
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   109
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   110
	public boolean isChild(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   111
		return children.indexOf(v)>=0;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   112
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   113
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   114
	public boolean isParent(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   115
		return parents.indexOf(v)>=0;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   116
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   117
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   118
	public Enumeration getParents() {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   119
		return ((Vector)(parents.clone())).elements();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   120
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   121
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   122
	public void addParent(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   123
		parents.addElement(v);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   124
		v.children.addElement(this);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   125
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   126
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   127
	public void removeParent(Vertex v) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   128
		parents.removeElement(v);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   129
		v.children.removeElement(this);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   130
	}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   131
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
	/*                   get all predecessor vertices                   */
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
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   136
	public Vector getPreds() {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   137
		Vector v1=new Vector(10,10);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   138
		Vertex vx1,vx2;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   139
		Enumeration e1,e2;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   140
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   141
		e1=getParents();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   142
		while (e1.hasMoreElements()) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   143
			vx1=(Vertex)(e1.nextElement());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   144
			if (v1.indexOf(vx1)<0) v1.addElement(vx1);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   145
			e2=vx1.getPreds().elements();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   146
			while (e2.hasMoreElements()) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   147
				vx2=(Vertex)(e2.nextElement());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   148
				if (v1.indexOf(vx2)<0) v1.addElement(vx2);			
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   149
			}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   150
		}
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
		return v1;
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
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
	/*                     get all successor vertices                   */
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
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   159
	public Vector getSuccs() {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   160
		Vector v1=new Vector(10,10);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   161
		Vertex vx1,vx2;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   162
		Enumeration e1,e2;
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   163
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   164
		e1=getChildren();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   165
		while (e1.hasMoreElements()) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   166
			vx1=(Vertex)(e1.nextElement());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   167
			if (v1.indexOf(vx1)<0) v1.addElement(vx1);
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   168
			e2=vx1.getSuccs().elements();
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   169
			while (e2.hasMoreElements()) {
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   170
				vx2=(Vertex)(e2.nextElement());
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   171
				if (v1.indexOf(vx2)<0) v1.addElement(vx2);			
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   172
			}
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   173
		}
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
		return v1;
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
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   178
	public void setX(int x) {this.x=x;}
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 setY(int y) {this.y=y;}
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 int getX() {return x;}
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 getY() {return y;}
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 abstract int leftX();
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 rightX();
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 void draw(Graphics g);
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 void drawButtons(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 drawBox(Graphics g,Color boxColor) {}
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 removeButtons(Graphics g) {}
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 boolean contains(int x,int y) { return false; }
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 leftButton(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 rightButton(int x,int y) { return false; }
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   203
6541
d3ac35b2bfbf Updated to JDK 1.1.x
berghofe
parents: 3599
diff changeset
   204
	public void PS(PrintWriter p) {}
3599
89cbba12863d Source files for Isabelle theory graph browser.
berghofe
parents:
diff changeset
   205
}