Anchor¶
Must Override¶
-
BaseAnchor.
_get_color
()[source]¶ This is the environment implementation of
BaseAnchor.color
. This must return a Color orNone
. The returned value will be normalized withnormalizers.normalizeColor
.Subclasses must override this method.
-
BaseAnchor.
_get_identifier
()¶ This is the environment implementation of
BaseObject.identifier
. This must return an Identifier. If the native object does not have an identifier assigned one should be assigned and returned.Subclasses must override this method.
-
BaseAnchor.
_get_name
()[source]¶ This is the environment implementation of
BaseAnchor.name
. This must return a String orNone
. The returned value will be normalized withnormalizers.normalizeAnchorName
.Subclasses must override this method.
-
BaseAnchor.
_get_x
()[source]¶ This is the environment implementation of
BaseAnchor.x
. This must return an Integer/Float.Subclasses must override this method.
-
BaseAnchor.
_get_y
()[source]¶ This is the environment implementation of
BaseAnchor.y
. This must return an Integer/Float.Subclasses must override this method.
-
BaseAnchor.
_set_color
(value)[source]¶ This is the environment implementation of
BaseAnchor.color
. value will be a Color orNone
. It will have been normalized withnormalizers.normalizeColor
.Subclasses must override this method.
-
BaseAnchor.
_set_name
(value)[source]¶ This is the environment implementation of
BaseAnchor.name
. value will be a String orNone
. It will have been normalized withnormalizers.normalizeAnchorName
.Subclasses must override this method.
-
BaseAnchor.
_set_x
(value)[source]¶ This is the environment implementation of
BaseAnchor.x
. value will be an Integer/Float.Subclasses must override this method.
-
BaseAnchor.
_set_y
(value)[source]¶ This is the environment implementation of
BaseAnchor.y
. value will be an Integer/Float.Subclasses must override this method.
May Override¶
-
BaseAnchor.
_init
(*args, **kwargs)¶ Subclasses may override this method.
-
BaseAnchor.
_moveBy
(value, **kwargs)¶ This is the environment implementation of
BaseObject.moveBy
.value will be an iterable containing two Integer/Float values defining the x and y values to move the object by. It will have been normalized with
normalizers.normalizeTransformationOffset
.Subclasses may override this method.
-
BaseAnchor.
_rotateBy
(value, origin=None, **kwargs)¶ This is the environment implementation of
BaseObject.rotateBy
.value will be a Integer/Float value defining the value to rotate the object by. It will have been normalized with
normalizers.normalizeRotationAngle
. origin will be a Coordinate defining the point at which the rotation should orginate.Subclasses may override this method.
-
BaseAnchor.
_scaleBy
(value, origin=None, **kwargs)¶ This is the environment implementation of
BaseObject.scaleBy
.value will be an iterable containing two Integer/Float values defining the x and y values to scale the object by. It will have been normalized with
normalizers.normalizeTransformationScale
. origin will be a Coordinate defining the point at which the scale should orginate.Subclasses may override this method.
-
BaseAnchor.
_skewBy
(value, origin=None, **kwargs)¶ This is the environment implementation of
BaseObject.skewBy
.value will be an iterable containing two Integer/Float values defining the x and y values to skew the object by. It will have been normalized with
normalizers.normalizeTransformationSkewAngle
. origin will be a Coordinate defining the point at which the skew should orginate.Subclasses may override this method.
-
BaseAnchor.
_transformBy
(matrix, **kwargs)[source]¶ This is the environment implementation of
BaseAnchor.transformBy
.matrix will be a Transformation Matrix. that has been normalized with
normalizers.normalizeTransformationMatrix
.Subclasses may override this method.
-
BaseAnchor.
copyData
(source)¶ Subclasses may override this method. If so, they should call the super.