|
Eclipse Draw2d 2.1 |
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Point | |
org.eclipse.draw2d | Most of the Draw2d classes and interfaces reside in this base package. |
org.eclipse.draw2d.geometry | This package contains useful geometry related classes, such as Rectangle and Point. |
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 a reference point 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.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 srcImage,
Point p)
|
void |
Graphics.drawLine(Point p1,
Point p2)
|
void |
Graphics.drawLine(Point p1,
Point p2)
|
void |
Graphics.drawString(String s,
Point p)
|
void |
Graphics.drawText(String s,
Point p)
|
void |
Graphics.fillString(String s,
Point p)
|
void |
Graphics.fillText(String s,
Point p)
|
void |
Graphics.translate(Point pt)
|
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 |
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)
|
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.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. |
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. |
|
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. |
|
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 which is at the same location as the specified Point. |
|
Eclipse Draw2d 2.1 |
||||||||||
PREV NEXT | FRAMES NO FRAMES |