|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.graph.Edge
org.eclipse.gmf.runtime.draw2d.ui.graph.ConstrainedEdge
public class ConstrainedEdge
Implementation of Edge that:
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ROUTING_STYLE
|
static java.lang.String |
ORTHOGONAL_ROUTING_STYLE
|
Fields inherited from class org.eclipse.draw2d.graph.Edge |
---|
data, delta, end, isFeedback, offsetSource, offsetTarget, padding, source, start, target, vNodes, weight, width |
Constructor Summary | |
---|---|
ConstrainedEdge(Node source,
Node target)
Constructs a new edge with the given source and target nodes. |
|
ConstrainedEdge(Node source,
Node target,
int delta,
int weight)
Constructs a new edge with the given source, target, delta, and weight. |
|
ConstrainedEdge(java.lang.Object data,
Node source,
Node target)
Constructs a new edge with the given data object, source, and target node. |
Method Summary | |
---|---|
java.lang.String |
getStyle()
Gets the routing style for the edge |
void |
invert()
|
void |
setStyle(java.lang.String style)
Sets the routing style for the edge (orthogonal or default) |
Methods inherited from class org.eclipse.draw2d.graph.Edge |
---|
getDelta, getLength, getPadding, getPoints, getSourceOffset, getTargetOffset, getWidth, isFeedback, opposite, setDelta, setPadding, setSource, setSourceOffset, setTarget, setTargetOffset, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String DEFAULT_ROUTING_STYLE
public static java.lang.String ORTHOGONAL_ROUTING_STYLE
Constructor Detail |
---|
public ConstrainedEdge(Node source, Node target)
source
- the source Nodetarget
- the target Nodepublic ConstrainedEdge(Node source, Node target, int delta, int weight)
source
- the source Nodetarget
- the target Nodedelta
- the minimum edge spanweight
- the weight hintpublic ConstrainedEdge(java.lang.Object data, Node source, Node target)
data
- an arbitrary data objectsource
- the source nodetarget
- the target nodeMethod Detail |
---|
public java.lang.String getStyle()
public void setStyle(java.lang.String style)
style
- the style constantpublic void invert()
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.