public class Point extends Point2D implements Serializable
Point2D.Double, Point2D.Float
Constructor and Description |
---|
Point() |
Point(double x, double y) |
Point(int x, int y) |
Point(Point p) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Point |
getLocation() |
double |
getX() |
double |
getY() |
void |
move(double x, double y) |
void |
move(int x, int y) |
void |
setLocation(double x, double y) |
void |
setLocation(int x, int y) |
void |
setLocation(Point p) |
String |
toString() |
void |
translate(double dx, double dy) |
void |
translate(int dx, int dy) |
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
public Point()
public Point(int x, int y)
public Point(double x, double y)
public Point(Point p)
public Point getLocation()
public void setLocation(Point p)
public void setLocation(int x, int y)
public void setLocation(double x, double y)
setLocation
in class Point2D
public void move(int x, int y)
public void move(double x, double y)
public void translate(int dx, int dy)
public void translate(double dx, double dy)
Copyright © 1998–2019. All rights reserved.