Eclipse Draw2d 3.3

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

Packages that use Point
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
`class` `AbsoluteBendpoint` AbsoluteBendpoint is a Bendpoint that defines its location simply as its X and Y coordinates.

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

Methods in org.eclipse.draw2d with parameters of type Point
`Point` `XYAnchor.getLocation(Point reference)` Returns the location of this anchor relative to the reference point given in as input.
`void` `XYAnchor.setLocation(Point p)` Sets the location of this anchor and notifies all the listeners of the update.
`void` `Viewport.setViewLocation(Point p)` Sets the location of the Viewport's view to the passed Point.
`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` `RotatableDecoration.setLocation(Point p)` Sets the location of this figure.
`void` `RotatableDecoration.setReferencePoint(Point p)` Sets the reference point used to determine the rotation angle.
`void` `PolylineDecoration.setLocation(Point p)`
`void` `PolylineDecoration.setReferencePoint(Point ref)`
`void` `Polyline.addPoint(Point pt)` Adds the passed point to the Polyline.
`void` `Polyline.insertPoint(Point pt, int index)` Inserts a given point at a specified index in the Polyline.
`void` `Polyline.setEnd(Point end)` Sets the end point of the Polyline
`void` `Polyline.setEndpoints(Point start, Point end)` Sets the points at both extremes of the Polyline
`void` `Polyline.setPoint(Point pt, int index)` Sets the point at `index` to the Point `pt`.
`void` `Polyline.setStart(Point start)` Sets the start point of the Polyline
`void` `PolygonDecoration.setLocation(Point p)` Sets the location of this PolygonDecoration.
`void` `PolygonDecoration.setReferencePoint(Point ref)` Sets the rotation of this decoration so that the decoration points toward the given reference point.
`protected Ray` `ManhattanConnectionRouter.getDirection(Rectangle r, Point p)` Returns the direction the point p is in relation to the given rectangle.
`boolean` `IFigure.containsPoint(Point p)` Returns `true` if the Point p is contained within this IFigure's bounds.
`IFigure` `IFigure.findFigureAt(Point p)` Returns the IFigure at the specified location.
`void` `IFigure.setLocation(Point p)` Sets the location of this IFigure.
`void` `Graphics.drawImage(Image image, Point p)` Draws the given image at a point.
`void` `Graphics.drawLine(Point p1, Point p2)`
`void` `Graphics.drawString(String s, Point p)`
`void` `Graphics.drawText(String s, Point p)`
`void` `Graphics.drawText(String s, Point p, int style)` Draws a string using the specified styles.
`void` `Graphics.fillString(String s, Point p)`
`void` `Graphics.fillText(String s, Point p)`
`void` `Graphics.translate(Point pt)`
`static void` `FigureUtilities.paintGrid(Graphics g, IFigure f, Point origin, int distanceX, int distanceY)` Helper method to paint a grid.
`boolean` `Figure.containsPoint(Point p)` This method is final.
`IFigure` `Figure.findFigureAt(Point pt)`
`void` `Figure.setLocation(Point p)`
`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` `ConnectionAnchor.getLocation(Point reference)` Returns the location where the Connection should be anchored in absolute coordinates.
`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.
`protected Rectangle` `AbstractLocator.getNewBounds(Dimension size, Point center)` Recalculate the location of the figure according to its desired position relative to the center point.

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

Uses of Point in org.eclipse.draw2d.geometry

Subclasses of Point in org.eclipse.draw2d.geometry
`class` `PrecisionPoint`

Fields in org.eclipse.draw2d.geometry declared as Point
`static Point` `Point.SINGLETON` A singleton for use in short calculations

Methods in org.eclipse.draw2d.geometry that return Point
`Point` `Transposer.t(Point p)` Returns a new transposed Point of the input Point.
`Point` `Transform.getTransformed(Point p)` Returns a new transformed Point of the input Point based on the transformation values set.
`Point` `Rectangle.getBottom()` Returns a new Point representing the middle point of the bottom side of this Rectangle.
`Point` `Rectangle.getBottomLeft()` Returns a new Point representing the bottom left point of this Rectangle.
`Point` `Rectangle.getBottomRight()` Returns a new Point representing the bottom right point of this Rectangle.
`Point` `Rectangle.getCenter()` Returns a new point representing the center of this Rectangle.
`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` `Rectangle.getRight()` Returns a new Point which represents the middle point of the right hand side of this Rectangle.
`Point` `Rectangle.getTop()` Returns a new Point which represents the middle point of the top side of this Rectangle.
`Point` `Rectangle.getTopLeft()` Returns a new Point which represents the top left hand corner of this Rectangle.
`Point` `Rectangle.getTopRight()` Returns a new Point which represents the top right hand corner of this Rectangle.
`Point` `PrecisionRectangle.getCenter()` Returns the precise geometric centre of the rectangle
`Point` `PrecisionPoint.getCopy()`
`Point` `PrecisionPoint.setLocation(Point pt)`
`Point` `PointList.getFirstPoint()` Returns the first Point in the list.
`Point` `PointList.getLastPoint()` Returns the last point in the list.
`Point` `PointList.getMidpoint()` Returns the midpoint of the list of Points.
`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` `PointList.removePoint(int index)` Removes the point at the specified index from the PointList, and returns it.
`Point` `Point.getCopy()`
`Point` `Point.getNegated()` Creates a Point with negated x and y values.
`Point` `Point.getScaled(double amount)` Creates a new Point from this Point by scaling by the specified amount.
`Point` `Point.getTranslated(Dimension delta)` Creates a new Point which is translated by the values of the input Dimension.
`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 pt)` 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` `Point.scale(double amount)` Scales this Point by the specified amount.
`Point` `Point.scale(double xAmount, double yAmount)` Scales this Point by the specified values.
`Point` `Point.setLocation(int x, int y)` Sets the location of this Point to the provided x and y locations.
`Point` `Point.setLocation(Point pt)` Sets the location of this Point to the specified 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.
`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(int dx, int dy)` Shifts this Point by the values supplied along each axes, and returns this for convenience.
`Point` `Point.transpose()` Transposes this object.

