/**
Khalid
*/
package org.sikuli.slides.screenshots;

public class ContextRegion{
	
	private String name;
	private String fileName;
	private int cx;
	private int cy;
	private int offX;
	private int offY;
	private int width;
	private int height;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public int getCx() {
		return cx;
	}
	public void setCx(int cx) {
		this.cx = cx;
	}
	public int getOffX() {
		return offX;
	}
	public void setOffX(int offX) {
		this.offX = offX;
	}
	public int getCy() {
		return cy;
	}
	public void setCy(int cy) {
		this.cy = cy;
	}
	public int getOffY() {
		return offY;
	}
	public void setOffY(int offY) {
		this.offY = offY;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	
}
@@ -108,31 +108,31 @@
 private 
-String fileName
+int slideNumber
 ;%0A%09priva
@@ -138,17 +138,16 @@
 ate int 
-c
 x;%0A%09priv
@@ -154,17 +154,16 @@
 ate int 
-c
 y;%0A%09priv
@@ -174,155 +174,126 @@
 int 
-offX;%0A%09private int offY;%0A%09private int width;%0A%09private int height;%0A%09%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%09public void setName(String name) 
+width;%0A%09private int height;%0A%09%0A%09public ContextRegion(String name, int slideNumber, int x, int y, int width, int height)
 %7B%0A%09%09
@@ -305,143 +305,111 @@
 name
- = 
+=
 name;%0A%09
-%7D%0A%09public String getFileName() %7B%0A%09%09return fileName;%0A%09%7D%0A%09public void setFileName(String fileName) %7B%0A%09%09this.fileName = fileName
+%09this.slideNumber=slideNumber;%0A%09%09this.x=x;%0A%09%09this.y=y;%0A%09%09this.width=width;%0A%09%09this.height=height
 ;%0A%09%7D
@@ -421,17 +421,22 @@
 lic 
+Str
 in
-t
+g
  get
-Cx
+Name
 () %7B
@@ -445,18 +445,20 @@
 %09return 
-cx
+name
 ;%0A%09%7D%0A%09pu
@@ -474,35 +474,46 @@
  set
-Cx(int cx) %7B%0A%09%09this.cx = cx
+Name(String name) %7B%0A%09%09this.name = name
 ;%0A%09%7D
@@ -528,20 +528,27 @@
  int get
-OffX
+slideNumber
 () %7B%0A%09%09r
@@ -553,20 +553,27 @@
 %09return 
-offX
+slideNumber
 ;%0A%09%7D%0A%09pu
@@ -589,43 +589,68 @@
  set
-OffX(int offX) %7B%0A%09%09this.offX = offX
+FileName(int slideNumber) %7B%0A%09%09this.slideNumber = slideNumber
 ;%0A%09%7D
@@ -665,18 +665,17 @@
  int get
-Cy
+X
 () %7B%0A%09%09r
@@ -680,18 +680,17 @@
 %09return 
-cy
+x
 ;%0A%09%7D%0A%09pu
@@ -706,17 +706,15 @@
  set
-Cy
+X
 (int 
-cy
+x
 ) %7B%0A
@@ -724,15 +724,13 @@
 his.
-cy = cy
+x = x
 ;%0A%09%7D
@@ -745,19 +745,16 @@
  int get
-Off
 Y() %7B%0A%09%09
@@ -760,20 +760,17 @@
 %09return 
-offY
+y
 ;%0A%09%7D%0A%09pu
@@ -786,21 +786,15 @@
  set
-Off
 Y(int 
-offY
+y
 ) %7B%0A
@@ -804,19 +804,13 @@
 his.
-offY = offY
+y = y
 ;%0A%09%7D
@@ -1025,10 +1025,162 @@
 ht;%0A%09%7D%0A%09
+public String toString()%7B%0A%09%09return %22Context Region: %22+%22name= %22+name+%22slide number= %22+slideNumber+%22%5Cnx= %22+x+%22y= %22+y+%22width= %22+width+%22height= %22+height;%0A%09%7D
 %0A%7D

refactor and remove unused parts