org.eclipse.ohf.wado.client.impl
Class ImageRegionImpl

java.lang.Object
  extended by org.eclipse.ohf.wado.client.impl.ImageRegionImpl
All Implemented Interfaces:
ImageRegion

public class ImageRegionImpl
extends java.lang.Object
implements ImageRegion

Implementation of the ImageRegion interface.

Author:
Yossi Mesika
See Also:
ImageRegion

Constructor Summary
ImageRegionImpl(double topLeftX, double topLeftY, double bottomRightX, double bottomRightY)
          Default Constructor that initially sets all the parameters of the image region.
 
Method Summary
 double getBottomRightX()
           
 double getBottomRightY()
           
 double getTopLeftX()
           
 double getTopLeftY()
           
 void setBottomRightX(double bottomRightX)
          Sets the x position of the top left hand corner of the region to be retrieved, 0.0 corresponding to the first column of the image matrix.
 void setBottomRightY(double bottomRightY)
          Sets the y position of the top left hand corner of the region to be retrieved, 0.0 corresponding to the top row of the image matrix.
 void setTopLeftX(double topLeftX)
          Sets the x position of the bottom right hand extent of the region, 1.0 corresponding to the last column of the image matrix, 0.0 being forbidden.
 void setTopLeftY(double topLeftY)
          Sets the y position of the bottom right hand extent of the region, 1.0 corresponding to the last row of the image matrix, 0.0 being forbidden.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageRegionImpl

public ImageRegionImpl(double topLeftX,
                       double topLeftY,
                       double bottomRightX,
                       double bottomRightY)
Default Constructor that initially sets all the parameters of the image region.

Parameters:
topLeftX - The x position of the top left hand corner of the region
topLeftY - The x position of the top left hand corner of the region
bottomRightX - The x position of the bottom right hand extent of the region
bottomRightY - The y position of the bottom right hand extent of the region
Method Detail

getBottomRightX

public double getBottomRightX()
Specified by:
getBottomRightX in interface ImageRegion
Returns:
The x position of the top left hand corner of the region

getBottomRightY

public double getBottomRightY()
Specified by:
getBottomRightY in interface ImageRegion
Returns:
The y position of the top left hand corner of the region

getTopLeftX

public double getTopLeftX()
Specified by:
getTopLeftX in interface ImageRegion
Returns:
The x position of the bottom right hand extent of the region

getTopLeftY

public double getTopLeftY()
Specified by:
getTopLeftY in interface ImageRegion
Returns:
The y position of the bottom right hand extent of the region

setBottomRightX

public void setBottomRightX(double bottomRightX)
Description copied from interface: ImageRegion
Sets the x position of the top left hand corner of the region to be retrieved, 0.0 corresponding to the first column of the image matrix.

Specified by:
setBottomRightX in interface ImageRegion
Parameters:
bottomRightX - The x position of the top left hand corner of the region

setBottomRightY

public void setBottomRightY(double bottomRightY)
Description copied from interface: ImageRegion
Sets the y position of the top left hand corner of the region to be retrieved, 0.0 corresponding to the top row of the image matrix.

Specified by:
setBottomRightY in interface ImageRegion
Parameters:
bottomRightY - The y position of the top left hand corner of the region

setTopLeftX

public void setTopLeftX(double topLeftX)
Description copied from interface: ImageRegion
Sets the x position of the bottom right hand extent of the region, 1.0 corresponding to the last column of the image matrix, 0.0 being forbidden.

Specified by:
setTopLeftX in interface ImageRegion
Parameters:
topLeftX - The x position of the bottom right hand extent of the region

setTopLeftY

public void setTopLeftY(double topLeftY)
Description copied from interface: ImageRegion
Sets the y position of the bottom right hand extent of the region, 1.0 corresponding to the last row of the image matrix, 0.0 being forbidden.

Specified by:
setTopLeftY in interface ImageRegion
Parameters:
topLeftY - The y position of the bottom right hand extent of the region