Click or drag to resize

DateTimeScaleRescaleConditions Class

Stores rescaling conditions for date-time scales.
Inheritance Hierarchy

Namespace: Altaxo.Graph.Scales.Rescaling
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
[SerializableAttribute]
public class DateTimeScaleRescaleConditions : SuspendableDocumentLeafNodeWithEventArgs, 
	IUnboundNumericScaleRescaleConditions, IScaleRescaleConditions, IDocumentLeafNode, INamedObject, IChangedEventSource, 
	ISuspendableByToken, ITunnelingEventSource, IDisposable, ITreeNodeWithParent<IDocumentLeafNode>, 
	ITreeNode<IDocumentLeafNode>, INodeWithParentNode<IDocumentLeafNode>, ICopyFrom, 
	ICloneable

The DateTimeScaleRescaleConditions type exposes the following members.

Constructors
 NameDescription
Public methodDateTimeScaleRescaleConditions Initializes a new instance of the DateTimeScaleRescaleConditions class.
Public methodDateTimeScaleRescaleConditions(DateTimeScaleRescaleConditions) Initializes a new instance of the DateTimeScaleRescaleConditions class by copying another instance.
Top
Properties
 NameDescription
Protected propertyAccumulatedEventData Gets the accumulated event data.
(Inherited from SuspendableDocumentLeafNodeWithSingleAccumulatedDataT)
Public propertyDataBoundsEnd Gets the current data-bound end value.
Public propertyDataBoundsOrg Gets the current data-bound origin.
Protected propertyDebug_AbsolutePath Gets the absolute path of the node for debugging purposes.
(Inherited from SuspendableDocumentNodeBase)
Public propertyEndRelativeTo Gets the reference mode used for the end value.
Public propertyEndRescaling Gets the end rescaling mode.
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 propertyIsResultingEndFixed Gets a value indicating whether the resulting end is fixed.
Public propertyIsResultingOrgFixed Gets a value indicating whether the resulting origin is fixed.
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 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 propertyOrgRelativeTo Gets the reference mode used for the origin.
Public propertyOrgRescaling Gets the origin rescaling mode.
Public propertyParentObject Gets/sets the parent object this instance belongs to.
(Inherited from SuspendableDocumentNodeBase)
Public propertyResultingEnd Gets the currently resulting end value.
Public propertyResultingOrg Gets the currently resulting origin.
Public propertyUserProvidedEndKind Gets the DateTimeKind of the user-provided end value.
Public propertyUserProvidedEndValue Gets the user-provided end value in ticks.
Public propertyUserProvidedOrgKind Gets the DateTimeKind of the user-provided origin value.
Public propertyUserProvidedOrgValue Gets the user-provided origin value in ticks.
Top
Methods
 NameDescription
Protected methodAccumulateChangeData Accumulates the change data of the child.
(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)
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 methodCloneCreates a new object that is a copy of the current instance.
Public methodCopyFrom Copies the data from another 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(EventArgs) with 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)
Protected methodFixValuesForDataBoundsOrgAndEnd Fixes the data bounds org and end. Here you have to handle special cases, like org and end are equal. At return, org should be strictly less than end.
Protected methodFixValuesForUserZoomed Fixes the values when the user zoomed. For instance, if org is greater then end, both values are interchanged.
Protected methodGetDataBoundsScaleMean Gets the mean value of the data bounds. We use the 'scale' mean, i.e. the physical value of the scale where its logical value is 0.5.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetResultingEndFromUserProvidedEnd Converts the user-provided end value to the resulting end value.
Protected methodGetResultingOrgFromUserProvidedOrg Converts the user-provided origin value to the resulting origin value.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodGetUserProvidedEndFromResultingEnd Converts a resulting end value back to the user-provided end value.
Protected methodGetUserProvidedOrgFromResultingOrg Converts a resulting origin value back to the user-provided origin value.
Protected methodHandleLowPriorityChildChangeCases Handles the cases when a child changes, but a reaction is necessary only if the node is currently not suspended.
(Inherited from SuspendableDocumentLeafNode)
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)
Public methodOnDataBoundsChanged Announces a change of the data bounds of the set of data belonging to a scale.
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 methodOnUserRescaled Updates the rescaling state after a user-initiated rescale command.
Public methodOnUserZoomed Updates the rescaling state after a user zoom action.
Protected methodProcessEnd_DataBoundsChanged Recalculates the resulting end after the data bounds changed.
Protected methodProcessEnd_UserParametersChanged Recalculates the resulting end after user parameters changed.
Protected methodProcessEnd_UserRescaled Recalculates the resulting end after the user changed the rescaling mode.
Protected methodProcessEnd_UserZoomed Recalculates the resulting end after the user zoomed the end boundary.
Protected methodProcessOrg_DataBoundsChanged Recalculates the resulting origin after the data bounds changed.
Protected methodProcessOrg_UserParametersChanged Recalculates the resulting origin after user parameters changed.
Protected methodProcessOrg_UserRescaled Recalculates the resulting origin after the user changed the rescaling mode.
Protected methodProcessOrg_UserZoomed Recalculates the resulting origin after the user zoomed the origin boundary.
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 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 methodSetUserParameters(BoundaryRescaling, DateTime, BoundaryRescaling, DateTime) Sets user-provided rescaling parameters using absolute date-time values.
Public methodSetUserParameters(BoundaryRescaling, BoundariesRelativeTo, Int64, DateTimeKind, BoundaryRescaling, BoundariesRelativeTo, Int64, DateTimeKind) Sets user-provided rescaling parameters using raw tick values and relative modes.
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_dataBoundsEnd Stores the upper data bound in ticks.
Protected field_dataBoundsOrg Stores the lower data bound in ticks.
Protected field_endRescaling Stores the rescaling mode for the end boundary.
Protected field_orgRescaling Stores the rescaling mode for the origin boundary.
Protected field_parent The parent object this instance belongs to.
(Inherited from SuspendableDocumentNodeBase)
Protected field_resultingEnd Stores the resulting end value in ticks.
Protected field_resultingMaxEnd Stores the maximum permissible resulting end value.
Protected field_resultingMinOrg Stores the minimum permissible resulting origin value.
Protected field_resultingOrg Stores the resulting origin value in ticks.
Protected field_userProvidedEndDateTimeKind Stores the DateTimeKind of the user-provided end value.
Protected field_userProvidedEndRelativeTo Stores how the user-provided end value is interpreted relative to the data bounds.
Protected field_userProvidedEndValue Stores the user-provided end value.
Protected field_userProvidedOrgDateTimeKind Stores the DateTimeKind of the user-provided origin value.
Protected field_userProvidedOrgRelativeTo Stores how the user-provided origin value is interpreted relative to the data bounds.
Protected field_userProvidedOrgValue Stores the user-provided origin value.
Top
Extension Methods
 NameDescription
Public Extension MethodGetPropertyContext Gets the property context of the document node. If the provided node is not implementing IPropertyBagOwner, the parent nodes of this node are searched, until a node which implements IPropertyBagOwner is found.
(Defined by PropertyExtensions)
Top
See Also