- Point в java это
- Methods declared in class java.awt.geom.Point2D
- Methods declared in class java.lang.Object
- Field Detail
- x
- y
- Constructor Detail
- Point
- Point
- Point
- Method Detail
- getX
- getY
- getLocation
- setLocation
- setLocation
- setLocation
- move
- translate
- equals
- toString
- Class Point
- Nested classes/interfaces declared in class java.awt.geom.Point2D
- Field Summary
- Constructor Summary
- Method Summary
- Methods declared in class java.awt.geom.Point2D
- Methods declared in class java.lang.Object
- Field Details
- x
- y
- Constructor Details
- Point
- Point
- Point
- Method Details
- getX
- getY
- getLocation
- setLocation
- setLocation
- setLocation
- move
- translate
- equals
- toString
- Class Point
- Nested classes/interfaces declared in class java.awt.geom.Point2D
- Field Summary
- Constructor Summary
- Method Summary
- Methods declared in class java.awt.geom.Point2D
- Methods declared in class java.lang.Object
- Field Details
- x
- y
- Constructor Details
- Point
- Point
- Point
- Method Details
- getX
- getY
- getLocation
- setLocation
- setLocation
- setLocation
- move
- translate
- equals
- toString
- Point в java это
- Methods declared in class java.awt.geom.Point2D
- Methods declared in class java.lang.Object
- Field Detail
- x
- y
- Constructor Detail
- Point
- Point
- Point
- Method Detail
- getX
- getY
- getLocation
- setLocation
- setLocation
- setLocation
- move
- translate
- equals
- toString
Point в java это
Translates this point, at location (x,y) , by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy) .
Methods declared in class java.awt.geom.Point2D
Methods declared in class java.lang.Object
Field Detail
x
y
Constructor Detail
Point
Point
Point
Method Detail
getX
getY
getLocation
Returns the location of this point. This method is included for completeness, to parallel the getLocation method of Component .
setLocation
Sets the location of the point to the specified location. This method is included for completeness, to parallel the setLocation method of Component .
setLocation
public void setLocation(int x, int y)
Changes the point to have the specified location. This method is included for completeness, to parallel the setLocation method of Component . Its behavior is identical with move(int, int) .
setLocation
public void setLocation(double x, double y)
Sets the location of this point to the specified double coordinates. The double values will be rounded to integer values. Any number smaller than Integer.MIN_VALUE will be reset to MIN_VALUE , and any number larger than Integer.MAX_VALUE will be reset to MAX_VALUE .
move
public void move(int x, int y)
Moves this point to the specified location in the (x,y) coordinate plane. This method is identical with setLocation(int, int) .
translate
public void translate(int dx, int dy)
Translates this point, at location (x,y) , by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy) .
equals
Determines whether or not two points are equal. Two instances of Point2D are equal if the values of their x and y member fields, representing their position in the coordinate space, are the same.
toString
Returns a string representation of this point and its location in the (x,y) coordinate space. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null .
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
Class Point
Nested classes/interfaces declared in class java.awt.geom.Point2D
Field Summary
Constructor Summary
Method Summary
Translates this point, at location (x,y) , by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy) .
Methods declared in class java.awt.geom.Point2D
Methods declared in class java.lang.Object
Field Details
x
y
Constructor Details
Point
Point
Point
Method Details
getX
getY
getLocation
Returns the location of this point. This method is included for completeness, to parallel the getLocation method of Component .
setLocation
Sets the location of the point to the specified location. This method is included for completeness, to parallel the setLocation method of Component .
setLocation
Changes the point to have the specified location. This method is included for completeness, to parallel the setLocation method of Component . Its behavior is identical with move(int, int) .
setLocation
Sets the location of this point to the specified double coordinates. The double values will be rounded to integer values. Any number smaller than Integer.MIN_VALUE will be reset to MIN_VALUE , and any number larger than Integer.MAX_VALUE will be reset to MAX_VALUE .
move
Moves this point to the specified location in the (x,y) coordinate plane. This method is identical with setLocation(int, int) .
translate
Translates this point, at location (x,y) , by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy) .
equals
Determines whether or not two points are equal. Two instances of Point2D are equal if the values of their x and y member fields, representing their position in the coordinate space, are the same.
toString
Returns a string representation of this point and its location in the (x,y) coordinate space. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null .
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
Class Point
Nested classes/interfaces declared in class java.awt.geom.Point2D
Field Summary
Constructor Summary
Method Summary
Translates this point, at location (x,y) , by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy) .
Methods declared in class java.awt.geom.Point2D
Methods declared in class java.lang.Object
Field Details
x
y
Constructor Details
Point
Point
Point
Method Details
getX
getY
getLocation
Returns the location of this point. This method is included for completeness, to parallel the getLocation method of Component .
setLocation
Sets the location of the point to the specified location. This method is included for completeness, to parallel the setLocation method of Component .
setLocation
Changes the point to have the specified location. This method is included for completeness, to parallel the setLocation method of Component . Its behavior is identical with move(int, int) .
setLocation
Sets the location of this point to the specified double coordinates. The double values will be rounded to integer values. Any number smaller than Integer.MIN_VALUE will be reset to MIN_VALUE , and any number larger than Integer.MAX_VALUE will be reset to MAX_VALUE .
move
Moves this point to the specified location in the (x,y) coordinate plane. This method is identical with setLocation(int, int) .
translate
Translates this point, at location (x,y) , by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy) .
equals
Determines whether or not two points are equal. Two instances of Point2D are equal if the values of their x and y member fields, representing their position in the coordinate space, are the same.
toString
Returns a string representation of this point and its location in the (x,y) coordinate space. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null .
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
Point в java это
Translates this point, at location (x,y) , by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy) .
Methods declared in class java.awt.geom.Point2D
Methods declared in class java.lang.Object
Field Detail
x
y
Constructor Detail
Point
Point
Point
Method Detail
getX
getY
getLocation
Returns the location of this point. This method is included for completeness, to parallel the getLocation method of Component .
setLocation
Sets the location of the point to the specified location. This method is included for completeness, to parallel the setLocation method of Component .
setLocation
public void setLocation(int x, int y)
Changes the point to have the specified location. This method is included for completeness, to parallel the setLocation method of Component . Its behavior is identical with move(int, int) .
setLocation
public void setLocation(double x, double y)
Sets the location of this point to the specified double coordinates. The double values will be rounded to integer values. Any number smaller than Integer.MIN_VALUE will be reset to MIN_VALUE , and any number larger than Integer.MAX_VALUE will be reset to MAX_VALUE .
move
public void move(int x, int y)
Moves this point to the specified location in the (x,y) coordinate plane. This method is identical with setLocation(int, int) .
translate
public void translate(int dx, int dy)
Translates this point, at location (x,y) , by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy) .
equals
Determines whether or not two points are equal. Two instances of Point2D are equal if the values of their x and y member fields, representing their position in the coordinate space, are the same.
toString
Returns a string representation of this point and its location in the (x,y) coordinate space. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null .
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.