Home » apache-harmony-6.0-src-r917296-snapshot » org.apache.harmony.awt.gl » [javadoc | source]
org.apache.harmony.awt.gl
public class: MultiRectArea [javadoc | source]
java.lang.Object
   org.apache.harmony.awt.gl.MultiRectArea

All Implemented Interfaces:
    Shape

Direct Known Subclasses:
    RectCash, LineCash

Nested Class Summary:
public static class  MultiRectArea.LineCash  LineCash provides creating MultiRectArea line by line. Used in JavaShapeRasterizer. 
public static class  MultiRectArea.RectCash  RectCash provides simple creating MultiRectArea 
class  MultiRectArea.Iterator  MultiRectArea path iterator 
Field Summary
 boolean sorted     
public  int[] rect    Rectangle buffer 
 Rectangle bounds    Bounding box 
 Rectangle[] rectangles    Result rectangle array 
Constructor:
 public MultiRectArea() 
 public MultiRectArea(boolean sorted) 
 public MultiRectArea(MultiRectArea mra) 
    Constructs a new MultiRectArea as a copy of another one
 public MultiRectArea(Rectangle r) 
    Constructs a new MultiRectArea consists of single rectangle
 public MultiRectArea(Rectangle[] buf) 
    Constructs a new MultiRectArea and append rectangle from buffer
 public MultiRectArea(ArrayList<Rectangle> buf) 
    Constructs a new MultiRectArea and append rectangle from array
 public MultiRectArea(int x0,
    int y0,
    int x1,
    int y1) 
Method from org.apache.harmony.awt.gl.MultiRectArea Summary:
add,   add,   addRect,   check,   checkValidation,   contains,   contains,   contains,   contains,   equals,   getBounds,   getBounds2D,   getPathIterator,   getPathIterator,   getRectCount,   getRectangles,   intersect,   intersect,   intersect,   intersects,   intersects,   invalidate,   isEmpty,   print,   resort,   setRect,   substract,   substract,   subtract,   toString,   translate,   union
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.harmony.awt.gl.MultiRectArea Detail:
 public  void add(MultiRectArea mra) 
    Union with another MultiRectArea object
 public  void add(Rectangle rect) 
    Union with Rectangle object
 public  void addRect(int x1,
    int y1,
    int x2,
    int y2) 
    Add rectangle to the buffer without any checking
 static MultiRectArea check(MultiRectArea mra,
    String msg) 
    Checks validation of MultiRectArea object
 public static int checkValidation(Rectangle[] r,
    boolean sorted) 
    Checks validation of MultiRectArea object
 public boolean contains(Point2D p) 
    Tests does Point2D lie inside MultiRectArea object
 public boolean contains(Rectangle2D r) 
    Tests does Rectangle2D lie inside MultiRectArea object
 public boolean contains(double x,
    double y) 
    Tests does point lie inside MultiRectArea object
 public boolean contains(double x,
    double y,
    double w,
    double h) 
    Tests does rectangle lie inside MultiRectArea object
 public boolean equals(Object obj) 
    Tests equals with another object
 public Rectangle getBounds() 
    Returns bounds of MultiRectArea object
 public Rectangle2D getBounds2D() 
    Returns Bounds2D
 public PathIterator getPathIterator(AffineTransform t) 
    Returns path iterator
 public PathIterator getPathIterator(AffineTransform t,
    double flatness) 
    Returns path iterator
 public int getRectCount() 
    Return rectangle count in the buffer
 public Rectangle[] getRectangles() 
    Returns Rectangle array
 public  void intersect(MultiRectArea mra) 
    Intersect with another MultiRectArea object
 public  void intersect(Rectangle rect) 
    Intersect with Rectangle object
 public static MultiRectArea intersect(MultiRectArea src1,
    MultiRectArea src2) 
    Union two MutliRectareArea objects
 public boolean intersects(Rectangle2D r) 
    Tests does Rectangle2D intersect MultiRectArea object
 public boolean intersects(double x,
    double y,
    double w,
    double h) 
    Tests does rectangle intersect MultiRectArea object
  void invalidate() 
 public boolean isEmpty() 
    Tests is MultiRectArea empty
 public static  void print(MultiRectArea mra,
    String msg) 
    Print MultiRectArea object to output stream
  void resort() 
    Sort rectangle buffer
 protected  void setRect(int[] buf,
    boolean copy) 
    Assigns rectangle from another buffer
 public  void substract(MultiRectArea mra) 
    Subtract another MultiRectArea object
 public  void substract(Rectangle rect) 
    Subtract rectangle object
 public static MultiRectArea subtract(MultiRectArea src1,
    MultiRectArea src2) 
    Subtract two MultiRectArea objects
 public String toString() 
    Returns MultiRectArea object converted to string
 public  void translate(int x,
    int y) 
    Translate MultiRectArea object by (x, y)
 public static MultiRectArea union(MultiRectArea src1,
    MultiRectArea src2) 
    Intersect two MultiRectArea objects