- I
Remarks
A LayoutNodeLabel encapsulates a possibly rotated rectangular area represented by an IOrientedRectangle. This rectangle defines the boundaries for the label's content, such as text or images.
This class cannot be instantiated
See Also
Developer's Guide
Members
Properties
Property Value
Gets or sets the bounds of the node 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 owner of this node label.
Implements
ITagOwner.tagMethods
Returns the data stored for the node label in the IMapper<K, V> registered with the LayoutGraph of the owner under the given look-up key.
Parameters
- dataKey: NodeLabelDataKey<TData>
This node 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 node 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 node label.
Return Value
- TData
- The data item associated with this node label in the IMapper<K, V> if found, otherwise the default value of
TData.
Throws
- Exception ({ name: 'ArgumentError' })