Click or drag to resize

ItemLocationDirectAspectPreserving Class

Location of an item which has an original size, and for which the aspect ratio should be preserved, for instance an image object.
Inheritance Hierarchy

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class ItemLocationDirectAspectPreserving : ItemLocationDirect, 
	ICloneable

The ItemLocationDirectAspectPreserving type exposes the following members.

Constructors
 NameDescription
Public methodItemLocationDirectAspectPreservingInitializes a new instance of the ItemLocationDirectAspectPreserving class
Public methodItemLocationDirectAspectPreserving(IItemLocation)Initializes a new instance of the ItemLocationDirectAspectPreserving class
Public methodItemLocationDirectAspectPreserving(ItemLocationDirect)Initializes a new instance of the ItemLocationDirectAspectPreserving class
Public methodItemLocationDirectAspectPreserving(ItemLocationDirectAspectPreserving)Initializes a new instance of the ItemLocationDirectAspectPreserving class
Top
Properties
 NameDescription
Public propertyAbsolutePivotPosition
(Inherited from ItemLocationDirect)
Public propertyAbsolutePivotPositionX Gets or sets the absolute x position of the pivot point of the item.
(Inherited from ItemLocationDirect)
Public propertyAbsolutePivotPositionY Gets or sets the absolute y position of the pivot point of the item.
(Inherited from ItemLocationDirect)
Public propertyAbsolutePosition
(Inherited from ItemLocationDirect)
Public propertyAbsolutePositionX
(Inherited from ItemLocationDirect)
Public propertyAbsolutePositionY
(Inherited from ItemLocationDirect)
Public propertyAbsoluteSize
(Inherited from ItemLocationDirect)
Public propertyAbsoluteSizeX
(Inherited from ItemLocationDirect)
Public propertyAbsoluteSizeY
(Inherited from ItemLocationDirect)
Public propertyAbsoluteVectorPivotToLeftUpper Gets the absolute vector between the pivot point of the item and its left upper edge.
(Inherited from ItemLocationDirect)
Protected propertyAccumulatedEventData Gets the accumulated event data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Public propertyAspectRatioPreserving 
Protected propertyDebug_AbsolutePath Gets the absolute path of the node for debugging purposes.
(Inherited from SuspendableDocumentNodeBase)
Public propertyIsAutoSized
(Overrides ItemLocationDirectIsAutoSized)
Public propertyIsDisposed Gets a value indicating whether this instance is disposed.
(Inherited from SuspendableDocumentNodeBase)
Public propertyIsDisposeInProgress Gets a value indicating whether for this instance dispose is in progress, or the instance is already disposed.
(Inherited from SuspendableDocumentNodeBase)
Public propertyIsSomeoneListeningToChanges Gets a value indicating whether someone is listening to changes. For this, either the ParentObject or the Changed event must be set.
(Inherited from SuspendableDocumentNodeBase)
Public propertyIsSuspended Gets a value indicating whether this instance is suspended.
(Inherited from SuspendableDocumentLeafNode)
Public propertyLocalAnchorX Gets or sets the local anchor's x position. This is an absolute value (in points = 1/72 inch) or a value relative to the own item width. The local anchor point is the point, for which the location can be set in the position/size dialog of the item. A relative value of 0 designates the left boundary of the item, a relative value of 0.5 designates the horizontal center of the item, and a relative value of 1 designates the right boundary of the item.
(Inherited from ItemLocationDirect)
Public propertyLocalAnchorY Gets or sets the local anchor's y position. This is an absolute value (in points = 1/72 inch) or a value relative to the own item height. The local anchor point is the point, for which the location can be set in the position/size dialog of the item. A relative value of 0 designates the upper boundary of the item, a relative value of 0.5 designates the vertical center of the item, and a relative value of 1 designates the lower boundary of the item.
(Inherited from ItemLocationDirect)
Public propertyName Gets the name of this document node. Null is returned if the name is not set or unknown. The set accessor will for most nodes throw a InvalidOperationException, since the name can only be set on IProjectItems.
(Inherited from SuspendableDocumentNodeBase)
Public propertyOriginalItemSize 
Public propertyParentAnchorX Gets or sets the parent anchor's x position. This is an absolute value (in points = 1/72 inch) or a value relative to the parent's width. The parent anchor point is the point inside the parent item, from which the location of the item is measured. Stricly speaking, the position of the item (as shown in the dialog) is the vector from the parent's anchor point to the local anchor point). A relative value of 0 designates the left boundary of the parent, a relative value of 0.5 designates the horizontal center of the parent, and a relative value of 1 designates the right boundary of the parent.
(Inherited from ItemLocationDirect)
Public propertyParentAnchorY Gets or sets the parent anchor's y position. This is an absolute value (in points = 1/72 inch) or a value relative to the parent's height. The parent anchor point is the point inside the parent item, from which the location of the item is measured. Stricly speaking, the position of the item (as shown in the dialog) is the vector from the parent's anchor point to the local anchor point). A relative value of 0 designates the upper boundary of the parent, a relative value of 0.5 designates the vertical center of the parent, and a relative value of 1 designates the lower boundary of the parent.
(Inherited from ItemLocationDirect)
Public propertyParentObject Gets/sets the parent object this instance belongs to.
(Inherited from SuspendableDocumentNodeBase)
Public propertyParentSize
(Inherited from ItemLocationDirect)
Public propertyPositionX The x position of the item, either absolute in points or relative to the parent's width.
(Inherited from ItemLocationDirect)
Public propertyPositionY The y position of the item, either absolute or relative to the parent's height.
(Inherited from ItemLocationDirect)
Public propertyRotationThe rotation angle (in degrees) of the layer.
(Inherited from ItemLocationDirect)
Public propertyScaleThe scaling factor of the item, normally 1.
(Inherited from ItemLocationDirect)
Public propertyScaleXThe scaling factor of the item in x-direction, normally 1.
(Inherited from ItemLocationDirect)
Public propertyScaleYThe scaling factor of the item in y-direction, normally 1.
(Inherited from ItemLocationDirect)
Public propertyShearXThe shear factor of the item.
(Inherited from ItemLocationDirect)
Public propertySizeX The width of the item, either as absolute value in point (1/72 inch), or as value relative to the parent's width.
(Inherited from ItemLocationDirect)
Public propertySizeY The height of the item, either as absolute value in point (1/72 inch), or as value relative to the parent's height.
(Inherited from ItemLocationDirect)
Top
Methods
 NameDescription
