import java.awt.*;
import java.applet.*;


/**  class Connector
 *    This diagram is a simple connector between 2 diagrams.
 *   Its constructor requires the width of the connector
 */

public class Connector extends Diagram{

	private int width;
	private int height;
	private int pos;


	//  width = parameter value
	//  height = 2
	//  connectorlocation = 1
	public Connector (int w){
		width = w;
		height = 2;
		connectorLocation = 1;
	}

	//  draw a line width long at the connector Locaiton
	public void paint (Graphics g){
		g.drawLine(0, connectorLocation, width,
				connectorLocation);
	}

	//  preferred size is width x height
	public Dimension preferredSize () {
		return new Dimension (width, height);
    }

}
