| java.lang.Object org.apache.harmony.awt.gl.MultiRectArea
MultiRectArea | public class MultiRectArea implements Shape(Code) | | |
Method Summary | |
public void | add(MultiRectArea mra) | public void | add(Rectangle rect) | public void | addRect(int x1, int y1, int x2, int y2) | static MultiRectArea | check(MultiRectArea mra, String msg) | public static int | checkValidation(Rectangle[] r, boolean sorted) | public boolean | contains(double x, double y) | public boolean | contains(Point2D p) | public boolean | contains(double x, double y, double w, double h) | public boolean | contains(Rectangle2D r) | public boolean | equals(Object obj) | public Rectangle | getBounds() | public Rectangle2D | getBounds2D() | public PathIterator | getPathIterator(AffineTransform t, double flatness) | public PathIterator | getPathIterator(AffineTransform t) | public int | getRectCount() | public Rectangle[] | getRectangles() | public void | intersect(MultiRectArea mra) | public void | intersect(Rectangle rect) | public static MultiRectArea | intersect(MultiRectArea src1, MultiRectArea src2) | public boolean | intersects(double x, double y, double w, double h) | public boolean | intersects(Rectangle2D r) | void | invalidate() | public boolean | isEmpty() | public static void | print(MultiRectArea mra, String msg) | void | resort() | protected void | setRect(int[] buf, boolean copy) | public void | substract(MultiRectArea mra) | public void | substract(Rectangle rect) | public static MultiRectArea | subtract(MultiRectArea src1, MultiRectArea src2) | public String | toString() | public void | translate(int x, int y) | public static MultiRectArea | union(MultiRectArea src1, MultiRectArea src2) |
rect | public int[] rect(Code) | | Rectangle buffer
|
MultiRectArea | public MultiRectArea()(Code) | | Constructs a new empty MultiRectArea
|
MultiRectArea | public MultiRectArea(boolean sorted)(Code) | | |
MultiRectArea | public MultiRectArea(MultiRectArea mra)(Code) | | Constructs a new MultiRectArea as a copy of another one
|
MultiRectArea | public MultiRectArea(Rectangle r)(Code) | | Constructs a new MultiRectArea consists of single rectangle
|
MultiRectArea | public MultiRectArea(int x0, int y0, int x1, int y1)(Code) | | Constructs a new MultiRectArea consists of single rectangle
|
MultiRectArea | public MultiRectArea(Rectangle[] buf)(Code) | | Constructs a new MultiRectArea and append rectangle from buffer
|
MultiRectArea | public MultiRectArea(ArrayList<Rectangle> buf)(Code) | | Constructs a new MultiRectArea and append rectangle from array
|
addRect | public void addRect(int x1, int y1, int x2, int y2)(Code) | | Add rectangle to the buffer without any checking
|
checkValidation | public static int checkValidation(Rectangle[] r, boolean sorted)(Code) | | Checks validation of MultiRectArea object
|
contains | public boolean contains(double x, double y)(Code) | | Tests does point lie inside MultiRectArea object
|
contains | public boolean contains(Point2D p)(Code) | | Tests does Point2D lie inside MultiRectArea object
|
contains | public boolean contains(double x, double y, double w, double h)(Code) | | Tests does rectangle lie inside MultiRectArea object
|
contains | public boolean contains(Rectangle2D r)(Code) | | Tests does Rectangle2D lie inside MultiRectArea object
|
equals | public boolean equals(Object obj)(Code) | | Tests equals with another object
|
getBounds | public Rectangle getBounds()(Code) | | Returns bounds of MultiRectArea object
|
getRectCount | public int getRectCount()(Code) | | Return rectangle count in the buffer
|
getRectangles | public Rectangle[] getRectangles()(Code) | | Returns Rectangle array
|
intersect | public void intersect(MultiRectArea mra)(Code) | | Intersect with another MultiRectArea object
|
intersect | public void intersect(Rectangle rect)(Code) | | Intersect with Rectangle object
|
intersects | public boolean intersects(double x, double y, double w, double h)(Code) | | Tests does rectangle intersect MultiRectArea object
|
intersects | public boolean intersects(Rectangle2D r)(Code) | | Tests does Rectangle2D intersect MultiRectArea object
|
invalidate | void invalidate()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | Tests is MultiRectArea empty
|
resort | void resort()(Code) | | Sort rectangle buffer
|
setRect | protected void setRect(int[] buf, boolean copy)(Code) | | Assigns rectangle from another buffer
|
substract | public void substract(Rectangle rect)(Code) | | Subtract rectangle object
|
toString | public String toString()(Code) | | Returns MultiRectArea object converted to string
|
translate | public void translate(int x, int y)(Code) | | Translate MultiRectArea object by (x, y)
|
|
|