- I
Remarks
An LayoutEdgeLabel represents a potentially rotated rectangle that describes the bounding box of a label's content (such as text or an image) in a LayoutGraph. The label's bounds are described by an IOrientedRectangle, which defines both the position and orientation of the label within the graph.
This class cannot be instantiated
See Also
Developer's Guide
Members
Properties
Gets or sets the bounds of the edge label.
The bounds are represented as an IOrientedRectangle that defines the label's absolute position and orientation within the drawing space.
The layout property returns a snapshot of the label's current bounds. Changes applied to a returned snapshot do not affect the label itself.
Gets the edge to which this label belongs.
Implements
ITagOwner.tagMethods
Returns the data stored for the edge label in the IMapper<K, V> registered with the LayoutGraph of the owner under the given look-up key.
Parameters
- dataKey: EdgeLabelDataKey<TData>
This edge label must currently be in a LayoutGraph, otherwise, this method will throw an exception. Directly use getItemData if it is required to access that of edge labels that are temporarily removed from the graph.
The look-up key that is used to query the map from the graph, containing the data for the edge label.
Return Value
- TData
- The data item associated with this edge label in the IMapper<K, V> if found, otherwise the default value of
TData.
Throws
- Exception ({ name: 'ArgumentError' })