Package | com.yworks.graph.model |
Interface | public interface IChangeDummyEdgeAppearanceCallback extends IChangeLabeledItemAppearanceCallback |
IDummyEdgeConverter
's
changeDummyEdgeAppearance()
and createDummyEdgeAppearance()
methods.
This interface can be used by the IDummyEdgeConverter
implementations to adjust
the appearance of the DummyEdgeId
in a IFoldedGraph
view.
Modifying the view state of a dummy edge
through this interface will prevent the undo queue from being corrupted and is the only way of modifying
a dummy edge that is not currently being displayed in any view.
See also
Method | Defined By | ||
---|---|---|---|
Performs the IGraph#addBend() operation for the edge
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
addLabel(labelModelParameter:ILabelModelParameter, style:ILabelStyle, text:String, preferredWidth:Number, preferredHeight:Number):ILabel
Performs the IGraph#addLabel() operation for the item
that this callback has been configured for. | IChangeLabeledItemAppearanceCallback | ||
clearBends():void
Performs the IGraph#clearBends() operation for the edge
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
clearLabels():void
Convenience method that removes all labels from the item
that this callback has been configured for. | IChangeLabeledItemAppearanceCallback | ||
removeBend(bend:IBend):void
Performs the IGraph#removeBend() operation for the item
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
removeLabel(label:ILabel):void
Performs the IGraph#removeLabel() operation for the item
that this callback has been configured for. | IChangeLabeledItemAppearanceCallback | ||
setBendLocation(bend:IBend, x:Number, y:Number):void
Performs the IGraph#setBendLocation() operation for the given
bend at the item
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
setBendTag(index:int, newTag:Object):void
Sets the user tag of the dummy bend with the given index of the dummy edge. | IChangeDummyEdgeAppearanceCallback | ||
Performs the IGraph#setLabelModelParameter() operation for the item
that this callback has been configured for. | IChangeLabeledItemAppearanceCallback | ||
Performs the IGraph#setLabelStyle() operation for the provided label
that this callback has been configured for. | IChangeLabeledItemAppearanceCallback | ||
setLabelTag(label:ILabel, newTag:Object):void
Sets the tag for the label of the item that that this callback has been configured for. | IChangeLabeledItemAppearanceCallback | ||
setLabelText(label:ILabel, text:String):void
Performs the IGraph#setLabelText() operation for the item
that this callback has been configured for. | IChangeLabeledItemAppearanceCallback | ||
setPreferredSize(label:ILabel, width:Number, height:Number):void
Performs the IGraph#setPreferredSize() operation for the item
that this callback has been configured for. | IChangeLabeledItemAppearanceCallback | ||
setSourcePortLocationParameter(parameter:IPortLocationModelParameter):void
Performs the IGraph#setPortLocationParameter() operation for the source
port of the edge
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
setSourcePortStyle(portStyle:IPortStyle):void
Performs the IGraph#setPortStyle() operation for the source
port of the edge
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
setSourcePortTag(newTag:Object):void
Sets the user tag of the source port of the dummy edge. | IChangeDummyEdgeAppearanceCallback | ||
setStyle(edgeStyle:IEdgeStyle):void
Performs the IGraph#setEdgeStyle() operation for the edge
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
setTag(newTag:Object):void
Sets the user tag of the dummy edge
The tag can differ from the original edge's tag especially if the dummy edge represents more than one edge. | IChangeDummyEdgeAppearanceCallback | ||
setTargetPortLocationParameter(parameter:IPortLocationModelParameter):void
Performs the IGraph#setPortLocationParameter() operation for the target
port of the edge
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
setTargetPortStyle(portStyle:IPortStyle):void
Performs the IGraph#setPortStyle() operation for the target
port of the edge
that this callback has been configured for. | IChangeDummyEdgeAppearanceCallback | ||
setTargetPortTag(newTag:Object):void
Sets the user tag of the target port of the dummy edge. | IChangeDummyEdgeAppearanceCallback |
addBend | () | method |
public function addBend(index:int, x:Number, y:Number):IBend
Performs the IGraph#addBend()
operation for the edge
that this callback has been configured for.
Parameters
index:int — The index where the new bend needs to be inserted.
| |
x:Number — The x coordinate of the bend position.
| |
y:Number — The y coordinate of the bend position.
|
IBend — The new bend for this dummy edge.
|
See also
clearBends | () | method |
public function clearBends():void
Performs the IGraph#clearBends()
operation for the edge
that this callback has been configured for.
See also
removeBend | () | method |
public function removeBend(bend:IBend):void
Performs the IGraph#removeBend()
operation for the item
that this callback has been configured for.
Parameters
bend:IBend — The bend instance to remove.
|
See also
setBendLocation | () | method |
public function setBendLocation(bend:IBend, x:Number, y:Number):void
Performs the IGraph#setBendLocation()
operation for the given
bend at the item
that this callback has been configured for.
Parameters
bend:IBend — The bend instance to set the location.
| |
x:Number — The new x coordinate of the bend.
| |
y:Number — The new y coordinate of the bend.
IGraph#setBendLocation()
|
setBendTag | () | method |
public function setBendTag(index:int, newTag:Object):void
Sets the user tag of the dummy bend with the given index of the dummy edge.
The tag can differ from the original bend's tag especially if the dummy edge represents more than one edge.
Although the bend's tag can be written using the ITagOwner
found in the bend's lookup()
,
this method should be used instead to ensure that if this interface is used to modify the appearance of a dummy edge's bends
no undo units are enqueued.
Parameters
index:int — The bend's index.
| |
newTag:Object |
See also
setSourcePortLocationParameter | () | method |
public function setSourcePortLocationParameter(parameter:IPortLocationModelParameter):void
Performs the IGraph#setPortLocationParameter()
operation for the source
port of the edge
that this callback has been configured for.
Parameters
parameter:IPortLocationModelParameter — the new location parameters
Since the |
See also
setSourcePortStyle | () | method |
public function setSourcePortStyle(portStyle:IPortStyle):void
Performs the IGraph#setPortStyle()
operation for the source
port of the edge
that this callback has been configured for.
Parameters
portStyle:IPortStyle — The new style for the port.
Since the |
See also
setSourcePortTag | () | method |
public function setSourcePortTag(newTag:Object):void
Sets the user tag of the source port of the dummy edge.
The tag can differ from the original edge's source port tag especially if the dummy edge represents more than one edge.
Although the port's tag can be written using the ITagOwner
found in the port's lookup()
,
this method should be used instead to ensure that if this interface is used to modify the appearance of a dummy edge's ports
no undo units are enqueued.
Parameters
newTag:Object |
See also
setStyle | () | method |
public function setStyle(edgeStyle:IEdgeStyle):void
Performs the IGraph#setEdgeStyle()
operation for the edge
that this callback has been configured for.
Parameters
edgeStyle:IEdgeStyle — The new edge style.
|
See also
setTag | () | method |
public function setTag(newTag:Object):void
Sets the user tag of the dummy edge
The tag can differ from the original edge's tag especially if the dummy edge represents more than one edge.
Although the edge's tag can be written using the ITagOwner
found in the edge's lookup()
,
this method should be used instead to ensure that if this interface is used to modify the appearance of a dummy edge
no undo units are enqueued.
Parameters
newTag:Object — The new tag.
|
See also
setTargetPortLocationParameter | () | method |
public function setTargetPortLocationParameter(parameter:IPortLocationModelParameter):void
Performs the IGraph#setPortLocationParameter()
operation for the target
port of the edge
that this callback has been configured for.
Parameters
parameter:IPortLocationModelParameter — the new location parameters
Since the |
See also
setTargetPortStyle | () | method |
public function setTargetPortStyle(portStyle:IPortStyle):void
Performs the IGraph#setPortStyle()
operation for the target
port of the edge
that this callback has been configured for.
Parameters
portStyle:IPortStyle — The new style for the port.
Since the |
See also
setTargetPortTag | () | method |
public function setTargetPortTag(newTag:Object):void
Sets the user tag of the target port of the dummy edge.
The tag can differ from the original edge's target port tag especially if the dummy edge represents more than one edge.
Although the port's tag can be written using the ITagOwner
found in the port's lookup()
,
this method should be used instead to ensure that if this interface is used to modify the appearance of a dummy edge's ports
no undo units are enqueued.
Parameters
newTag:Object |
See also