Protected methodAccumulateChangeData
(Inherited from SuspendableDocumentLeafNodeWithEventArgs)
Protected methodAccumulatedChangeData_SetBackAfterResumeAndSuspend Sets the change data without further processing. This function is infrastructure and intended to use only in OnResume after the parent has suspended this node again.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Protected methodAccumulatedEventData_Clear Clears the accumulated event data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Protected methodAccumulatedEventData_HasZeroOrOneEventArg Determines whether there is no or only one single event arg accumulated. If this is the case, the return value is true. If there is one event arg accumulated, it is returned in the argument singleEventArg. The return value is false if there is more than one event arg accumulated. In this case the singleEventArg is null on return, and the calling function should use AccumulatedEventData to enumerate all accumulated event args.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Public methodChangeParentAnchorButKeepPosition
(Inherited from ItemLocationDirect)
Public methodChangeParentAnchorToLeftTopButKeepPosition
(Inherited from ItemLocationDirect)
Public methodChangeRelativePositionValuesToAbsolutePositionValues
(Inherited from ItemLocationDirect)
Public methodChangeRelativeSizeValuesToAbsoluteSizeValues
(Inherited from ItemLocationDirect)
Protected methodChildDisposeMemberT Helper function to dispose a child node of this instance. It helps to ensure the correct order: first, the child node is set to null and only then the child node is disposed.
(Inherited from SuspendableDocumentNodeBase)
Public methodClone
(Overrides ItemLocationDirectClone)
Public methodCopyFrom
(Overrides ItemLocationDirectCopyFrom(Object))
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from SuspendableDocumentNodeBase)
Protected methodDispose(Boolean) Releases unmanaged and - optionally - managed resources.
(Inherited from SuspendableDocumentNodeBase)
Public methodEhParentTunnelingEventHappened Is called by the parent when a tunneling event happened into the parent.
(Inherited from SuspendableDocumentNodeBase)
Public methodEhSelfChanged Calls EhSelfChanged with EventArgs.Empty
(Inherited from SuspendableDocumentLeafNodeWithEventArgs)
Protected methodEhSelfChanged(EventArgs) Called if some member of this instance itself has changed.
(Inherited from SuspendableDocumentLeafNode)
Public methodEhSelfTunnelingEventHappened(TunnelingEventArgs) Is called by this instance if a tunneling event happened into this instance. The tunneling event triggers the TunneledEvent and is additionally distributed to all childs of this instance.
(Inherited from SuspendableDocumentNodeBase)
Public methodEhSelfTunnelingEventHappened(TunnelingEventArgs, Boolean) Is called by this instance if a tunneling event happened into this instance. The tunneling event triggers the TunneledEvent and is - depending on the provided parameter - also distributed to all childs of this instance.
(Inherited from SuspendableDocumentNodeBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Finalizes an instance of the SuspendableDocumentNodeBase class.
(Inherited from SuspendableDocumentNodeBase)
Public methodGetAbsoluteEnclosingRectangle Gets the absolute enclosing rectangle, taking into account ScaleX, ScaleY, Rotation and Shear (SSRS).
(Inherited from ItemLocationDirect)
Public methodGetAbsoluteEnclosingRectangleWithoutSSRS Gets the absolute enclosing rectangle without taking into account ScaleX, ScaleY, Rotation and Shear (SSRS).
(Inherited from ItemLocationDirect)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHandleLowPriorityChildChangeCases Handles the cases when a child changes, but a reaction is neccessary only if the table is not suspended currently.
(Inherited from SuspendableDocumentLeafNode)
Protected methodInternalSetAbsoluteSizeSilent
(Inherited from ItemLocationDirect)
Protected methodInternalSetAbsoluteSizeXSilent
(Inherited from ItemLocationDirect)
Protected methodInternalSetAbsoluteSizeYSilent
(Inherited from ItemLocationDirect)
Protected methodInternalSetScaleSilent
(Overrides ItemLocationDirectInternalSetScaleSilent(PointD2D))
Protected methodInternalSetScaleXSilent
(Overrides ItemLocationDirectInternalSetScaleXSilent(Double))
Protected methodInternalSetScaleYSilent
(Overrides ItemLocationDirectInternalSetScaleYSilent(Double))
Protected methodInternalSetSizeSilent
(Overrides ItemLocationDirectInternalSetSizeSilent(RADouble, RADouble))
Protected methodInternalSetSizeXSilent
(Overrides ItemLocationDirectInternalSetSizeXSilent(RADouble))
Protected methodInternalSetSizeYSilent
(Overrides ItemLocationDirectInternalSetSizeYSilent(RADouble))
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnAboutToBeResumed Is called when the suspend level is still 1 (one), but is about to fall to zero, i.e. shortly before the call to OnResume. This function is not called before OnResumeSilently!
(Inherited from SuspendableDocumentLeafNode)
Protected methodOnChanged Fires the change event with the EventArgs provided in the argument.
(Inherited from SuspendableDocumentNodeBase)
Protected methodOnResume Is called when the suspend level falls down from 1 to zero by a call to Resume or a call to [M:Altaxo.Main.ISuspendToken.Dispose()].
(Inherited from SuspendableDocumentLeafNode)
Protected methodOnResumeSilently Is called when the suspend level falls down from 1 to zero by a call to ResumeSilently. The implementation should delete any accumulated events, should also disarm the suspendTokens of the childs of this object, and should not fire any Changed events nor set the change state of the object to dirty.
(Inherited from SuspendableDocumentLeafNode)
Protected methodOnSuspended Called when the suspend level has just gone from 0 to 1, i.e. the object was suspended.
(Inherited from SuspendableDocumentLeafNode)
Protected methodOnTunnelingEvent Fires the TunneledEvent event.
(Inherited from SuspendableDocumentNodeBase)
Public methodResume(ISuspendToken) Resumes changed events by calling Resume for the provided suspend token, and setting the reference to the suspend token to null. If Event data were accumulated during the suspended state, a changed event is triggered for each event data.
(Inherited from SuspendableDocumentNodeBase)
Public methodResume(ISuspendToken, EventFiring) Resumes changed events, either with taking the accumulated event data into account (see Resume(ISuspendToken)) or discarding the accumulated event data (see ResumeSilently(ISuspendToken), depending on the provided argument eventFiring.
(Inherited from SuspendableDocumentNodeBase)
Public methodResumeCompleteTemporarily Resumes the object completely for only a short time. Thus, if object was suspended before, it will be suspended again when the function returns.
(Inherited from SuspendableDocumentLeafNode)
Public methodResumeCompleteTemporarilyGetToken Resumes the object completely for the time the returned token is referenced and not disposed. The return value is a token that had 'absorbed' the suspend count of the object, resulting in the suspend count of the object dropped to 0 (zero). When the returned token is finally disposed, the suspend count of the object is increased again by the 'absorbed' suspend count.
(Inherited from SuspendableDocumentLeafNode)
Public methodResumeSilently Resumes changed events by calling Resume for the provided suspend token, and setting the reference to the suspend token to null. All event data accumulated during the suspended state are discarded, and thus no change event is triggered even if the instance has changed during the suspended state.
(Inherited from SuspendableDocumentNodeBase)
Public methodSetAbsolutePivotPosition
(Inherited from ItemLocationDirect)
Public methodSetAbsoluteSize
(Inherited from ItemLocationDirect)
Public methodSetDisposeInProgress Sets the flag that dispose is in progress for this node and all child nodes recursively.
(Inherited from SuspendableDocumentNodeBase)
Protected methodSetMemberAndRaiseSelfChangedT(NullableT, NullableT) Sets a member variable of this instance and raise a change event with Empty if the new value is different from the old value. The comparison is done using the IEquatableT interface of the member variable. Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase)
Protected methodSetMemberAndRaiseSelfChangedT(T, T) Sets a member variable of this instance and raise a change event with Empty if the new value is different from the old value. The comparison is done using the IEquatableT interface of the member variable. Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase)
Protected methodSetMemberEnumAndRaiseSelfChangedT Sets a member variable (which is an Enum) of this instance and raise a change event with Empty if the new value is different from the old value. The comparison is done using the IEquatableT interface of the member variable. Note: to set members that implement IDocumentNode please use the Child... functions.
(Inherited from SuspendableDocumentNodeBase)
Public methodSetParentSize
(Overrides ItemLocationDirectSetParentSize(PointD2D, Boolean))
Public methodSetPositionAndSize
(Inherited from ItemLocationDirect)
Public methodSetRelativeSizePositionFromAbsoluteValues
(Inherited from ItemLocationDirect)
Public methodSuspendGetToken Suspend will increase the SuspendLevel.
(Inherited from SuspendableDocumentLeafNode)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetName Test if this item already has a name.
(Inherited from SuspendableDocumentNodeBase)
Top
Events
 NameDescription
