public final class Edge
extends java.lang.Object
implements org.eclipse.gef4.common.properties.IPropertyChangeNotifier
Modifier and Type | Class and Description |
---|---|
static class |
Edge.Builder
The
Edge.Builder can be used to construct an Edge little by
little. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTES_PROPERTY
The property name that is used to notify change listeners about changes
made to the attributes of this Edge.
|
Constructor and Description |
---|
Edge(java.util.Map<java.lang.String,java.lang.Object> attrs,
Node source,
Node target)
|
Edge(Node source,
Node target)
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
boolean |
equals(java.lang.Object that) |
java.util.Map<java.lang.String,java.lang.Object> |
getAttrs()
Returns the attributes map of this
Edge by reference. |
Graph |
getGraph()
|
Node |
getSource()
|
Node |
getTarget()
|
int |
hashCode() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
setGraph(Graph graph)
|
void |
setSource(Node source)
|
void |
setTarget(Node target)
|
java.lang.String |
toString() |
public static final java.lang.String ATTRIBUTES_PROPERTY
Map<String, Object>
holding the old attributes and its
new value set to a Map<String, Object>
holding the new
attributes.public Edge(java.util.Map<java.lang.String,java.lang.Object> attrs, Node source, Node target)
Edge
which connects the given source
Node
with the given target Node
. The given
attributes are copied into the attributes map
of this Edge
.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface org.eclipse.gef4.common.properties.IPropertyChangeNotifier
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> getAttrs()
Edge
by reference. When this
map is changed, a PropertyChangeEvent
is fired for the
ATTRIBUTES_PROPERTY
.Edge
by reference.public int hashCode()
hashCode
in class java.lang.Object
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface org.eclipse.gef4.common.properties.IPropertyChangeNotifier
public void setSource(Node source)
public void setTarget(Node target)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2014 itemis AG and others. All rights reserved.