A class responsible for calculating the location and size of a Shape representing an ILabel object which is being placed based on the StretchNodeLabelModel.
Remarks
More precisely, this class calculates the width/height of the label's shape and its location based on the ILabelModelParameter that has been used from the StretchNodeLabelModel.
This processing step has to be registered to the list of IShapeProcessingSteps of the VsdxExportConfiguration and needs to run after NodeLayoutProcessingStep.
Members
Constructors
Initializes a new instance of the StretchNodeLabelProcessingStep class.
Initializes a new instance of the StretchNodeLabelProcessingStep class.
Methods
Defined in
ShapeProcessingStepBase.clearParameters
- shape: Shape
The shape representing the edge.
- sourceConnection: Connection
The source connection representing the source port.
- targetConnection: Connection
The target connection representing the target port.
- edge: IEdge
The edge this shape represents.
- context: ShapeProcessingContext
Defined in
ShapeProcessingStepBase.edgeParameters
- shape: Shape
The shape representing the label.
- ownerShape: Shape
The shape representing the label's owner. In case the owner is a node, this is the container shape of the node.
- label: ILabel
The label this shape represents
- context: ShapeProcessingContext
Overrides
ShapeProcessingStepBase.labelThis method may now set or modify any values of the shape.
Parameters
- shape: Shape
The shape representing the visual appearance of the node.
- containerShape: GroupShape
The shape containing all shapes belonging to this node, including shapes for labels, ports and the shape passed as first argument.
- node: INode
The node this shape represents.
- context: ShapeProcessingContext
Defined in
ShapeProcessingStepBase.nodeSee node.
See node.
Parameters
- shape: Shape
The shape representing the port.
- ownerShape: GroupShape
The shape representing the port's owner. In case the owner is a node, this is the container shape of the node.
- port: IPort
The port this shape represents.
- context: ShapeProcessingContext