Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 759 → Rev 760

/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: 1.1 $
* @version $Revision: 1.2 $
*
* Last modification: $Date: 2003/07/23 10:19:10 $
* $Id: Region.java,v 1.1 2003/07/23 10:19:10 ioklasse Exp $
* Last modification: $Date: 2003/07/23 11:58:09 $
* $Id: Region.java,v 1.2 2003/07/23 11:58:09 ioklasse Exp $
*/
 
package src.plugins.regionEditorPlugin;
22,18 → 22,22
*/
public class Region
{
/* stores name of region*/
/* Stores name of region.*/
private String name;
 
/* stores coordinates of region */
/* Stores coordinates of region. */
private Rectangle rect;
 
/* creates empty region with coordinates and name*/
/* Creates empty region with coordinates and name. */
public Region()
{
}
 
/* creates new region with coordinates and name*/
/* Construktor creates new region with coordinates and name.
*
* @param name: Region name.
* @param rect: Region coordinates.
*/
public Region(String name, Rectangle rect)
{
this.name = name;
40,25 → 44,37
this.rect = rect;
}
 
/* returns the name of the region */
/* Returns the name of the region.
*
* @return the name of the region.
*/
public String getName()
{
return name;
}
 
/* sets the name of the region */
/* Sets the name of the region.
*
* @param name: The name of the region.
*/
public void setName(String name)
{
this.name = name;
}
 
/* returns the coordinates of the region */
/* Returns the coordinates of the region.
*
* @return the coordinates of the region.
*/
public Rectangle getRect()
{
return rect;
}
 
/* sets the coordinates of the region */
/* Sets the coordinates of the region.
*
* @param rect: The coordinates of the region.
*/
public void setRect(Rectangle rect)
{
this.rect = rect;