addAdornment method

void addAdornment(
  1. String category,
  2. Adornment ad
)

Associate an Adornment with this Part, perhaps replacing any existing adornment of the same category. Don't forget to set Adornment#adornedObject before calling this method. This adds the Adornment to the Layer named by #layerName, normally "Adornment".

Adornments are also data bound to the same data that this Part has, if any. If the Adornment was already associated with a Part, it is unassociated with that old Part.

This method should not be called on templates. @param {string} category a string identifying the kind or role of the given adornment for this Part. @param {Adornment} ad the new Adornment.

Implementation

void addAdornment(
  _i2.String category,
  _i3.Adornment ad,
) {
  _i4.callMethod(
    this,
    'addAdornment',
    [
      category,
      ad,
    ],
  );
}