Uses of Class
org.eclipse.draw2d.geometry.Point
Packages that use Point
Package
Description
Primary package containing general interfaces and implementation classes.
Types representing or manipulating geometric values, such as Points, Dimensions, etc.
Stand-alone algorithms related to Graph Drawing.
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.draw2dModifier and TypeClassDescriptionclass
AbsoluteBendpoint is a Bendpoint that defines its location simply as its X and Y coordinates.Fields in org.eclipse.draw2d declared as PointMethods in org.eclipse.draw2d that return PointModifier and TypeMethodDescriptionAbstractPointListShape.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.AbsoluteBendpoint.getLocation()
Bendpoint.getLocation()
Returns the location of the bendpoint relative to the connection.ChopboxAnchor.getLocation
(Point reference) Gets a Rectangle fromChopboxAnchor.getBox()
and returns the Point where a line from the center of the Rectangle to the Point reference intersects the Rectangle.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.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.MouseEvent.getLocation()
RelativeBendpoint.getLocation()
Calculates and returns this Bendpoint's new location.RoundedRectangleAnchor.getLocation
(Point ref) Calculates the position with ChopboxAnchor#getLocation() and if the anchor is not at the rounded corners, the result is returned.XYAnchor.getLocation
(Point reference) Returns the location of this anchor relative to the reference point given in as input.Returns the point (0,0) as the origin.Returns the origin for the given figure.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.ChopboxAnchor.getReferencePoint()
Returns the anchor's reference 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.XYAnchor.getReferencePoint()
Returns the point which is used as the reference by this connection anchor.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.Viewport.getViewLocation()
Returns the current location of this Viewport.Methods in org.eclipse.draw2d with parameters of type PointModifier and TypeMethodDescriptionvoid
Adds the passed point to this figure.void
final boolean
Figure.containsPoint
(Point p) This method is final.boolean
IFigure.containsPoint
(Point p) Returnstrue
if the Point p is contained within this IFigure's bounds.final void
Draws the given image at a point.final void
final void
Graphics.drawString
(String s, Point p) final void
final void
Draws a string using the specified styles.final void
Graphics.fillString
(String s, Point p) final void
final IFigure
Figure.findFigureAt
(Point pt) 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.ChopboxAnchor.getLocation
(Point reference) Gets a Rectangle fromChopboxAnchor.getBox()
and returns the Point where a line from the center of the Rectangle to the Point reference intersects the Rectangle.ConnectionAnchor.getLocation
(Point reference) Returns the location where the Connection should be anchored in absolute coordinates.EllipseAnchor.getLocation
(Point reference) Returns a point on the ellipse (defined by the owner's bounding box) where the connection should be anchored.RoundedRectangleAnchor.getLocation
(Point ref) Calculates the position with ChopboxAnchor#getLocation() and if the anchor is not at the rounded corners, the result is returned.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
Helper method to paint a grid.void
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
Sets the end point of this figurevoid
void
AbstractPointListShape.setEndpoints
(Point start, Point end) Sets the points at both extremes of this figurevoid
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
Sets the point atindex
to the Pointpt
.void
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
Sets the start point of this figurevoid
void
Viewport.setViewLocation
(Point p) Sets the location of the Viewport's view to the passed Point.final void
Constructors in org.eclipse.draw2d with parameters of type PointModifierConstructorDescriptionCreates a new AbsoluteBendpoint at the Point p.Constructs an XYAnchor at the Point p. -
Uses of Point in org.eclipse.draw2d.geometry
Subclasses of Point in org.eclipse.draw2d.geometryFields in org.eclipse.draw2d.geometry declared as PointModifier and TypeFieldDescriptionstatic final Point
Point.SINGLETON
A singleton for use in short calculationsMethods in org.eclipse.draw2d.geometry that return PointModifier and TypeMethodDescriptionPrecisionRectangle.getBottom()
Rectangle.getBottom()
Returns a new Point representing the middle point of the bottom side of this Rectangle.PrecisionRectangle.getBottomLeft()
Rectangle.getBottomLeft()
Returns a new Point representing the bottom left point of this Rectangle.PrecisionRectangle.getBottomRight()
Rectangle.getBottomRight()
Returns a new Point representing the bottom right point of this Rectangle.PrecisionRectangle.getCenter()
Rectangle.getCenter()
Returns a new point representing the center of this Rectangle.Point.getCopy()
PrecisionPoint.getCopy()
PointList.getFirstPoint()
Returns the first Point in the list.PointList.getLastPoint()
Returns the last point in the list.Rectangle.getLeft()
Returns a new Point representing the middle point of the left hand side of this Rectangle.Rectangle.getLocation()
Returns the upper left hand corner of the rectangle.PointList.getMidpoint()
Returns the midpoint of the list of Points.Point.getNegated()
Creates a Point with negated x and y values.PointList.getPoint
(int index) Returns the Point in the list at the specified index.Copies the x and y values at given index into a specified Point.Rectangle.getRight()
Returns a new Point which represents the middle point of the right hand side of this Rectangle.Point.getScaled
(double factor) Creates a new Point from this Point by scaling by the specified amount.Point.getScaled
(double xFactor, double yFactor) Creates a new Point from this Point by scaling by the specified x and y factors.PrecisionRectangle.getTop()
Rectangle.getTop()
Returns a new Point which represents the middle point of the top side of this Rectangle.PrecisionRectangle.getTopLeft()
Rectangle.getTopLeft()
Returns a new Point which represents the top left hand corner of this Rectangle.PrecisionRectangle.getTopRight()
Rectangle.getTopRight()
Returns a new Point which represents the top right hand corner of this Rectangle.Transform.getTransformed
(Point p) Returns a new transformed Point of the input Point based on the transformation values set.Point.getTranslated
(double x, double y) Creates a new Point which is translated by the specified x and y valuesPoint.getTranslated
(int x, int y) Creates a new Point which is translated by the specified x and y valuesPoint.getTranslated
(Dimension d) Creates a new Point which is translated by the values of the input Dimension.Point.getTranslated
(Point p) Creates a new Point which is translated by the values of the provided Point.Point.getTransposed()
Creates a new Point with the transposed values of this Point.static Point
Creates a new Point representing the MAX of two provided Points.static Point
Creates a new Point representing the MIN of two provided Points.Point.negate()
Negates the x and y values of this Point.PointList.removePoint
(int index) Removes the point at the specified index from the PointList, and returns it.Point.scale
(double factor) Scales this Point by the specified amount.Point.scale
(double xFactor, double yFactor) Scales this Point by the specified values.PrecisionPoint.scale
(double xFactor, double yFactor) Point.setLocation
(int x, int y) Sets the location of this Point to the provided x and y locations.Point.setLocation
(Point p) Sets the location of this Point to the specified Point.PrecisionPoint.setLocation
(int x, int y) PrecisionPoint.setLocation
(Point pt) Point.setX
(int x) Sets the x value of this Point to the given value.PrecisionPoint.setX
(int x) Point.setY
(int y) Sets the y value of this Point to the given value;PrecisionPoint.setY
(int y) Returns a new transposed Point of the input Point.Point.translate
(double x, double y) Shifts this Point by the values supplied along each axes, and returns this for convenience.Point.translate
(int dx, int dy) Shifts this Point by the values supplied along each axes, and returns this for convenience.Shifts this Point by the values of the Dimension along each axis, and returns this for convenience.Shifts the location of this Point by the location of the input Point along each of the axes, and returns this for convenience.PrecisionPoint.translate
(double dx, double dy) PrecisionPoint.translate
(int dx, int dy) Point.transpose()
Transposes this object.PrecisionPoint.transpose()
Methods in org.eclipse.draw2d.geometry with parameters of type PointModifier and TypeMethodDescriptionvoid
Adds Point p to this PointList.boolean
boolean
Returns whether the given point is within the boundaries of this Rectangle.Deprecated.Point.getDifference
(Point p) Calculates the difference in between this Point and the one specified.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.UsegetDistance(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.Copies the x and y values at given index into a specified Point.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.Transform.getTransformed
(Point p) Returns a new transformed Point of the input Point based on the transformation values set.Point.getTranslated
(Point p) Creates a new Point which is translated by the values of the provided Point.Rectangle.getTranslated
(Point pt) Returns a new Rectangle which is shifted by the position of the given Point.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
Creates a new Point representing the MAX of two provided Points.static Point
Creates a new Point representing the MIN of two provided Points.default void
Translatable.performTranslate
(Point point) Translates this object horizontally bypoint.x
and vertically bypoint.y
.Sets the location and size of this rectangle to the provided ones.Point.setLocation
(Point p) Sets the location of this Point to the specified Point.PrecisionPoint.setLocation
(Point pt) PrecisionRectangle.setLocation
(Point loc) Rectangle.setLocation
(Point p) Sets the location of this Rectangle to the point given as input and returns this for convenience.void
Overwrites a point at a given index in the list with the specified Point.Returns a new transposed Point of the input Point.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
Moves the origin (0,0) of the coordinate system of all the points to the Point pt.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
void
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 PointModifierConstructorDescriptionConstructs a Point at the same location as the given Point.Constructor for PrecisionPoint.PrecisionRectangle
(Point p, Dimension d) Constructs a new PrecisionRectangle from a given Point and a DimensionDeprecated.Constructs a Ray pointed in the direction specified by a Point.Deprecated.Constructs a Ray representing the direction and magnitude between to provided Points.Constructs a Rectangle given a location and size.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 PointModifier and TypeFieldDescriptionEdge.end
Deprecated.useEdge.getPoints()
Edge.start
Deprecated.useEdge.getPoints()
Methods in org.eclipse.draw2d.graph that return PointModifier and TypeMethodDescriptionPath.getEndPoint()
Returns the end point for this pathPath.getStartPoint()
Returns the start point for this pathMethods in org.eclipse.draw2d.graph with parameters of type PointModifier and TypeMethodDescriptionvoid
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 -
Uses of Point in org.eclipse.draw2d.text
Methods in org.eclipse.draw2d.text with parameters of type PointModifier and TypeMethodDescriptionint
TextFlow.getNextOffset
(Point p, boolean down, int[] trailing) Returns the offset nearest the given point either up or down one line.int
Returns the offset of the character directly below or nearest the given location.
Dimension.expand(int, int)
instead.