Packagecom.yworks.graph.model
Interfacepublic interface IChangeDummyNodeAppearanceCallback extends IChangeLabeledItemAppearanceCallback

The interface of the callback that is passed to implementations of the IDummyNodeConverter's changeDummyNodeAppearance() and createDummyNodeAppearance() methods.

This interface can be used by the IDummyNodeConverter implementations to adjust the appearance of the DummyNodeId in a IFoldedGraph view. Modifying the FoldingManager.getViewState(DummyNodeId) of a dummy node through this interface will prevent the undo queue from being corrupted and is the only way of modifying a dummy node that is not currently being displayed in any view.

See also

IChangeLabeledItemAppearanceCallback
FoldingManager.getChangeDummyNodeAppearanceCallback()


Public Methods
 MethodDefined By
 Inherited
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
 Inherited
Convenience method that removes all labels from the item that this callback has been configured for.
IChangeLabeledItemAppearanceCallback
 Inherited
removeLabel(label:ILabel):void
Performs the IGraph#removeLabel() operation for the item that this callback has been configured for.
IChangeLabeledItemAppearanceCallback
  
setBounds(x:Number, y:Number, width:Number, height:Number):void
Performs the IGraph#setBounds() operation for the node that this callback has been configured for.
IChangeDummyNodeAppearanceCallback
 Inherited
Performs the IGraph#setLabelModelParameter() operation for the item that this callback has been configured for.
IChangeLabeledItemAppearanceCallback
 Inherited
setLabelStyle(label:ILabel, style:ILabelStyle):void
Performs the IGraph#setLabelStyle() operation for the provided label that this callback has been configured for.
IChangeLabeledItemAppearanceCallback
 Inherited
setLabelTag(label:ILabel, newTag:Object):void
Sets the tag for the label of the item that that this callback has been configured for.
IChangeLabeledItemAppearanceCallback
 Inherited
setLabelText(label:ILabel, text:String):void
Performs the IGraph#setLabelText() operation for the item that this callback has been configured for.
IChangeLabeledItemAppearanceCallback
  
setNodeStyle(nodeStyle:INodeStyle):void
Performs the IGraph#setNodeStyle() operation for the node that this callback has been configured for.
IChangeDummyNodeAppearanceCallback
  
Performs the IGraph.setLocationModelParameter operation for port at the node that this callback has been configured for.
IChangeDummyNodeAppearanceCallback
  
setPortStyle(port:IPort, portStyle:IPortStyle):void
Performs the IGraph#setPortStyle() operation for port at the node that this callback has been configured for.
IChangeDummyNodeAppearanceCallback
 Inherited
setPreferredSize(label:ILabel, width:Number, height:Number):void
Performs the IGraph#setPreferredSize() operation for the item that this callback has been configured for.
IChangeLabeledItemAppearanceCallback
Method Detail
setBounds()method
public function setBounds(x:Number, y:Number, width:Number, height:Number):void

Performs the IGraph#setBounds() operation for the node that this callback has been configured for.

Parameters

x:Number — The new x coordinate of the node bound's upper left corner.
 
y:Number — The new width of the node.
 
width:Number — The new height of the node.
 
height:Number — The new y coordinate of the node bound's upper left corner.

See also

setNodeStyle()method 
public function setNodeStyle(nodeStyle:INodeStyle):void

Performs the IGraph#setNodeStyle() operation for the node that this callback has been configured for.

Parameters

nodeStyle:INodeStyle — The style to assign.

See also

setPortLocationModelParameter()method 
public function setPortLocationModelParameter(port:IPort, locationParameter:IPortLocationModelParameter):void

Performs the IGraph.setLocationModelParameter operation for port at the node that this callback has been configured for.

Parameters

port:IPort — The port at the node to assign the style.
 
locationParameter:IPortLocationModelParameter — The new location parameter for the port.

setPortStyle()method 
public function setPortStyle(port:IPort, portStyle:IPortStyle):void

Performs the IGraph#setPortStyle() operation for port at the node that this callback has been configured for.

Parameters

port:IPort — The port at the node to assign the style.
 
portStyle:IPortStyle — The style to assign.

See also