## Uses of Class
org.eclipse.draw2d.geometry.Point

Packages that use Point
Package | Description
--- | ---
org.eclipse.draw2d | Primary package containing general interfaces and implementation classes.
org.eclipse.draw2d.geometry | Types representing or manipulating geometric values, such as Points, Dimensions, etc.
org.eclipse.draw2d.graph | Stand-alone algorithms related to Graph Drawing.
org.eclipse.draw2d.text | Figures and support classes related to the layout and rendering of rich text.

### Uses of Point in org.eclipse.draw2d

Subclasses of Point in org.eclipse.draw2d
Modifier and Type | Class and Description
--- | ---
`class` | `AbsoluteBendpoint` AbsoluteBendpoint is a Bendpoint that defines its location simply as its X and Y coordinates.

Fields in org.eclipse.draw2d declared as Point
Modifier and Type | Field and Description
--- | ---
`protected Point` | ScrollBar.ThumbDragger.`start`

Methods in org.eclipse.draw2d that return Point
Modifier and Type | Method and Description
--- | ---
`Point` | AbstractPointListShape.`getEnd()` Returns the last point in this Figure.
`protected Point` | AbstractRouter.`getEndPoint(Connection connection)` A convenience method for obtaining a connection's endpoint.
`protected Point` | Label.`getIconLocation()` Returns the location of the Label's icon relative to the Label.
`Point` | MouseEvent.`getLocation()`
`Point` | Bendpoint.`getLocation()` Returns the location of the bendpoint relative to the connection.
`Point` | Figure.`getLocation()` Returns the top-left corner of this Figure's bounds.
`Point` | RelativeBendpoint.`getLocation()` Calculates and returns this Bendpoint's new location.
`Point` | AbsoluteBendpoint.`getLocation()`
`Point` | XYAnchor.`getLocation(Point reference)` Returns the location of this anchor relative to the reference point given in as input.
`Point` | EllipseAnchor.`getLocation(Point reference)` Returns a point on the ellipse (defined by the owner's bounding box) where the connection should be anchored.
`Point` | ChopboxAnchor.`getLocation(Point reference)` Gets a Rectangle from `ChopboxAnchor.getBox()` and returns the Point where a line from the center of the Rectangle to the Point reference intersects the Rectangle.
`Point` | ConnectionAnchor.`getLocation(Point reference)` Returns the location where the Connection should be anchored in absolute coordinates.
`Point` | RoundedRectangleAnchor.`getLocation(Point ref)` Calculates the position with ChopboxAnchor#getLocation() and if the anchor is not at the rounded corners, the result is returned.
`protected Point` | ConnectionLocator.`getLocation(PointList points)` Returns a point from the passed PointList, dependent on ConnectionLocator's alignment.
`Point` | FreeformLayout.`getOrigin(IFigure figure)` Returns the point (0,0) as the origin.
`Point` | XYLayout.`getOrigin(IFigure parent)` Returns the origin for the given figure.
`protected Point` | ConnectionLocator.`getReferencePoint()` Returns ConnectionLocator's reference point in absolute coordinates.
`protected Point` | BendpointLocator.`getReferencePoint()` Returns reference point associated with the BendpointLocator.
`Point` | XYAnchor.`getReferencePoint()` Returns the point which is used as the reference by this connection anchor.
`protected abstract Point` | AbstractLocator.`getReferencePoint()` Returns the reference point in absolute coordinates used to calculate the location.
`Point` | ChopboxAnchor.`getReferencePoint()` Returns the anchor's reference point.
`Point` | ConnectionAnchor.`getReferencePoint()` Returns the reference point for this anchor in absolute coordinates.
`protected Point` | MidpointLocator.`getReferencePoint()` Returns the point of reference associated with this locator.
`Point` | AbstractConnectionAnchor.`getReferencePoint()` Returns the point which is used as the reference by this AbstractConnectionAnchor.
`Point` | AbstractPointListShape.`getStart()`
`protected Point` | AbstractRouter.`getStartPoint(Connection conn)` A convenience method for obtaining a connection's start point.
`protected Point` | Label.`getTextLocation()` Returns the location of the label's text relative to the label.
`Point` | Viewport.`getViewLocation()` Returns the current location of this Viewport.

Methods in org.eclipse.draw2d with parameters of type Point
Modifier and Type | Method and Description
--- | ---
`void` | ScalablePolygonShape.`addPoint(Point pt)`
`void` | AbstractPointListShape.`addPoint(Point pt)` Adds the passed point to this figure.
`boolean` | Figure.`containsPoint(Point p)` This method is final.
`boolean` | IFigure.`containsPoint(Point p)` Returns `true` if the Point p is contained within this IFigure's bounds.
`void` | Graphics.`drawImage(Image image, Point p)` Draws the given image at a point.
`void` | Graphics.`drawLine(Point p1, Point p2)`
`void` | Graphics.`drawString(java.lang.String s, Point p)`
`void` | Graphics.`drawText(java.lang.String s, Point p)`
`void` | Graphics.`drawText(java.lang.String s, Point p, int style)` Draws a string using the specified styles.
`void` | Graphics.`fillString(java.lang.String s, Point p)`
`void` | Graphics.`fillText(java.lang.String s, Point p)`
`IFigure` | Figure.`findFigureAt(Point pt)`
`IFigure` | IFigure.`findFigureAt(Point p)` Returns the IFigure at the specified location.
`protected Ray` | ManhattanConnectionRouter.`getDirection(Rectangle r, Point p)` Returns the direction the point p is in relation to the given rectangle.
`Point` | XYAnchor.`getLocation(Point reference)` Returns the location of this anchor relative to the reference point given in as input.
`Point` | EllipseAnchor.`getLocation(Point reference)` Returns a point on the ellipse (defined by the owner's bounding box) where the connection should be anchored.
`Point` | ChopboxAnchor.`getLocation(Point reference)` Gets a Rectangle from `ChopboxAnchor.getBox()` and returns the Point where a line from the center of the Rectangle to the Point reference intersects the Rectangle.
`Point` | ConnectionAnchor.`getLocation(Point reference)` Returns the location where the Connection should be anchored in absolute coordinates.
`Point` | RoundedRectangleAnchor.`getLocation(Point ref)` Calculates the position with ChopboxAnchor#getLocation() and if the anchor is not at the rounded corners, the result is returned.
`protected Rectangle` | AbstractLocator.`getNewBounds(Dimension size, Point center)` Recalculate the location of the figure according to its desired position relative to the center point.
`void` | ScalablePolygonShape.`insertPoint(Point pt, int index)`
`void` | AbstractPointListShape.`insertPoint(Point pt, int index)` Inserts a given point at a specified index in this figure.
`static void` | FigureUtilities.`paintGrid(Graphics g, IFigure f, Point origin, int distanceX, int distanceY)` Helper method to paint a grid.
`void` | ScrollPane.`scrollTo(Point location)` Scrolls the Scrollpane horizontally from its left-most position by location.x pixels and vertically from its top-most position by location.y pixels.
`void` | ScalablePolygonShape.`setEnd(Point end)`
`void` | AbstractPointListShape.`setEnd(Point end)` Sets the end point of this figure
`void` | AbstractPointListShape.`setEndpoints(Point start, Point end)` Sets the points at both extremes of this figure
`void` | XYAnchor.`setLocation(Point p)` Sets the location of this anchor and notifies all the listeners of the update.
`void` | PolylineDecoration.`setLocation(Point p)`
`void` | Figure.`setLocation(Point p)`
`void` | IFigure.`setLocation(Point p)` Sets the location of this IFigure.
`void` | RotatableDecoration.`setLocation(Point p)` Sets the location of this figure.
`void` | PolygonDecoration.`setLocation(Point p)` Sets the location of this PolygonDecoration.
`void` | ScalablePolygonShape.`setPoint(Point pt, int index)`
`void` | AbstractPointListShape.`setPoint(Point pt, int index)` Sets the point at `index` to the Point `pt`.
`void` | PolylineDecoration.`setReferencePoint(Point ref)`
`void` | RotatableDecoration.`setReferencePoint(Point p)` Sets the reference point used to determine the rotation angle.
`void` | PolygonDecoration.`setReferencePoint(Point ref)` Sets the rotation of this decoration so that the decoration points toward the given reference point.
`void` | ScalablePolygonShape.`setStart(Point start)`
`void` | AbstractPointListShape.`setStart(Point start)` Sets the start point of this figure
`void` | Viewport.`setViewLocation(Point p)` Sets the location of the Viewport's view to the passed Point.
`void` | Graphics.`translate(Point pt)`

Constructors in org.eclipse.draw2d with parameters of type Point
Constructor and Description
`AbsoluteBendpoint(Point p)` Creates a new AbsoluteBendpoint at the Point p.
`XYAnchor(Point p)` Constructs an XYAnchor at the Point p.

### Uses of Point in org.eclipse.draw2d.geometry

Subclasses of Point in org.eclipse.draw2d.geometry
Modifier and Type | Class and Description
--- | ---
`class` | `PrecisionPoint`

Fields in org.eclipse.draw2d.geometry declared as Point
Modifier and Type | Field and Description
--- | ---
`static Point` | Point.`SINGLETON` A singleton for use in short calculations

Methods in org.eclipse.draw2d.geometry that return Point
Modifier and Type | Method and Description
--- | ---
`Point` | Rectangle.`getBottom()` Returns a new Point representing the middle point of the bottom side of this Rectangle.
`Point` | PrecisionRectangle.`getBottom()`
`Point` | Rectangle.`getBottomLeft()` Returns a new Point representing the bottom left point of this Rectangle.
`Point` | PrecisionRectangle.`getBottomLeft()`
`Point` | Rectangle.`getBottomRight()` Returns a new Point representing the bottom right point of this Rectangle.
`Point` | PrecisionRectangle.`getBottomRight()`
`Point` | Rectangle.`getCenter()` Returns a new point representing the center of this Rectangle.
`Point` | PrecisionRectangle.`getCenter()`
`Point` | PrecisionPoint.`getCopy()`
`Point` | Point.`getCopy()`
`Point` | PointList.`getFirstPoint()` Returns the first Point in the list.
`Point` | PointList.`getLastPoint()` Returns the last point in the list.
`Point` | Rectangle.`getLeft()` Returns a new Point representing the middle point of the left hand side of this Rectangle.
`Point` | Rectangle.`getLocation()` Returns the upper left hand corner of the rectangle.
`Point` | PointList.`getMidpoint()` Returns the midpoint of the list of Points.
`Point` | Point.`getNegated()` Creates a Point with negated x and y values.
`Point` | PointList.`getPoint(int index)` Returns the Point in the list at the specified index.
`Point` | PointList.`getPoint(Point p, int index)` Copies the x and y values at given index into a specified Point.
`Point` | Rectangle.`getRight()` Returns a new Point which represents the middle point of the right hand side of this Rectangle.
`Point` | Point.`getScaled(double factor)` Creates a new Point from this Point by scaling by the specified amount.
`Point` | Point.`getScaled(double xFactor, double yFactor)` Creates a new Point from this Point by scaling by the specified x and y factors.
`Point` | Rectangle.`getTop()` Returns a new Point which represents the middle point of the top side of this Rectangle.
`Point` | PrecisionRectangle.`getTop()`
`Point` | Rectangle.`getTopLeft()` Returns a new Point which represents the top left hand corner of this Rectangle.
`Point` | PrecisionRectangle.`getTopLeft()`
`Point` | Rectangle.`getTopRight()` Returns a new Point which represents the top right hand corner of this Rectangle.
`Point` | PrecisionRectangle.`getTopRight()`
`Point` | Transform.`getTransformed(Point p)` Returns a new transformed Point of the input Point based on the transformation values set.
`Point` | Point.`getTranslated(Dimension d)` Creates a new Point which is translated by the values of the input Dimension.
`Point` | Point.`getTranslated(double x, double y)` Creates a new Point which is translated by the specified x and y values
`Point` | Point.`getTranslated(int x, int y)` Creates a new Point which is translated by the specified x and y values
`Point` | Point.`getTranslated(Point p)` Creates a new Point which is translated by the values of the provided Point.
`Point` | Point.`getTransposed()` Creates a new Point with the transposed values of this Point.
`static Point` | Point.`max(Point p1, Point p2)` Creates a new Point representing the MAX of two provided Points.
`static Point` | Point.`min(Point p1, Point p2)` Creates a new Point representing the MIN of two provided Points.
`Point` | Point.`negate()` Negates the x and y values of this Point.
`Point` | PointList.`removePoint(int index)` Removes the point at the specified index from the PointList, and returns it.
`Point` | Point.`scale(double factor)` Scales this Point by the specified amount.
`Point` | PrecisionPoint.`scale(double xFactor, double yFactor)`
`Point` | Point.`scale(double xFactor, double yFactor)` Scales this Point by the specified values.
`Point` | PrecisionPoint.`setLocation(int x, int y)`
`Point` | Point.`setLocation(int x, int y)` Sets the location of this Point to the provided x and y locations.
`Point` | PrecisionPoint.`setLocation(Point pt)`
`Point` | Point.`setLocation(Point p)` Sets the location of this Point to the specified Point.
`Point` | PrecisionPoint.`setX(int x)`
`Point` | Point.`setX(int x)` Sets the x value of this Point to the given value.
`Point` | PrecisionPoint.`setY(int y)`
`Point` | Point.`setY(int y)` Sets the y value of this Point to the given value;
`Point` | Transposer.`t(Point p)` Returns a new transposed Point of the input Point.
`Point` | PrecisionPoint.`translate(Dimension d)`
`Point` | Point.`translate(Dimension d)` Shifts this Point by the values of the Dimension along each axis, and returns this for convenience.
`Point` | PrecisionPoint.`translate(double dx, double dy)`
`Point` | Point.`translate(double x, double y)` Shifts this Point by the values supplied along each axes, and returns this for convenience.
`Point` | PrecisionPoint.`translate(int dx, int dy)`
`Point` | Point.`translate(int dx, int dy)` Shifts this Point by the values supplied along each axes, and returns this for convenience.
`Point` | PrecisionPoint.`translate(Point p)`
`Point` | Point.`translate(Point p)` Shifts the location of this Point by the location of the input Point along each of the axes, and returns this for convenience.
`Point` | PrecisionPoint.`transpose()`
`Point` | Point.`transpose()` Transposes this object.

Methods in org.eclipse.draw2d.geometry with parameters of type Point
Modifier and Type | Method and Description
--- | ---
`void` | PointList.`addPoint(Point p)` Adds Point p to this PointList.
`boolean` | Rectangle.`contains(Point p)` Returns whether the given point is within the boundaries of this Rectangle.
`boolean` | PrecisionRectangle.`contains(Point p)`
`Dimension` | Dimension.`expand(Point p)` Deprecated. Use `Dimension.expand(int, int)` instead.
`Dimension` | PrecisionPoint.`getDifference(Point p)`
`Dimension` | Point.`getDifference(Point p)` Calculates the difference in between this Point and the one specified.
`double` | Point.`getDistance(Point p)` Calculates the distance from this Point to the one specified.
`int` | Point.`getDistance2(Point p)` Deprecated. Use `getDistance(Point)` and square the result instead.
`int` | Point.`getDistanceOrthogonal(Point p)` Deprecated. May not be guaranteed by precision subclasses and should thus not be used any more.
`Point` | PointList.`getPoint(Point p, int index)` Copies the x and y values at given index into a specified Point.
`int` | Rectangle.`getPosition(Point p)` Returns an integer which represents the position of the given point with respect to this rectangle.
`int` | Point.`getPosition(Point p)` Calculates the relative position of the specified Point to this Point.
`Point` | Transform.`getTransformed(Point p)` Returns a new transformed Point of the input Point based on the transformation values set.
`Rectangle` | Rectangle.`getTranslated(Point pt)` Returns a new Rectangle which is shifted by the position of the given Point.
`Point` | Point.`getTranslated(Point p)` Creates a new Point which is translated by the values of the provided Point.
`Rectangle` | Rectangle.`getUnion(Point p)` Returns a new Rectangle which contains both this Rectangle and the Point supplied as input.
`void` | PointList.`insertPoint(Point p, int index)` Inserts a given point at a specified index.
`static Point` | Point.`max(Point p1, Point p2)` Creates a new Point representing the MAX of two provided Points.
`static Point` | Point.`min(Point p1, Point p2)` Creates a new Point representing the MIN of two provided Points.
`Rectangle` | Rectangle.`setBounds(Point location, Dimension size)` Sets the location and size of this rectangle to the provided ones.
`Rectangle` | PrecisionRectangle.`setBounds(Point location, Dimension size)`
`Rectangle` | Rectangle.`setLocation(Point p)` Sets the location of this Rectangle to the point given as input and returns this for convenience.
`Point` | PrecisionPoint.`setLocation(Point pt)`
`Point` | Point.`setLocation(Point p)` Sets the location of this Point to the specified Point.
`Rectangle` | PrecisionRectangle.`setLocation(Point loc)`
`void` | PointList.`setPoint(Point pt, int index)` Overwrites a point at a given index in the list with the specified Point.
`Point` | Transposer.`t(Point p)` Returns a new transposed Point of the input Point.
`void` | PointList.`translate(Point pt)` Moves the origin (0,0) of the coordinate system of all the points to the Point pt.
`Rectangle` | Rectangle.`translate(Point p)` Moves this Rectangle horizontally by the x value of the given Point and vertically by the y value of the given Point, then returns this Rectangle for convenience.
`Point` | PrecisionPoint.`translate(Point p)`
`Point` | Point.`translate(Point p)` Shifts the location of this Point by the location of the input Point along each of the axes, and returns this for convenience.
`Rectangle` | PrecisionRectangle.`translate(Point p)`
`void` | Rectangle.`union(Point p)` Updates this Rectangle's bounds to the minimum size which can hold both this Rectangle and the given Point.
`void` | PrecisionRectangle.`union(Point p)`

Constructors in org.eclipse.draw2d.geometry with parameters of type Point
Constructor and Description
`Point(Point p)` Constructs a Point at the same location as the given Point.
`PrecisionPoint(Point p)` Constructor for PrecisionPoint.
`PrecisionRectangle(Point p, Dimension d)` Constructs a new PrecisionRectangle from a given Point and a Dimension
`Ray(Point p)` Deprecated. Constructs a Ray pointed in the direction specified by a Point.
`Ray(Point start, Point end)` Deprecated. Constructs a Ray representing the direction and magnitude between to provided Points.
`Rectangle(Point p, Dimension size)` Constructs a Rectangle given a location and size.
`Rectangle(Point p1, Point p2)` Constructs the smallest Rectangle that contains the specified Points.

### Uses of Point in org.eclipse.draw2d.graph

Fields in org.eclipse.draw2d.graph declared as Point
Modifier and Type | Field and Description
--- | ---
`Point` | Edge.`end` Deprecated. use `Edge.getPoints()`
`Point` | Edge.`start` Deprecated. use `Edge.getPoints()`

Methods in org.eclipse.draw2d.graph that return Point
Modifier and Type | Method and Description
--- | ---
`Point` | Path.`getEndPoint()` Returns the end point for this path
`Point` | Path.`getStartPoint()` Returns the start point for this path

Methods in org.eclipse.draw2d.graph with parameters of type Point
Modifier and Type | Method and Description
--- | ---
`void` | Path.`setEndPoint(Point end)` Sets the end point for this path to the given point.
`void` | Path.`setStartPoint(Point start)` Sets the start point for this path to the given point.

Constructors in org.eclipse.draw2d.graph with parameters of type Point
Constructor and Description
`Path(Point start, Point end)` Constructs a new path with the given data, start and end point.

### Uses of Point in org.eclipse.draw2d.text

Methods in org.eclipse.draw2d.text with parameters of type Point
Modifier and Type | Method and Description
--- | ---
`int` | TextFlow.`getNextOffset(Point p, boolean down, int[] trailing)` Returns the offset nearest the given point either up or down one line.
`int` | TextFlow.`getOffset(Point p, int[] trailing, Dimension proximity)` Returns the offset of the character directly below or nearest the given location.