public class EdgeDraftImpl extends ElementDraftImpl implements EdgeDraft
ElementDraft.Factory| Constructor and Description |
|---|
EdgeDraftImpl(ImportContainerImpl container,
String id) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<ColumnDraft> |
getColumns() |
EdgeDirection |
getDirection()
Returns this edge's direction setting.
|
NodeDraftImpl |
getSource()
Get edge's source.
|
NodeDraftImpl |
getTarget()
Get edge's target.
|
Object |
getType()
Gets this edge's type.
|
Object |
getValue(String key)
Returns the element's value for
key. |
double |
getWeight()
Returns this edge's weight.
|
boolean |
isSelfLoop()
Returns true if this edge is a self-loop.
|
void |
setDirection(EdgeDirection direction)
Sets this edge's direction setting.
|
void |
setSource(NodeDraft nodeSource)
Sets this edge's source.
|
void |
setTarget(NodeDraft nodeTarget)
Sets this edge's target.
|
void |
setType(Object type)
Sets this edge's type.
|
void |
setWeight(double weight)
Sets this edge's weight.
|
String |
toString() |
addInterval, addInterval, addIntervals, addTimestamp, addTimestamp, addTimestamps, getColor, getGraphInterval, getGraphTimestamp, getId, getLabel, getLabelColor, getLabelSize, getTimeSet, hasDynamicAttributes, isDynamic, isLabelVisible, parseAndSetValue, parseAndSetValue, parseAndSetValue, parseAndSetValue, parseAndSetValue, setColor, setColor, setColor, setColor, setColor, setLabel, setLabelColor, setLabelColor, setLabelColor, setLabelColor, setLabelColor, setLabelSize, setLabelVisible, setValue, setValue, setValue, setValue, setValueequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddInterval, addInterval, addIntervals, addTimestamp, addTimestamp, addTimestamps, getColor, getGraphInterval, getGraphTimestamp, getId, getLabel, getLabelColor, getLabelSize, getTimeSet, isLabelVisible, parseAndSetValue, parseAndSetValue, parseAndSetValue, parseAndSetValue, parseAndSetValue, setColor, setColor, setColor, setColor, setColor, setLabel, setLabelColor, setLabelColor, setLabelColor, setLabelColor, setLabelColor, setLabelSize, setLabelVisible, setValue, setValue, setValue, setValue, setValuepublic EdgeDraftImpl(ImportContainerImpl container, String id)
public void setWeight(double weight)
EdgeDraftDefault is 1.0.
public void setType(Object type)
EdgeDraftEdges can have different types but by default all edges have a default, null type. In other words, setting a type is optional.
public void setDirection(EdgeDirection direction)
EdgeDraftsetDirection in interface EdgeDraftdirection - edge's directionpublic void setSource(NodeDraft nodeSource)
EdgeDraftpublic void setTarget(NodeDraft nodeTarget)
EdgeDraftSelf-loops should simply set both source and target with the same node.
public NodeDraftImpl getSource()
EdgeDraftpublic NodeDraftImpl getTarget()
EdgeDraftpublic double getWeight()
EdgeDraftpublic EdgeDirection getDirection()
EdgeDraftgetDirection in interface EdgeDraftpublic Object getType()
EdgeDraftEdges can have different types but by default all edges have a default, null type. In other words, setting a type is optional.
public boolean isSelfLoop()
EdgeDraftIt returns false if the source or target is null.
isSelfLoop in interface EdgeDraftpublic Object getValue(String key)
ElementDraftkey.getValue in interface ElementDraftgetValue in class ElementDraftImplkey - keypublic Iterable<ColumnDraft> getColumns()
getColumns in interface ElementDraftCopyright © 2007–2017. All rights reserved.