public class Point extends ValueType
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Drawing.Point
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Drawing.Primitives, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Drawing.Primitives
|
static java.lang.String |
className
Qualified class name: System.Drawing.Point
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Point() |
Point(int dw)
Initializes a new instance by invoking the .NET constructor.
|
Point(int x,
int y)
Initializes a new instance by invoking the .NET constructor.
|
Point(java.lang.Object instance)
Internal constructor.
|
Point(Size sz)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Point |
Add(Point pt,
Size sz)
Invokes the .NET member Add.
|
static Point |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Point, a cast assert is made to check if types are compatible. |
static Point |
Ceiling(PointF value)
Invokes the .NET member Ceiling.
|
boolean |
Equals(Point other)
Invokes the .NET member Equals.
|
boolean |
getIsEmpty()
Gets the value of the .NET property IsEmpty.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
getX()
Gets the value of the .NET property X.
|
int |
getY()
Gets the value of the .NET property Y.
|
void |
Offset(int dx,
int dy)
Invokes the .NET member Offset.
|
void |
Offset(Point p)
Invokes the .NET member Offset.
|
static Point |
Round(PointF value)
Invokes the .NET member Round.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setX(int X)
Sets the value of the .NET property X.
|
void |
setY(int Y)
Sets the value of the .NET property Y.
|
static Point |
Subtract(Point pt,
Size sz)
Invokes the .NET member Subtract.
|
static Point |
Truncate(PointF value)
Invokes the .NET member Truncate.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Point()
throws java.lang.Throwable
java.lang.Throwablepublic Point(int dw)
throws java.lang.Throwable
dw - the argument of type intjava.lang.Throwable - if the .NET constructor failspublic Point(int x,
int y)
throws java.lang.Throwable
x - the argument of type inty - the argument of type intjava.lang.Throwable - if the .NET constructor failspublic Point(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic Point(Size sz) throws java.lang.Throwable
sz - the argument of type Sizejava.lang.Throwable - if the .NET constructor failspublic static Point Add(Point pt, Size sz) throws java.lang.Throwable
pt - the argument of type Pointsz - the argument of type Sizejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Point cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Point, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPoint instancejava.lang.Throwable - in case of error during cast operationpublic static Point Ceiling(PointF value) throws java.lang.Throwable
value - the argument of type PointFjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Equals(Point other) throws java.lang.Throwable
other - the argument of type Pointjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsEmpty()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypepublic int getX()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getY()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Offset(int dx,
int dy)
throws java.lang.Throwable
dx - the argument of type intdy - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Offset(Point p) throws java.lang.Throwable
p - the argument of type Pointjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Point Round(PointF value) throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException
value - the argument of type PointFjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ValueTypeinstance - the new underlying objectpublic void setX(int X)
throws java.lang.Throwable
X - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setY(int Y)
throws java.lang.Throwable
Y - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Point Subtract(Point pt, Size sz) throws java.lang.Throwable
pt - the argument of type Pointsz - the argument of type Sizejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Point Truncate(PointF value) throws java.lang.Throwable
value - the argument of type PointFjava.lang.Throwable - if the call fails in the bridge or in the CLR