Package org.eclipse.draw2d
Class AbsoluteBendpoint
java.lang.Object
org.eclipse.draw2d.geometry.Point
org.eclipse.draw2d.AbsoluteBendpoint
- All Implemented Interfaces:
Serializable
,Cloneable
,Bendpoint
,Translatable
AbsoluteBendpoint is a Bendpoint that defines its location simply as its X
and Y coordinates. It is used by bendable
Connections
.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAbsoluteBendpoint
(int x, int y) Creates a new AbsoluteBendpoint at the Point (x,y).Creates a new AbsoluteBendpoint at the Point p. -
Method Summary
Modifier and TypeMethodDescriptionReturns the location of the bendpoint relative to the connection.Methods inherited from class org.eclipse.draw2d.geometry.Point
equals, equals, getCopy, getDifference, getDistance, getDistance2, getDistanceOrthogonal, getNegated, getPosition, getScaled, getScaled, getSWTPoint, getTranslated, getTranslated, getTranslated, getTranslated, getTransposed, hashCode, max, min, negate, performScale, performTranslate, preciseX, preciseY, scale, scale, setLocation, setLocation, setX, setY, toString, translate, translate, translate, translate, transpose, x, y
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.draw2d.geometry.Translatable
performTranslate, performTranslate, performTranslate
-
Constructor Details
-
AbsoluteBendpoint
Creates a new AbsoluteBendpoint at the Point p.- Parameters:
p
- The absolute location of the bendpoint- Since:
- 2.0
-
AbsoluteBendpoint
public AbsoluteBendpoint(int x, int y) Creates a new AbsoluteBendpoint at the Point (x,y).- Parameters:
x
- The X coordinatey
- The Y coordinate- Since:
- 2.0
-
-
Method Details
-
getLocation
Description copied from interface:Bendpoint
Returns the location of the bendpoint relative to the connection. The returned value may be by reference. The caller should NOT modify the returned value.- Specified by:
getLocation
in interfaceBendpoint
- Returns:
- the location of the bendpoint relative to the Connection
- See Also:
-