Java Swing Tutorial - Rectangle Example








Field

  1. Java Rectangle height
  2. Java Rectangle width
  3. Java Rectangle x
  4. Java Rectangle y




Constructor

  1. Java Rectangle() Constructor
  2. Java Rectangle(Dimension d) Constructor
  3. Java Rectangle(int width, int height) Constructor
  4. Java Rectangle(int x, int y, int width, int height) Constructor
  5. Java Rectangle(Point p) Constructor
  6. Java Rectangle(Point p, Dimension d) Constructor
  7. Java Rectangle(Rectangle r) Constructor




Method

  1. Java Rectangle.add(int newx, int newy)
  2. Java Rectangle.add(Point pt)
  3. Java Rectangle.add(Rectangle r)
  4. Java Rectangle.contains(int x, int y)
  5. Java Rectangle.contains(int X, int Y, int W, int H)
  6. Java Rectangle.contains(Point p)
  7. Java Rectangle.contains(Rectangle r)
  8. Java Rectangle .createIntersection (Rectangle2D r)
  9. Java Rectangle .createUnion (Rectangle2D r)
  10. Java Rectangle.equals(Object obj)
  11. Java Rectangle.getBounds()
  12. Java Rectangle.getBounds2D()
  13. Java Rectangle.getHeight()
  14. Java Rectangle.getLocation()
  15. Java Rectangle.getSize()
  16. Java Rectangle.getWidth()
  17. Java Rectangle.getX()
  18. Java Rectangle.getY()
  19. Java Rectangle.grow(int h, int v)
  20. Java Rectangle .intersection (Rectangle r)
  21. Java Rectangle .intersects (Rectangle r)
  22. Java Rectangle.isEmpty()
  23. Java Rectangle.outcode(double x, double y)
  24. Java Rectangle.setBounds(int x, int y, int width, int height)
  25. Java Rectangle.setBounds(Rectangle r)
  26. Java Rectangle.setLocation(int x, int y)
  27. Java Rectangle.setLocation(Point p)
  28. Java Rectangle.setRect(double x, double y, double width, double height)
  29. Java Rectangle.setSize(Dimension d)
  30. Java Rectangle.setSize(int width, int height)
  31. Java Rectangle.toString()
  32. Java Rectangle.translate(int dx, int dy)
  33. Java Rectangle.union(Rectangle r)