Class AbstractPoint2Wrapper<P>
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.AbstractPoint2Wrapper<P>
-
- Type Parameters:
P
- The type of the point
- All Implemented Interfaces:
Point2Wrapper<P>
- Direct Known Subclasses:
AbstractPoint3Wrapper
,OpenCVPoint2Wrapper
public abstract class AbstractPoint2Wrapper<P> extends Object implements Point2Wrapper<P>
Abstract generic implementation of the Point2Wrapper interface. Getter and Setter for coordinate-values (not for the wrapped point) have to be overwritten in inherited class!
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Constructor Summary
Constructors Constructor Description AbstractPoint2Wrapper(P point)
Constructor for a new AbstractPoint2Wrapper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Generated CodeP
getPoint()
Getter for the wrapped point object.int
hashCode()
Generated Codevoid
setPoint(P point)
Setter for the wrapped point objectString
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.api.domain.wrapper.Point2Wrapper
getX, getY, setX, setY
-
-
-
-
Field Detail
-
point
protected P point
-
-
Constructor Detail
-
AbstractPoint2Wrapper
public AbstractPoint2Wrapper(P point)
Constructor for a new AbstractPoint2Wrapper- Parameters:
point
- The point which should be wrapped
-
-
Method Detail
-
getPoint
public P getPoint()
Getter for the wrapped point object.- Specified by:
getPoint
in interfacePoint2Wrapper<P>
- Returns:
- Returns the wrapped point object.
-
setPoint
public void setPoint(P point)
Setter for the wrapped point object- Specified by:
setPoint
in interfacePoint2Wrapper<P>
- Parameters:
point
- AbstractPoint2Wrapper which should be wrapped.
-
equals
public boolean equals(Object o)
Generated Code
-
-