Aspose.BarCode for Python via Java  24.11
Aspose.Barcode for Python via Java Generation and Recognition API docs
Point Class Reference

Inherits BaseJavaClass.

Public Member Functions

None __init__ (self, int x, int y)
 
bool __eq__ (self, Optional[Point] other)
 Determines whether this instance and a specified object, which must also be a Unit object, have the same value. More...
 
int __hash__ (self)
 Returns the hash code for the current instance. More...
 
str __str__ (self)
 
int getX (self)
 The X coordinate of this Point. More...
 
int getY (self)
 The Y coordinate of this Point. More...
 
None init (self)
 
None setX (self, int x)
 The Y coordinate of this Point. More...
 
None setY (self, int y)
 The Y coordinate of this Point. More...
 
- Public Member Functions inherited from BaseJavaClass
None __init__ (self, javaClass)
 
def getJavaClass (self)
 
str getJavaClassName (self)
 
bool isNull (self)
 
None printJavaClassName (self)
 
None setJavaClass (self, javaClass)
 

Static Public Member Functions

Point construct (arg)
 

Public Attributes

 javaClass
 
- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Static Public Attributes

string javaClassName = "java.awt.Point"
 

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self,
int  x,
int  y 
)

Member Function Documentation

◆ __eq__()

bool __eq__ (   self,
Optional[Point other 
)

Determines whether this instance and a specified object, which must also be a Unit object, have the same value.

Parameters
otherThe Unit to compare to this instance.
Returns
: True if other is a Unit and its value is the same as this instance, otherwise False. If other is None, the method returns false.

◆ __hash__()

int __hash__ (   self)

Returns the hash code for the current instance.

Returns
A hash code for the current object.

◆ __str__()

str __str__ (   self)

◆ construct()

Point construct (   arg)
static

◆ getX()

int getX (   self)

The X coordinate of this Point.

If no X coordinate is set it will default to 0.

◆ getY()

int getY (   self)

The Y coordinate of this Point.

If no Y coordinate is set it will default to 0.

◆ init()

None init (   self)

Reimplemented from BaseJavaClass.

◆ setX()

None setX (   self,
int  x 
)

The Y coordinate of this Point.

If no Y coordinate is set it will default to 0.

◆ setY()

None setY (   self,
int  y 
)

The Y coordinate of this Point.

If no Y coordinate is set it will default to 0.

Member Data Documentation

◆ javaClass

javaClass

◆ javaClassName

string javaClassName = "java.awt.Point"
static