Methods in org.eclipse.draw2d.geometry with parameters of type Point
`Point` `Transposer.t(Point p)` Returns a new transposed Point of the input Point.
`Point` `Transform.getTransformed(Point p)` Returns a new transformed Point of the input Point based on the transformation values set.
`boolean` `Rectangle.contains(Point pt)` Returns whether the given point is within the boundaries of this Rectangle.
`int` `Rectangle.getPosition(Point pt)` Returns an integer which represents the position of the given point with respect to this rectangle.
`Rectangle` `Rectangle.getTranslated(Point pt)` Returns a new Rectangle which is shifted by the position of the given Point.
`Rectangle` `Rectangle.setLocation(Point p)` Sets the location of this Rectangle to the point given as input and returns this for convenience.
`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` `Rectangle.union(Point p)` Updates this Rectangle's bounds to the minimum size which can hold both this Rectangle and the given Point.
`Rectangle` `PrecisionRectangle.translate(Point p)`
`void` `PrecisionRectangle.union(Point p)`
`Rectangle` `PrecisionRectangle.setLocation(Point loc)`
`boolean` `PrecisionRectangle.contains(Point p)`
`Point` `PrecisionPoint.setLocation(Point pt)`
`void` `PointList.addPoint(Point p)` Adds Point p to this PointList.
`Point` `PointList.getPoint(Point p, int index)` Copies the x and y values at given index into a specified Point.
`void` `PointList.insertPoint(Point p, int index)` Inserts a given point at a specified index.
`void` `PointList.setPoint(Point pt, int index)` Overwrites a point at a given index in the list with the specified Point.
`void` `PointList.translate(Point pt)` Moves the origin (0,0) of the coordinate system of all the points to the Point pt.
`Dimension` `Point.getDifference(Point pt)` Calculates the difference in between this Point and the one specified.
`double` `Point.getDistance(Point pt)` Calculates the distance from this Point to the one specified.
`int` `Point.getDistance2(Point pt)` Calculates the distance squared between this Point and the one specified.
`int` `Point.getDistanceOrthogonal(Point pt)` Calculates the orthogonal distance to the specified point.
`int` `Point.getPosition(Point p)` Calculates the relative position of the specified Point to this Point.
`Point` `Point.getTranslated(Point pt)` Creates a new Point which is translated by the values of the provided 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.setLocation(Point pt)` Sets the location of this Point to the specified 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.
`Dimension` `Dimension.expand(Point pt)` Expands the size of this Dimension by the specified amound.

Constructors in org.eclipse.draw2d.geometry with parameters of type Point
`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.
`Ray(Point p)` Constructs a Ray pointed in the direction specified by a Point.
`Ray(Point start, Point end)` Constructs a Ray representing the direction and magnitude between to provided Points.
`PrecisionPoint(Point copy)` Constructor for PrecisionPoint.
`Point(Point copy)` Constructs a Point at the same location as the given Point.

Uses of Point in org.eclipse.draw2d.graph

Fields in org.eclipse.draw2d.graph declared as Point
`Point` `Edge.end` Deprecated. use `Edge.getPoints()`
`Point` `Edge.start` Deprecated. use `Edge.getPoints()`

Methods in org.eclipse.draw2d.graph that return Point
`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
`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
`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
`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.

Eclipse Draw2d 3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.