package BlitzEdit.core;

public abstract class Element 
{
	public int getX()
	{
		return _posX;
	}
	
	public int getY()
	{
		return _posY;
	}
	
	public int getSizeX()
	{
		return _sizeX;
	}
	
	public int getSizeY()
	{
		return _sizeY;
	}
	
	public void setPosition(int x, int y)
	{
		_posX = x;
		_posY = y;
	}
	
	abstract void move(int x, int y);
	
	public Element(int x, int y)
	{
		_posX = x;
		_posY = y;
		_sizeX = 10;
		_sizeY = 10;
	}
	
	public Element(int x, int y, int sx, int sy)
	{
		_posX = x;
		_posY = y;
		_sizeX = sx;
		_sizeY = sy;
	}
	
	public Element()
	{
		_posX = 0;
		_posY = 0;
		_sizeX = 10;
		_sizeY = 10;
	}
	
	protected int _posX;
	protected int _posY;
	protected int _sizeX;
	protected int _sizeY;
	
}
@@ -18,16 +18,44 @@
 .core;%0A%0A
+import java.awt.Rectangle;%0A%0A
 public a
@@ -269,20 +269,23 @@
 %09public 
-void
+Element
  setPosi
@@ -333,21 +333,65 @@
 Y = y;%0A%09
-%7D%0A%09%0A%09
+%09return this;%0A%09%7D%0A%09%0A%09//Bewegt das Element%0A%09public 
 abstract
@@ -395,12 +395,15 @@
 act 
-void
+Element
  mov
@@ -421,16 +421,157 @@
 t y);%0A%09%0A
+%09public boolean contains(int x, int y)%0A%09%7B%0A%09%09Rectangle rect = new Rectangle(_posX, _posY, _sizeX, _sizeY);%0A%09%09return rect.contains(x, y);%0A%09%7D%0A%09%0A
 %09public 
@@ -941,8 +941,9 @@
 zeY;%0A%09%0A%7D
+%0A

Update Element.java