| 
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Rect in maclib | 
|---|
| Methods in maclib that return Rect | |
|---|---|
 Rect | 
GrafPort.getDrawingRect()
Gets the drawing bounds of the attached drawing panel.  | 
 Rect | 
Rect.insetRect(int dh,
          int dv)
Shrinks or expands this rectangle by the specified amounts.  | 
 Rect | 
Rect.offsetRect(int dh,
           int dv)
Translates this rectangle by the specified displacement.  | 
 Rect | 
Rect.pt2Rect(Point p1,
        Point p2)
Sets the coordinates of this rectangle to the smallest one which encloses the two given points.  | 
 Rect | 
Rect.setRect(int left,
        int top,
        int right,
        int bottom)
Sets the coordinates of this rectangle as specified.  | 
 Rect | 
Rect.setRect(Rect src)
Sets the coordinates of this rectangle as specified by the given Rect object. | 
 Rect | 
Rect.setRect(java.awt.Rectangle rec)
Sets the coordinates of this rectangle as specified by the given java.awt.Rectangle object. | 
 Rect | 
Rect.unionRect(Rect src1,
          Rect src2)
Sets the coordinates of this rectangle to the smallest one which encloses the two given rectangles.  | 
| Methods in maclib with parameters of type Rect | |
|---|---|
static boolean | 
MacLib.emptyRect(Rect r)
Determines whether the given rectangle is empty or not.  | 
static boolean | 
MacLib.EmptyRect(Rect r)
 | 
 boolean | 
Rect.equalRect(Rect r)
Determines whether this rectangle and the given rectangle have the same coordinates.  | 
static boolean | 
MacLib.equalRect(Rect r1,
          Rect r2)
Determines whether the two given rectangles have the same coordinates.  | 
static boolean | 
MacLib.EqualRect(Rect r1,
          Rect r2)
 | 
static void | 
MacLib.eraseArc(Rect r,
         int startAngle,
         int arcAngle)
Paints inside a wedge of the oval that fits inside the specified rectangle, using the background color.  | 
 void | 
GrafPort.eraseArc(Rect r,
         int startAngle,
         int arcAngle)
Paints inside a wedge of the oval that fits inside the specified rectangle, using the background color.  | 
static void | 
MacLib.EraseArc(Rect r,
         int startAngle,
         int arcAngle)
 | 
static void | 
MacLib.eraseOval(Rect r)
Paints inside the oval that fits inside the specified rectangle, using the background color.  | 
 void | 
GrafPort.eraseOval(Rect r)
Paints inside the oval that fits inside the specified rectangle, using the background color.  | 
static void | 
MacLib.EraseOval(Rect r)
 | 
static void | 
MacLib.eraseRect(Rect r)
Paints inside the specified rectangle, using the background color.  | 
 void | 
GrafPort.eraseRect(Rect r)
Paints inside the specified rectangle, using the background color.  | 
static void | 
MacLib.EraseRect(Rect r)
 | 
static void | 
MacLib.eraseRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
Paints inside the specified rounded-corner rectangle, using the background color.  | 
 void | 
GrafPort.eraseRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
Paints inside the specified rounded-corner rectangle, using the background color.  | 
static void | 
MacLib.EraseRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
 | 
static void | 
MacLib.frameArc(Rect r,
         int startAngle,
         int arcAngle)
Draws an arc of outline just inside the oval that fits inside the specified rectangle.  | 
 void | 
GrafPort.frameArc(Rect r,
         int startAngle,
         int arcAngle)
Draws an arc of outline just inside the oval that fits inside the specified rectangle.  | 
static void | 
MacLib.FrameArc(Rect r,
         int startAngle,
         int arcAngle)
 | 
static void | 
MacLib.frameOval(Rect r)
Draws an outline just inside the oval that fits inside the specified rectangle.  | 
 void | 
GrafPort.frameOval(Rect r)
Draws an outline just inside the oval that fits inside the specified rectangle.  | 
static void | 
MacLib.FrameOval(Rect r)
 | 
static void | 
MacLib.frameRect(Rect r)
Draws an outline just inside the specified rectangle.  | 
 void | 
GrafPort.frameRect(Rect r)
Draws an outline just inside the specified rectangle.  | 
static void | 
MacLib.FrameRect(Rect r)
 | 
static void | 
MacLib.frameRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
Draws an outline just inside the specified rounded-corner rectangle.  | 
 void | 
GrafPort.frameRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
Draws an outline just inside the specified rounded-corner rectangle.  | 
static void | 
MacLib.FrameRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
 | 
static void | 
MacLib.getDrawingRect(Rect r)
Gets the bounds of the Drawing window.  | 
static void | 
MacLib.GetDrawingRect(Rect r)
 | 
static void | 
MacLib.getTextRect(Rect r)
Gets the bounds of the Text window.  | 
static void | 
MacLib.GetTextRect(Rect r)
 | 
 boolean | 
Point.inRect(Rect r)
Determines whether the pixel below and to the right of this point is enclosed in the specified rectangle.  | 
static void | 
MacLib.insetRect(Rect r,
          int dh,
          int dv)
Shrinks or expands the given rectangle by the specified amounts.  | 
static void | 
MacLib.InsetRect(Rect r,
          int dh,
          int dv)
 | 
static void | 
MacLib.invertArc(Rect r,
          int startAngle,
          int arcAngle)
Inverts pixels inside a wedge of the oval that fits inside the specified rectangle.  | 
 void | 