Public eventChangedFired when something in the object has changed, and the object is not suspended.
(Inherited from SuspendableDocumentNodeBase)
Public eventTunneledEvent The event that is fired when the object is disposed. First argument is the sender, second argument is the original source, and third argument is the event arg.
(Inherited from SuspendableDocumentNodeBase)
Top
Fields
 NameDescription
Protected field_accumulatedEventData Holds the accumulated change data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Protected field_localAnchorX
(Inherited from ItemLocationDirect)
Protected field_localAnchorY
(Inherited from ItemLocationDirect)
Protected field_parent The parent object this instance belongs to.
(Inherited from SuspendableDocumentNodeBase)
Protected field_parentAnchorX
(Inherited from ItemLocationDirect)
Protected field_parentAnchorY
(Inherited from ItemLocationDirect)
Protected field_parentSize
(Inherited from ItemLocationDirect)
Protected field_positionX
(Inherited from ItemLocationDirect)
Protected field_positionY
(Inherited from ItemLocationDirect)
Protected field_rotationThe rotation angle (in degrees) of the layer.
(Inherited from ItemLocationDirect)
Protected field_scaleXThe scaling factor of the layer, normally 1.
(Inherited from ItemLocationDirect)
Protected field_scaleY
(Inherited from ItemLocationDirect)
Protected field_shear
(Inherited from ItemLocationDirect)
Protected field_sizeX
(Inherited from ItemLocationDirect)
Protected field_sizeY
(Inherited from ItemLocationDirect)
Top
See Also