KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > awt > Point

java.awt
Class Point

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
All Implemented Interfaces:
Serializable, Cloneable
See Also:
Top Examples, Source Code

public boolean equals(Object obj)
See Also:
Hashtable, Object.hashCode(), Point2D
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Point getLocation()
See Also:
setLocation(int, int), setLocation(java.awt.Point)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double getX()
See Also:
Point2D
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double getY()
See Also:
Point2D
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void move(int x,
                 int y)
See Also:
Component.setLocation(int, int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Point()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Point(int x,
             int y)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Point(Point p)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLocation(double x,
                        double y)
See Also:
getLocation(), Point2D
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLocation(int x,
                        int y)
See Also:
move(int, int), getLocation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLocation(Point p)
See Also:
getLocation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void translate(int dx,
                      int dy)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1133]Move a point
By Anonymous on 2004/11/21 12:25:30  Rate
Point p = new Point ( 1, 2 ) ; 
 p.translate ( 3, 9 ) ; 
 System.out.println ( "x = " + p.x + ", y = " + p.y ) ; 
  
  
 prints  
  
  
  
 x = 4, y = 11 
  
  
 


public int x
See Also:
move(int, int), getLocation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int y
See Also:
move(int, int), getLocation()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags