[]
Use this type to store or pass 2D coordinates when working with workbook or chart geometry.
Point point = new Point(10, 20);
double x = point.getX();
double y = point.getY();
Point class with coordinates set to (0, 0).This constructor creates a point at the origin.
Point point = new Point();
double x = point.getX();
double y = point.getY();
Point class with the specified coordinates.This constructor creates a point by setting its horizontal and vertical positions.
Point point = new Point(10, 20);
double x = point.getX();
double y = point.getY();
x - The x-coordinate of the point.y - The y-coordinate of the point.This method returns the horizontal position stored by the current Point instance.
Point point = new Point(10, 20);
double x = point.getX();
This method Sets the horizontal position stored by the current Point instance.
Point point = new Point(10, 20);
point.setX(100.0);
value - The x-coordinate of this point.This method returns the vertical position stored by the current Point instance.
Point point = new Point(10, 20);
double y = point.getY();
This method Sets the vertical position stored by the current Point instance.
Point point = new Point(10, 20);
point.setY(100.0);
value - The y-coordinate of this point.