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.
|
Modifier and Type | Field and Description |
---|---|
static PointList |
PolygonDecoration.INVERTED_TRIANGLE_TIP
Template for a triangle that points to the left when the rotation angle
is 0
|
protected PointList |
Triangle.triangle
The points of the triangle.
|
static PointList |
PolylineDecoration.TRIANGLE_TIP
A triangle template
|
static PointList |
PolygonDecoration.TRIANGLE_TIP
Template for a triangle that points to the right when the rotation angle
is 0
|
Modifier and Type | Method and Description |
---|---|
protected PointList |
ViewportAwareConnectionLayerClippingStrategy.getAbsolutePointsAsCopy(Connection connection)
Returns the connection's points in absolute coordinates.
|
PointList |
PolylineDecoration.getPoints() |
PointList |
AbstractPointListShape.getPoints()
Returns the points in this figure by reference.
|
PointList |
Connection.getPoints()
Returns the PointList containing the Points that make up this Connection.
|
PointList |
PolygonDecoration.getPoints()
Returns the points in the PolygonDecoration as a PointList.
|
PointList |
ScalablePolygonShape.getScaledPoints() |
Modifier and Type | Method and Description |
---|---|
void |
SWTGraphics.drawPolygon(PointList points) |
abstract void |
Graphics.drawPolygon(PointList points)
Draws a closed polygon defined by the given
PointList
containing the vertices. |
void |
ScaledGraphics.drawPolygon(PointList points) |
void |
SWTGraphics.drawPolyline(PointList points) |
abstract void |
Graphics.drawPolyline(PointList points)
Draws a polyline defined by the given
PointList containing
the vertices. |
void |
ScaledGraphics.drawPolyline(PointList points) |
void |
SWTGraphics.fillPolygon(PointList points) |
abstract void |
Graphics.fillPolygon(PointList points)
Fills a closed polygon defined by the given
PointList
containing the vertices. |
void |
ScaledGraphics.fillPolygon(PointList points) |
protected Point |
ConnectionLocator.getLocation(PointList points)
Returns a point from the passed PointList, dependent on
ConnectionLocator's alignment.
|
protected abstract void |
AutomaticRouter.handleCollision(PointList list,
int index)
Handles collisions between 2 or more Connections.
|
protected void |
FanRouter.handleCollision(PointList points,
int index)
Modifies a given PointList that collides with some other PointList.
|
void |
ScalablePolygonShape.setPoints(PointList points) |
void |
Polyline.setPoints(PointList points)
Sets the list of points to be used by this polyline connection.
|
void |
AbstractPointListShape.setPoints(PointList points)
Sets the list of points to be used by this figure.
|
void |
Connection.setPoints(PointList list)
Sets the PointList containing the Points that make up this Connection.
|
void |
PolylineDecoration.setTemplate(PointList pl)
Sets the PolylineDecoration's point template.
|
void |
PolygonDecoration.setTemplate(PointList pl)
Sets the PolygonDecorations point template to the passed PointList.
|
Modifier and Type | Method and Description |
---|---|
PointList |
PointList.getCopy()
Creates a copy
|
Modifier and Type | Method and Description |
---|---|
void |
PointList.addAll(PointList source)
Appends all of the given points to this PointList.
|
static boolean |
Geometry.polygonContainsPoint(PointList points,
int x,
int y)
One simple way of finding whether the point is inside or outside a simple
polygon is to test how many times a ray starting from the point
intersects the edges of the polygon.
|
static boolean |
Geometry.polylineContainsPoint(PointList points,
int x,
int y,
int tolerance) |
Modifier and Type | Method and Description |
---|---|
PointList |
Path.getBendPoints()
Returns the list of constrained points through which this path must pass
or
null . |
PointList |
Edge.getPoints()
Returns the path connecting the edge's source and target.
|
PointList |
Path.getPoints()
Returns the solution to this path.
|
Modifier and Type | Method and Description |
---|---|
void |
Path.setBendPoints(PointList bendPoints)
Sets the list of bend points to the given list and dirties the path.
|
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.