public class Position extends Object
The location information includes abscissa and ordinate values of pixels.
SystemCapability.Multimedia#IMAGE| 限定符和类型 | 字段 | 说明 |
|---|---|---|
int |
posX |
Indicates the abscissa of a pixel in the coordinate system.
|
int |
posY |
Indicates the ordinate of a pixel in the coordinate system.
|
| 构造器 | 说明 |
|---|---|
Position() |
A constructor used to create a
Position instance. |
Position(int px,
int py) |
A constructor used to create a
Position instance based on specified abscissa and ordinate values. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object obj) |
Checks whether the
Position object is the same as the one
passed through the input parameter. |
int |
hashCode() |
Generates a hash code value based on the
Position object. |
String |
toString() |
Obtains the string representation of the
Position object. |
public int posX
public int posY
public Position()
Position instance.
Abscissa and ordinate values of the image pixel are set to 0.
public Position(int px,
int py)
Position instance based on specified abscissa and ordinate values.public boolean equals(Object obj)
Position object is the same as the one
passed through the input parameter.
This method overrides the equals method.
public int hashCode()
Position object.hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)