Package nl.vpro.domain.image
Class RelativePoint
- java.lang.Object
-
- nl.vpro.domain.image.RelativePoint
-
- All Implemented Interfaces:
Serializable
public class RelativePoint extends Object implements Serializable
Represents a relative position in an image. Basically two floats ranging from0to100.- Since:
- 5.34
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static RelativePointMIDDLE
-
Constructor Summary
Constructors Constructor Description RelativePoint(float x, float y)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(@Nullable Object other)booleanequals(@Nullable Object o)floatgetX()floatgetY()inthashCode()static RelativePointof(@javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(100L) float x, @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(100L) int y)StringtoString()
-
-
-
Field Detail
-
MIDDLE
public static final RelativePoint MIDDLE
-
-
Method Detail
-
of
public static RelativePoint of(@Min(0L) @Max(100L) @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(100L) float x, @Min(0L) @Max(100L) @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(100L) int y)
-
getX
public float getX()
-
getY
public float getY()
-
canEqual
protected boolean canEqual(@Nullable Object other)
-
-