ShortPoint
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
public class ShortPoint extends Struct<ShortPoint>
Represents an ordered pair of shor x- and y-coordinates that defines a point in a two-dimensional plane.
Constructors
| Constructor | Description |
|---|---|
| ShortPoint() | |
| ShortPoint(short x, short y) | Initializes a new instance of the ShortPoint struct with the specified coordinates. |
Fields
| Field | Description |
|---|---|
| X | |
| Y |
Methods
| Method | Description |
|---|---|
| Clone() | |
| CloneTo(T arg0) | |
| CloneTo(ShortPoint that) | |
| cast(System.Drawing.Point point) | Initializes a new instance of the ShortPoint struct with the specified coordinates. |
| cast(int x, int y) | Initializes a new instance of the ShortPoint struct with the specified coordinates. |
| clone() | |
| equals(Object obj) | |
| getClass() | |
| getHashCode() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toFloatPoint() | |
| toIntPoint() | Converts this ShortPoint to System.Drawing.Point. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
ShortPoint()
public ShortPoint()
ShortPoint(short x, short y)
public ShortPoint(short x, short y)
Initializes a new instance of the ShortPoint struct with the specified coordinates.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | short | x: The horizontal position of the point. |
| y | short | y: The vertical position of the point. |
X
public short X
Y
public short Y
Clone()
public ShortPoint Clone()
Returns: ShortPoint
CloneTo(T arg0)
public abstract void CloneTo(T arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | T |
CloneTo(ShortPoint that)
public void CloneTo(ShortPoint that)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| that | ShortPoint |
cast(System.Drawing.Point point)
public static ShortPoint cast(System.Drawing.Point point)
Initializes a new instance of the ShortPoint struct with the specified coordinates.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| point | com.aspose.ms.System.Drawing.Point | The System.Drawing.Point to cast. |
Returns: ShortPoint - a cast point
cast(int x, int y)
public static ShortPoint cast(int x, int y)
Initializes a new instance of the ShortPoint struct with the specified coordinates.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| x | int | x: The horizontal position of the point. |
| y | int | y: The vertical position of the point. |
Returns: ShortPoint
clone()
public Object clone()
Returns: java.lang.Object
equals(Object obj)
public boolean equals(Object obj)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
getHashCode()
public int getHashCode()
Returns: int
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toFloatPoint()
public System.Drawing.PointF toFloatPoint()
Returns: com.aspose.ms.System.Drawing.PointF
toIntPoint()
public System.Drawing.Point toIntPoint()
Converts this ShortPoint to System.Drawing.Point.
Returns: com.aspose.ms.System.Drawing.Point - A System.Drawing.Point that represents this ShortPoint
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |