info.magnolia.imaging.operations.cropresize
Class Coords

java.lang.Object
  extended by info.magnolia.imaging.operations.cropresize.Coords
All Implemented Interfaces:
Serializable

public class Coords
extends Object
implements Serializable

A simple bean holding the coordinates of 2 points, determining an area for cropping an image, providing helper methods calculating and validating the width and height of the area. This class is not immutable because it must be instantiable through content2bean.

Version:
$Id$
See Also:
Serialized Form

Constructor Summary
Coords()
           
Coords(int x1, int y1, int x2, int y2)
           
 
Method Summary
 boolean equals(Object o)
           
 int getHeight()
           
 int getWidth()
           
 int getX1()
           
 int getX2()
           
 int getY1()
           
 int getY2()
           
 int hashCode()
           
 void setX1(int x1)
           
 void setX2(int x2)
           
 void setY1(int y1)
           
 void setY2(int y2)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Coords

public Coords()

Coords

public Coords(int x1,
              int y1,
              int x2,
              int y2)
Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

getX1

public int getX1()

setX1

public void setX1(int x1)

getX2

public int getX2()

setX2

public void setX2(int x2)

getY1

public int getY1()

setY1

public void setY1(int y1)

getY2

public int getY2()

setY2

public void setY2(int y2)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.