# 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
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
Description
`protected Point`
ScrollBar.ThumbDragger.`start`
Methods in org.eclipse.draw2d that return Point
Modifier and Type
Method
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`
AbsoluteBendpoint.`getLocation()`
`Point`
Bendpoint.`getLocation()`
Returns the location of the bendpoint relative to the connection.
`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.
`protected Point`
ConnectionLocator.`getLocation(PointList points)`
Returns a point from the passed PointList, dependent on ConnectionLocator's alignment.
`Point`
EllipseAnchor.`getLocation(Point reference)`
Returns a point on the ellipse (defined by the owner's bounding box) where the connection should be anchored.
`final Point`
Figure.`getLocation()`
Returns the top-left corner of this Figure's bounds.
`default Point`
IFigure.`getLocation()`
Returns the top-left corner of this Figure's bounds.
`Point`
MouseEvent.`getLocation()`
`Point`
RelativeBendpoint.`getLocation()`
Calculates and returns this Bendpoint's new location.
`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.
`Point`
XYAnchor.`getLocation(Point reference)`
Returns the location of this anchor relative to the reference point given in as input.
`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.
`Point`
AbstractConnectionAnchor.`getReferencePoint()`
Returns the point which is used as the reference by this AbstractConnectionAnchor.
`protected abstract Point`
AbstractLocator.`getReferencePoint()`
Returns the reference point in absolute coordinates used to calculate the location.
`protected Point`
BendpointLocator.`getReferencePoint()`
Returns reference point associated with the BendpointLocator.
`Point`
ChopboxAnchor.`getReferencePoint()`
Returns the anchor's reference point.
`Point`
ConnectionAnchor.`getReferencePoint()`
Returns the reference point for this anchor in absolute coordinates.
`protected Point`
ConnectionLocator.`getReferencePoint()`
Returns ConnectionLocator's reference point in absolute coordinates.
`protected Point`
MidpointLocator.`getReferencePoint()`
Returns the point of reference associated with this locator.
`Point`
XYAnchor.`getReferencePoint()`
Returns the point which is used as the reference by this connection anchor.
`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
Description
`void`
AbstractPointListShape.`addPoint(Point pt)`
Adds the passed point to this figure.
`void`
ScalablePolygonShape.`addPoint(Point pt)`
`final 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.
`final void`
Graphics.`drawImage(Image image, Point p)`
Draws the given image at a point.
`final void`
Graphics.`drawLine(Point p1, Point p2)`
`final void`
Graphics.`drawString(String s, Point p)`
`final void`
Graphics.`drawText(String s, Point p)`
`final void`
Graphics.`drawText(String s, Point p, int style)`
Draws a string using the specified styles.
`final void`
Graphics.`fillString(String s, Point p)`
`final void`
Graphics.`fillText(String s, Point p)`
`final IFigure`
Figure.`findFigureAt(Point pt)`
`IFigure`
IFigure.`findFigureAt(Point p)`
Returns the IFigure at the specified location.
`protected Vector`
ManhattanConnectionRouter.`getDirection(Rectangle r, Point p)`
Returns the direction the point p is in relation to the given rectangle.
`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`
EllipseAnchor.`getLocation(Point reference)`
Returns a point on the ellipse (defined by the owner's bounding box) where the connection should be anchored.
`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.
`Point`
XYAnchor.`getLocation(Point reference)`
Returns the location of this anchor relative to the reference point given in as input.
`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`
AbstractPointListShape.`insertPoint(Point pt, int index)`
Inserts a given point at a specified index in this figure.
`void`
ScalablePolygonShape.`insertPoint(Point pt, int index)`
`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`
AbstractPointListShape.`setEnd(Point end)`
Sets the end point of this figure
`void`
ScalablePolygonShape.`setEnd(Point end)`
`void`
AbstractPointListShape.`setEndpoints(Point start, Point end)`
Sets the points at both extremes of this figure
`void`
Figure.`setLocation(Point p)`
`void`
IFigure.`setLocation(Point p)`
Sets the location of this IFigure.
`void`
PolygonDecoration.`setLocation(Point p)`
Sets the location of this PolygonDecoration.
`void`
PolylineDecoration.`setLocation(Point p)`
`void`
RotatableDecoration.`setLocation(Point p)`
Sets the location of this figure.
`void`
XYAnchor.`setLocation(Point p)`
Sets the location of this anchor and notifies all the listeners of the update.
`void`
AbstractPointListShape.`setPoint(Point pt, int index)`
Sets the point at `index` to the Point `pt`.
`void`
ScalablePolygonShape.`setPoint(Point pt, int index)`
`void`
PolygonDecoration.`setReferencePoint(Point ref)`
Sets the rotation of this decoration so that the decoration points toward the given reference point.
`void`
PolylineDecoration.`setReferencePoint(Point ref)`
`void`
RotatableDecoration.`setReferencePoint(Point p)`
Sets the reference point used to determine the rotation angle.
`void`
AbstractPointListShape.`setStart(Point start)`
Sets the start point of this figure
`void`
ScalablePolygonShape.`setStart(Point start)`
`void`
Viewport.`setViewLocation(Point p)`
Sets the location of the Viewport's view to the passed Point.
`final void`
Graphics.`translate(Point pt)`
Constructors in org.eclipse.draw2d with parameters of type Point
Modifier
Constructor
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
Description
`class`
`PrecisionPoint`
Fields in org.eclipse.draw2d.geometry declared as Point
Modifier and Type
Field
Description
`static final Point`
Point.`SINGLETON`
A singleton for use in short calculations
Methods in org.eclipse.draw2d.geometry that return Point
Modifier and Type
Method
Description
`Point`
PrecisionRectangle.`getBottom()`
`Point`
Rectangle.`getBottom()`
Returns a new Point representing the middle point of the bottom side of this Rectangle.
`Point`
PrecisionRectangle.`getBottomLeft()`
`Point`
Rectangle.`getBottomLeft()`
Returns a new Point representing the bottom left point of this Rectangle.
`Point`
PrecisionRectangle.`getBottomRight()`
`Point`
Rectangle.`getBottomRight()`
Returns a new Point representing the bottom right point of this Rectangle.
`Point`
PrecisionRectangle.`getCenter()`
`Point`
Rectangle.`getCenter()`
Returns a new point representing the center of this Rectangle.
`Point`
Point.`getCopy()`
`Point`
PrecisionPoint.`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`
PrecisionPointList.`getPoint(int index)`
`Point`
PrecisionPointList.`getPoint(Point point, int index)`
`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`
PrecisionRectangle.`getTop()`
`Point`
Rectangle.`getTop()`
Returns a new Point which represents the middle point of the top side of this Rectangle.
`Point`
PrecisionRectangle.`getTopLeft()`
`Point`
Rectangle.`getTopLeft()`
Returns a new Point which represents the top left hand corner of this Rectangle.
`Point`
PrecisionRectangle.`getTopRight()`
`Point`
Rectangle.`getTopRight()`
Returns a new Point which represents the top right hand corner of this Rectangle.
`Point`
Transform.`getTransformed(Point p)`
Returns a new transformed Point of the input Point based on the transformation values set.
`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(Dimension d)`
Creates a new Point which is translated by the values of the input Dimension.
`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`
PrecisionPointList.`removePoint(int index)`
`Point`
Point.`scale(double factor)`
Scales this Point by the specified amount.
`Point`
Point.`scale(double xFactor, double yFactor)`
Scales this Point by the specified values.
`Point`
PrecisionPoint.`scale(double xFactor, double yFactor)`
`Point`
Point.`setLocation(int x, int y)`
Sets the location of this Point to the provided x and y locations.
`Point`
Point.`setLocation(Point p)`
Sets the location of this Point to the specified Point.
`Point`
PrecisionPoint.`setLocation(int x, int y)`
`Point`
PrecisionPoint.`setLocation(Point pt)`
`Point`
Point.`setX(int x)`
Sets the x value of this Point to the given value.
`Point`
PrecisionPoint.`setX(int x)`
`Point`
Point.`setY(int y)`
Sets the y value of this Point to the given value;
`Point`
PrecisionPoint.`setY(int y)`
`Point`
Transposer.`t(Point p)`
Returns a new transposed Point of the input Point.
`Point`
Point.`translate(double x, double y)`
Shifts this Point by the values supplied along each axes, and returns this for convenience.
`Point`
Point.`translate(int dx, int dy)`
Shifts this Point by the values supplied along each axes, and returns this for convenience.
`Point`
Point.`translate(Dimension d)`
Shifts this Point by the values of the Dimension along each axis, and returns this for convenience.
`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.`translate(double dx, double dy)`
`Point`
PrecisionPoint.`translate(int dx, int dy)`
`Point`
PrecisionPoint.`translate(Dimension d)`
`Point`
PrecisionPoint.`translate(Point p)`
`Point`
Point.`transpose()`
Transposes this object.
`Point`
PrecisionPoint.`transpose()`
Methods in org.eclipse.draw2d.geometry with parameters of type Point
Modifier and Type
Method
Description
`void`
PointList.`addPoint(Point p)`
Adds Point p to this PointList.
`void`
PrecisionPointList.`addPoint(Point point)`
`boolean`
PrecisionRectangle.`contains(Point p)`
`boolean`
Rectangle.`contains(Point p)`
Returns whether the given point is within the boundaries of this Rectangle.
`Dimension`
Dimension.`expand(Point p)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `Dimension.expand(int, int)` instead.
`Dimension`
Point.`getDifference(Point p)`
Calculates the difference in between this Point and the one specified.
`Dimension`
PrecisionPoint.`getDifference(Point p)`
`double`
Point.`getDistance(Point p)`
Calculates the distance from this Point to the one specified.
`int`
Point.`getDistance2(Point p)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `getDistanceSquared(Point)`.
`int`
Point.`getDistanceOrthogonal(Point p)`
Calculates the orthogonal distance to the specified point.
`int`
PrecisionPoint.`getDistanceOrthogonal(Point p)`
provide a precision version of org.eclipse.draw2d.geometry.Point#getDistanceOrthogonal(org.eclipse.draw2d.geometry.Point)
`int`
Point.`getDistanceSquared(Point p)`
Calculates the distance squared between this Point and the one specified.
`int`
PrecisionPoint.`getDistanceSquared(Point p)`
provide a precision version of org.eclipse.draw2d.geometry.Point#getDistanceSquared(org.eclipse.draw2d.geometry.Point)
`Point`
PointList.`getPoint(Point p, int index)`
Copies the x and y values at given index into a specified Point.
`Point`
PrecisionPointList.`getPoint(Point point, int index)`
`int`
Point.`getPosition(Point p)`
Calculates the relative position of the specified Point to this Point.
`int`
Rectangle.`getPosition(Point p)`
Returns an integer which represents the position of the given point with respect to this rectangle.
`Point`
Transform.`getTransformed(Point p)`
Returns a new transformed Point of the input Point based on the transformation values set.
`Point`
Point.`getTranslated(Point p)`
Creates a new Point which is translated by the values of the provided Point.
`Rectangle`
Rectangle.`getTranslated(Point pt)`
Returns a new Rectangle which is shifted by the position of the given 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.
`void`
PrecisionPointList.`insertPoint(Point p, int 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.
`default void`
Translatable.`performTranslate(Point point)`
Translates this object horizontally by `point.x` and vertically by `point.y`.
`Rectangle`
PrecisionRectangle.`setBounds(Point location, Dimension size)`
`Rectangle`
Rectangle.`setBounds(Point location, Dimension size)`
Sets the location and size of this rectangle to the provided ones.
`Point`
Point.`setLocation(Point p)`
Sets the location of this Point to the specified Point.
`Point`
PrecisionPoint.`setLocation(Point pt)`
`Rectangle`
PrecisionRectangle.`setLocation(Point loc)`
`Rectangle`
Rectangle.`setLocation(Point p)`
Sets the location of this Rectangle to the point given as input and returns this for convenience.
`void`
PointList.`setPoint(Point pt, int index)`
Overwrites a point at a given index in the list with the specified Point.
`void`
PrecisionPointList.`setPoint(Point point, int index)`
`Point`
Transposer.`t(Point p)`
Returns a new transposed Point of the input Point.
`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.
`final void`
PointList.`translate(Point pt)`
Moves the origin (0,0) of the coordinate system of all the points to the Point pt.
`Point`
PrecisionPoint.`translate(Point p)`
`Rectangle`
PrecisionRectangle.`translate(Point p)`
`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.
`void`
PrecisionRectangle.`union(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.
Constructors in org.eclipse.draw2d.geometry with parameters of type Point
Modifier
Constructor
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, for removal: This API element is subject to removal in a future version.
Constructs a Ray pointed in the direction specified by a Point.
``
`Ray(Point start, Point end)`
Deprecated, for removal: This API element is subject to removal in a future version.
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.
``
`Vector(Point p)`
Constructs a Vector pointed in the direction specified by a Point.
``
`Vector(Point start, Point end)`
Constructs a Vector representing the direction and magnitude between to provided Points.

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

Fields in org.eclipse.draw2d.graph declared as Point
Modifier and Type
Field
Description
`Point`
Edge.`end`
Deprecated, for removal: This API element is subject to removal in a future version.
use `Edge.getPoints()`.
`Point`
Edge.`start`
Deprecated, for removal: This API element is subject to removal in a future version.
use `Edge.getPoints()`.
Methods in org.eclipse.draw2d.graph that return Point
Modifier and Type
Method
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
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
Modifier
Constructor
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
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.