GrafPort.invertArc(Rect r,
          int startAngle,
          int arcAngle)
Inverts pixels inside a wedge of the oval that fits inside the specified rectangle.  | 
static void | 
MacLib.InvertArc(Rect r,
          int startAngle,
          int arcAngle)
 | 
static void | 
MacLib.invertOval(Rect r)
Inverts pixels inside the oval that fits inside the specified rectangle.  | 
 void | 
GrafPort.invertOval(Rect r)
Inverts pixels inside the oval that fits inside the specified rectangle.  | 
static void | 
MacLib.InvertOval(Rect r)
 | 
static void | 
MacLib.invertRect(Rect r)
Inverts pixels inside the specified rectangle.  | 
 void | 
GrafPort.invertRect(Rect r)
Inverts pixels inside the specified rectangle.  | 
static void | 
MacLib.InvertRect(Rect r)
 | 
static void | 
MacLib.invertRoundRect(Rect r,
                int arcWidth,
                int arcHeight)
Inverts pixels inside the specified rounded-corner rectangle.  | 
 void | 
GrafPort.invertRoundRect(Rect r,
                int arcWidth,
                int arcHeight)
Inverts pixels inside the specified rounded-corner rectangle.  | 
static void | 
MacLib.InvertRoundRect(Rect r,
                int arcWidth,
                int arcHeight)
 | 
static void | 
MacLib.offsetRect(Rect r,
           int dh,
           int dv)
Translates the given rectangle by the specified displacement.  | 
static void | 
MacLib.OffsetRect(Rect r,
           int dh,
           int dv)
 | 
static void | 
MacLib.paintArc(Rect r,
         int startAngle,
         int arcAngle)
Paints inside a wedge of the oval that fits inside the specified rectangle.  | 
 void | 
GrafPort.paintArc(Rect r,
         int startAngle,
         int arcAngle)
Paints inside a wedge of the oval that fits inside the specified rectangle.  | 
static void | 
MacLib.PaintArc(Rect r,
         int startAngle,
         int arcAngle)
 | 
static void | 
MacLib.paintOval(Rect r)
Paints inside the oval that fits inside the specified rectangle.  | 
 void | 
GrafPort.paintOval(Rect r)
Paints inside the oval that fits inside the specified rectangle.  | 
static void | 
MacLib.PaintOval(Rect r)
 | 
static void | 
MacLib.paintRect(Rect r)
Paints inside the specified rectangle.  | 
 void | 
GrafPort.paintRect(Rect r)
Paints inside the specified rectangle.  | 
static void | 
MacLib.PaintRect(Rect r)
 | 
static void | 
MacLib.paintRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
Paints inside the specified rounded-corner rectangle.  | 
 void | 
GrafPort.paintRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
Paints inside the specified rounded-corner rectangle.  | 
static void | 
MacLib.PaintRoundRect(Rect r,
               int arcWidth,
               int arcHeight)
 | 
static void | 
MacLib.pt2Rect(Point p1,
        Point p2,
        Rect dst)
Sets the coordinates of the given rectangle to the smallest one which encloses the two given points.  | 
static void | 
MacLib.Pt2Rect(Point p1,
        Point p2,
        Rect dst)
 | 
static boolean | 
MacLib.ptInRect(Point pt,
         Rect r)
Determines whether the pixel below and to the right of the given point is enclosed in the given rectangle.  | 
static boolean | 
MacLib.PtInRect(Point pt,
         Rect r)
 | 
 boolean | 
Rect.sectRect(Rect src1,
         Rect src2)
Sets the coordinates of this rectangle to the rectangle that is the intersection of the two given rectangles.  | 
static boolean | 
MacLib.sectRect(Rect src1,
         Rect src2,
         Rect dst)
Sets the coordinates of the third given rectangle to the rectangle that is the intersection of the two first given rectangles.  | 
static boolean | 
MacLib.SectRect(Rect src1,
         Rect src2,
         Rect dst)
 | 
static void | 
MacLib.setDrawingRect(Rect r)
Sets the bounds of the Drawing window.  | 
 void | 
GrafPort.setDrawingRect(Rect r)
Sets the bounds of the attached drawing panel as specified by the given Rect object. | 
static void | 
MacLib.SetDrawingRect(Rect r)
 | 
 Rect | 
Rect.setRect(Rect src)
Sets the coordinates of this rectangle as specified by the given Rect object. | 
static void | 
MacLib.setRect(Rect r,
        int left,
        int top,
        int right,
        int bottom)
Sets the coordinates of the given rectangle as specified.  | 
static void | 
MacLib.SetRect(Rect r,
        int left,
        int top,
        int right,
        int bottom)
 | 
static void | 
MacLib.setTextRect(Rect r)
Sets the bounds of the Text window.  | 
static void | 
MacLib.SetTextRect(Rect r)
 | 
 Rect | 
Rect.unionRect(Rect src1,
          Rect src2)
Sets the coordinates of this rectangle to the smallest one which encloses the two given rectangles.  | 
static void | 
MacLib.unionRect(Rect src1,
          Rect src2,
          Rect dst)
Sets the coordinates of the third given rectangle to the smallest one which encloses the two first given rectangles.  | 
static void | 
MacLib.UnionRect(Rect src1,
          Rect src2,
          Rect dst)
 | 
| Constructors in maclib with parameters of type Rect | |
|---|---|
Rect(Rect src1,
     Rect src2)
Constructs and initializes a rectangle as the smallest one which encloses the two given rectangles.  | 
|
  | 
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||