Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 733 → Rev 734

/sun/xmleditor/trunk/src/plugins/regionEditorPlugin/Region.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* @version $Revision$
* @version $Revision: 1.1 $
*
* Last modification: $Date$
* $Id$
* Last modification: $Date: 2003/07/23 10:19:10 $
* $Id: Region.java,v 1.1 2003/07/23 10:19:10 ioklasse Exp $
*/
 
package src.plugins.regionEditorPlugin;
15,16 → 15,25
import java.awt.Rectangle;
//import org.w3c.dom.Node;
 
/**
* Stores info of one region.
*
* @author Yulia Klassen, Viktoriya Zudova
*/
public class Region
{
/* stores name of region*/
private String name;
 
/* stores coordinates of region */
private Rectangle rect;
 
/* creates empty region with coordinates and name*/
public Region()
{
}
 
/* creates new region with coordinates and name*/
public Region(String name, Rectangle rect)
{
this.name = name;
31,21 → 40,25
this.rect = rect;
}
 
/* returns the name of the region */
public String getName()
{
return name;
}
 
/* sets the name of the region */
public void setName(String name)
{
this.name = name;
}
 
/* returns the coordinates of the region */
public Rectangle getRect()
{
return rect;
}
 
/* sets the coordinates of the region */
public void setRect(Rectangle rect)
{
this.rect = rect;