src/shapes/AnnotationAttributes.js
function (attributes) {

            // These are all documented with their property accessors below.
            this._cornerRadius = attributes ? attributes._cornerRadius : 0;
            this._insets = attributes ? attributes._insets : new Insets(0, 0, 0, 0);
            this._backgroundColor = attributes ? attributes._backgroundColor.clone() : Color.WHITE.clone();
            this._leaderGapWidth = attributes ? attributes._leaderGapWidth : 40;
            this._leaderGapHeight = attributes ? attributes._leaderGapHeight : 30;
            this._opacity = attributes ? attributes._opacity : 1;
            this._scale = attributes ? attributes._scale : 1;
            this._drawLeader = attributes ? attributes._drawLeader : true;
            this._width = attributes ? attributes._width : 200;
            this._height = attributes ? attributes._height : 100;
            this._textAttributes = attributes ? attributes._textAttributes : this.createDefaultTextAttributes();

            /**
             * Indicates whether this object's state key is invalid. Subclasses must set this value to true when their
             * attributes change. The state key will be automatically computed the next time it's requested. This flag
             * will be set to false when that occurs.
             * @type {Boolean}
             * @protected
             */
            this.stateKeyInvalid = true;
        }
function (attributes) {

            // These are all documented with their property accessors below.
            this._cornerRadius = attributes ? attributes._cornerRadius : 0;
            this._insets = attributes ? attributes._insets : new Insets(0, 0, 0, 0);
            this._backgroundColor = attributes ? attributes._backgroundColor.clone() : Color.WHITE.clone();
            this._leaderGapWidth = attributes ? attributes._leaderGapWidth : 40;
            this._leaderGapHeight = attributes ? attributes._leaderGapHeight : 30;
            this._opacity = attributes ? attributes._opacity : 1;
            this._scale = attributes ? attributes._scale : 1;
            this._drawLeader = attributes ? attributes._drawLeader : true;
            this._width = attributes ? attributes._width : 200;
            this._height = attributes ? attributes._height : 100;
            this._textAttributes = attributes ? attributes._textAttributes : this.createDefaultTextAttributes();

            /**
             * Indicates whether this object's state key is invalid. Subclasses must set this value to true when their
             * attributes change. The state key will be automatically computed the next time it's requested. This flag
             * will be set to false when that occurs.
             * @type {Boolean}
             * @protected
             */
            this.stateKeyInvalid = true;
        }
function ( attributes ) { // These are all documented with their property accessors below. this . _cornerRadius = attributes ? attributes . _cornerRadius : 0 ; this . _insets = attributes ? attributes . _insets : new Insets ( 0 , 0 , 0 , 0 ) ; this . _backgroundColor = attributes ? attributes . _backgroundColor . clone ( ) : Color . WHITE . clone ( ) ; this . _leaderGapWidth = attributes ? attributes . _leaderGapWidth : 40 ; this . _leaderGapHeight = attributes ? attributes . _leaderGapHeight : 30 ; this . _opacity = attributes ? attributes . _opacity : 1 ; this . _scale = attributes ? attributes . _scale : 1 ; this . _drawLeader = attributes ? attributes . _drawLeader : true ; this . _width = attributes ? attributes . _width : 200 ; this . _height = attributes ? attributes . _height : 100 ; this . _textAttributes = attributes ? attributes . _textAttributes : this . createDefaultTextAttributes ( ) ; /**
             * Indicates whether this object's state key is invalid. Subclasses must set this value to true when their
             * attributes change. The state key will be automatically computed the next time it's requested. This flag
             * will be set to false when that occurs.
             * @type {Boolean}
             * @protected
             */ this . stateKeyInvalid = true ; }
Constructs an annotation attributes bundle.
@alias AnnotationAttributes
@constructor
@classdesc Holds attributes applied to {@link Annotation} shapes.
@param {AnnotationAttributes} attributes Attributes to initialize this attributes instance to. May be null,
in which case the new instance contains default attributes.
Constructs an annotation attributes bundle .