Uses of Class
maclib.Point

Uses of Point in maclib
 

Methods in maclib that return Point
 Point Point.addPt(Point p)
          Translates this point by the displacement vector specified as the given point.
 Point Rect.botRight()
          Returns the bottom right corner of this rectangle.
 Point GrafPort.getClick()
          Waits until the mouse button is pressed and then released in the attached drawing panel.
 Point GrafPort.getMouse()
          Returns the current mouse location (relative to the attached drawing panel) as a PointPoint object.
 Point GrafPort.getPen()
          Returns the current pen location (relative to the attached drawing panel) as a Point object.
static Point[] MacLib.newPointArray(int pCount)
          Allocates an new array of also allocated Point objects, which is useful for specifying polygonal shapes.
 Point Point.setPt(int h, int v)
          Sets the coordinates of this point to the specified location.
 Point Point.setPt(Point pt)
          Sets the coordinates of this point as specified by the given Point object.
 Point Point.setPt(java.awt.Point pt)
          Sets the coordinates of this point as specified by the given java.awt.Point object.
 Point Point.subPt(Point p)
          Translates this point by the displacement vector specified as the inverse of the given point.
 Point Rect.topLeft()
          Returns the top left corner of this rectangle.
 

Methods in maclib with parameters of type Point
 Point Point.addPt(Point p)
          Translates this point by the displacement vector specified as the given point.
static void MacLib.addPt(Point src, Point dst)
          Translates the second given point by the displacement vector specified as the first given point.
static void MacLib.AddPt(Point src, Point dst)
           
 boolean Point.equalPt(Point pt)
          Determines whether this point and the given point have the same coordinates.
static boolean MacLib.equalPt(Point p1, Point p2)
          Determines whether the two given points have the same coordinates.
static boolean MacLib.EqualPt(Point p1, Point p2)
           
static void MacLib.erasePolygon(Point[] points, int pCount)
          Paints inside the specified polygon, using the background color.
 void GrafPort.erasePolygon(Point[] points, int pCount)
          Paints inside the specified polygon, using the background color.
static void MacLib.ErasePolygon(Point[] points, int pCount)
           
static void MacLib.framePolygon(Point[] points, int pCount)
          Draws an outline of the specified polygon.
 void GrafPort.framePolygon(Point[] points, int pCount)
          Draws an outline of the specified polygon.
static void MacLib.FramePolygon(Point[] points, int pCount)
           
static void MacLib.getClick(Point p)
          Waits until the mouse button is pressed and then released in the Drawing window.
static void MacLib.GetClick(Point p)
           
static void MacLib.getMouse(Point p)
          Stores the current mouse location (relative to the Drawing window) in the given PointPoint object.
static void MacLib.GetMouse(Point p)
           
static void MacLib.getPen(Point p)
          Stores the current pen location (relative to the Drawing window) in the given point.
static void MacLib.GetPen(Point p)
           
static void MacLib.invertPolygon(Point[] points, int pCount)
          Inverts pixels inside the specified polygon.
 void GrafPort.invertPolygon(Point[] points, int pCount)
          Inverts pixels inside the specified polygon.
static void MacLib.InvertPolygon(Point[] points, int pCount)
           
static void MacLib.paintPolygon(Point[] points, int pCount)
          Paints inside the specified polygon.
 void GrafPort.paintPolygon(Point[] points, int pCount)
          Paints inside the specified polygon.
static void MacLib.PaintPolygon(Point[] points, int pCount)
           
 Rect Rect.pt2Rect(Point p1, Point p2)
          Sets the coordinates of this rectangle to the smallest one which encloses the two given points.
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)
           
 boolean Rect.ptInRect(Point pt)
          Determines whether the pixel below and to the right of the given point is enclosed in this rectangle.
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)
           
 Point Point.setPt(Point pt)
          Sets the coordinates of this point as specified by the given Point object.
static void MacLib.setPt(Point p, int h, int v)
          Sets the coordinates of the given point to the specified location.
static void MacLib.SetPt(Point p, int h, int v)
           
 Point Point.subPt(Point p)
          Translates this point by the displacement vector specified as the inverse of the given point.
static void MacLib.subPt(Point src, Point dst)
          Translates the second given point by the displacement vector specified as the inverse of the first given point.
static void MacLib.SubPt(Point src, Point dst)
           
static boolean MacLib.trackMouse(Point p)
          Waits until the mouse button is released, after being pressed, or until the mouse location is dragged.
 boolean GrafPort.trackMouse(Point p)
          Waits until the mouse button is released, after being pressed, or until the mouse location is dragged.
static boolean MacLib.TrackMouse(Point p)
           
 

Constructors in maclib with parameters of type Point
Rect(Point p1, Point p2)
          Constructs and initializes a rectangle as the smallest one which encloses the two given points.