apps.docviewer
Class SelectedArea

java.lang.Object
  extended by apps.docviewer.SelectedArea

public class SelectedArea
extends java.lang.Object

The Class SelectedArea.


Constructor Summary
SelectedArea()
          Instantiates a new selected area.
SelectedArea(long id, int x1, int y1, int x2, int y2)
          Instantiates a new selected area.
 
Method Summary
 float getHeight()
          Gets the height.
 long getId()
          Gets the id.
 float getWidth()
          Gets the width.
 float getX1()
          Gets the x1.
 float getX2()
          Gets the x2.
 float getY1()
          Gets the y1.
 float getY2()
          Gets the y2.
 void setId(long id)
          Sets the id.
 void setX1(int x1)
          Sets the x1.
 void setX2(int x2)
          Sets the x2.
 void setY1(int y1)
          Sets the y1.
 void setY2(int y2)
          Sets the y2.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectedArea

public SelectedArea()
Instantiates a new selected area.


SelectedArea

public SelectedArea(long id,
                    int x1,
                    int y1,
                    int x2,
                    int y2)
Instantiates a new selected area.

Parameters:
id - the id
x1 - the x1
y1 - the y1
x2 - the x2
y2 - the y2
Method Detail

getHeight

public float getHeight()
Gets the height.

Returns:
the height

getId

public long getId()
Gets the id.

Returns:
the id

getWidth

public float getWidth()
Gets the width.

Returns:
the width

getX1

public float getX1()
Gets the x1.

Returns:
the x1

getX2

public float getX2()
Gets the x2.

Returns:
the x2

getY1

public float getY1()
Gets the y1.

Returns:
the y1

getY2

public float getY2()
Gets the y2.

Returns:
the y2

setId

public void setId(long id)
Sets the id.

Parameters:
id - the new id

setX1

public void setX1(int x1)
Sets the x1.

Parameters:
x1 - the new x1

setX2

public void setX2(int x2)
Sets the x2.

Parameters:
x2 - the new x2

setY1

public void setY1(int y1)
Sets the y1.

Parameters:
y1 - the new y1

setY2

public void setY2(int y2)
Sets the y2.

Parameters:
y2 - the new y2

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object