package data.graph;

import java.util.*;
import data.*;
import data.graph.*;
import data.geom.plain.*;


/** fileName=/projects/javaclass/gen/data/graph/Shape.java
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public abstract class Shape implements  Refreshable, Resizable {
	/**
	 * <!-- begin-user-doc -->
	 * no argument constructor
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Shape() {
		cornerPointSet = new HashSet();
		
		// begin-user-code
		// end-user-code
	}
	
	/**
	 * <!-- begin-user-doc -->
	 * copy constructor
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Shape(Shape o) {
		
		setCornerPointSet(o.getCornerPointSet());
		setAnchorPoint(o.getAnchorPoint());
		// begin-user-code
		// end-user-code
	}

	/**
	 * <!-- begin-user-doc -->
	 * constructor on attributes and navigable associations
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Shape(Set cornerPointSet, Point anchorPoint) {
		
		setCornerPointSet(cornerPointSet);
		setAnchorPoint(anchorPoint);
		// begin-user-code
		// end-user-code
	}
		
	/**
	 * <!-- begin-user-doc -->
	 * set attributes and imported associations
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setData(Shape o) {
		
		setAnchorPoint(o.getAnchorPoint());
		// begin-user-code
		// end-user-code
	}
	
	
	
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public abstract  Point[] place(Point p);
		
	/**
	 * myUpper=-1 otherUpper=1
	 * @unmodifiable
	 */
	protected Set cornerPointSet;
	/** 
	 * @unmodifiable
	 */
	public Set getCornerPointSet() {
		return cornerPointSet;
	}
	/** 
	 * @unmodifiable
	 */
	public void setCornerPointSet(Set cornerPointSet) {
		this.cornerPointSet = cornerPointSet;
	}
	/** 
	 * @unmodifiable
	 */
	public void addCornerPoint(Point cornerPoint) {
		cornerPointSet.add(cornerPoint);
	}
			
	/**
	 * myUpper=1 otherUpper=1
	 * @unmodifiable
	 */
	protected Point anchorPoint;
	/** 
	 * @unmodifiable
	 */
	public Point getAnchorPoint() {
		return anchorPoint;
	}
	/** 
	 * @unmodifiable
	 */
	public void setAnchorPoint(Point anchorPoint) {
		this.anchorPoint = anchorPoint;
	}
			
	
	
	/** 
	 * <!-- begin-user-doc -->
	 * comma separated values of all fields
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String toString() {
		StringBuffer sb = new StringBuffer(super.toString());
		sb.append("[");
		
		sb.append("]");
		// begin-user-code
		// end-user-code
		return sb.toString();
	}

	/** 
	 * <!-- begin-user-doc -->
	 * space separated values of selected fields for display
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String toDisplayString() {
		StringBuffer sb = new StringBuffer();
		// begin-user-code
		
		// end-user-code
		return sb.toString();
	}
	
	/** 
	 * @unmodifiable
	 */
	public boolean equals(Object other) {
		if (this == other) return true;
		if (!(other instanceof Shape)) return false;
		if(!super.equals(other)) return false;
		final Shape o = (Shape) other;

		

		return true;
	}

	/** 
	 * @unmodifiable
	 */
	public int hashCode() {
		int res = 0;
		
		return res;
	}
}
	
Syntax Highlighting created using the com.Ostermiller.Syntax package.
Wednesday, September 19 2007 at 17:46