Klasse java.awt.Rectangle | 1.0 |
java.lang.Object | +--java.awt.geom.RectangularShape | +--java.awt.geom.Rectangle2D | +--java.awt.Rectangle
Datenelemente | |
---|---|
public int | x |
public int | y |
public int | width |
public int | height |
Konstruktoren | |
---|---|
public | Rectangle() |
public | Rectangle(Rectangle r) ![]() |
public | Rectangle(Point p) |
public | Rectangle(Dimension d) |
public | Rectangle(int width, int height) |
public | Rectangle(Point p, Dimension d) |
public | Rectangle(int x, int y, int width, int height) |
Methoden | |
---|---|
public void | add(Rectangle r) |
public void | add(Point pt) |
public void | add(int newx, int newy) |
public boolean | contains(Rectangle r) ![]() |
public boolean | contains(Point p) ![]() |
public boolean | contains(int x, int y) ![]() |
public boolean | contains(int X, int Y, int W, int H) ![]() |
public Rectangle2D | createIntersection(Rectangle2D r) ![]() |
public Rectangle2D | createUnion(Rectangle2D r) ![]() |
public boolean | equals(Object obj) |
public Rectangle | getBounds() ![]() |
public double | getHeight() ![]() |
public Point | getLocation() ![]() |
public Dimension | getSize() ![]() |
public double | getWidth() ![]() |
public double | getX() ![]() |
public double | getY() ![]() |
public void | grow(int h, int v) |
public int | hashCode() |
public boolean | inside(int x, int y)
Verworfen in Version 1.1. |
public Rectangle | intersection(Rectangle r) |
public boolean | intersects(Rectangle r) |
public boolean | isEmpty() |
public void | move(int x, int y)
Verworfen in Version 1.1. |
public int | outcode(double x, double y) ![]() |
public void | reshape(int x, int y, int width, int height)
Verworfen in Version 1.1. |
public void | resize(int width, int height)
Verworfen in Version 1.1. |
public void | setBounds(Rectangle r) ![]() |
public void | setBounds(int x, int y, int width, int height) ![]() |
public void | setLocation(Point p) ![]() |
public void | setLocation(int x, int y) ![]() |
public void | setRect(double x, double y, double width, double height) ![]() |
public void | setSize(Dimension d) ![]() |
public void | setSize(int width, int height) ![]() |
public String | toString() |
public void | translate(int x, int y) |
public Rectangle | union(Rectangle r) |