info.magnolia.imaging.operations.cropresize
Class Coords
java.lang.Object
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)
|
Coords
public Coords()
Coords
public Coords(int x1,
int y1,
int x2,
int y2)
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 © 2013 Magnolia International Ltd.. All Rights Reserved.