Click or drag to resize

DrawingBase Class

Base class to create a drawing object, like Line, Rectangle, Gann Fan etc
Inheritance Hierarchy

Namespace: ArthaChitra.Model.Chart
Assembly: ArthaChitra.Core (in ArthaChitra.Core.dll) Version: 2.0.6.0
Syntax
C#
public abstract class DrawingBase : ChartVisualBase, 
	ISerialize

The DrawingBase type exposes the following members.

Constructors
 NameDescription
Public methodDrawingBase 
Top
Properties
 NameDescription
Public propertyAxisOrientation Gets the Axis orientation. Axis orientation is derived from its Owner Set value is ignored
(Overrides ChartVisualBaseAxisOrientation)
Public propertyDebounceInterval Debounce interval
(Inherited from ChartVisualBase)
Protected propertyDialogService Opens a IDialogService dialog
(Inherited from ServiceBase)
Protected propertyDispatcher Gets the dispatcher
(Inherited from SharpScriptBase)
Public propertyDisplayName Gets the display name of the object
(Overrides SharpScriptBaseDisplayName)
Public propertyError Gets the Error string
(Inherited from ServiceBase)
Protected propertyFileService Opens a IFileService dialog
(Inherited from ServiceBase)
Public propertyHandleCount Gets the total number of handles
Public propertyHasLevel1Stream Has Level-I stream
(Inherited from ChartVisualBase)
Public propertyHasLevel2Stream Has Level-II stream
(Inherited from ChartVisualBase)
Public propertyHighestHigh Highest high of the series
(Inherited from ChartVisualBase)
Public propertyIcon Gets the icon as displayed in the tool bar of a chart
Public propertyIsAlert Gets or sets if the DrawingBase can shoot an alert
Public propertyIsAutoScale Is autoscale
(Inherited from ChartVisualBase)
Public propertyIsSelected Is the visual selected or not
(Inherited from ChartVisualBase)
Public propertyIsSharpScript Gets if the drawing object is created by a sharpScript code
(Inherited from ChartVisualBase)
Protected propertyIsValueChanged Checks if the view width or height, scale max or min etc parameters has changed. In case there has been a change, user needs to render the view
(Overrides ChartVisualBaseIsValueChanged)
Public propertyIsVisible Is series visible
(Inherited from ChartVisualBase)
Public propertyItem Gets the IDataErrorInfo error string
(Inherited from ServiceBase)
Public propertyLineHitTestWidth Gets teh Line hit test width
(Inherited from ChartVisualBase)
Public propertyLineWidth Returns the PenThickness or 5 whichever is higher
Public propertyLowestLow Lowest low of the series
(Inherited from ChartVisualBase)
Protected propertyMessageBox Opens a IMessageBoxService dialog
(Inherited from ServiceBase)
Public propertyName Gets the name
(Inherited from SharpScriptBase)
Public propertyObserveAllMarketDataTypes Observe all MarketDataType
(Inherited from ChartVisualBase)
Public propertyOwner Gets or sets the owner
Public propertyPanelIndex Gets the panel index. The index is derived from its Owner Set value is ignored
(Overrides ChartVisualBasePanelIndex)
Public propertyParent Gets the parent
(Overrides ChartVisualBaseParent)
Public propertyPen Gets or sets the pen
Public propertyPenHelper 
Public propertyReferenceDate Gets the data which determines if the drawing object will be loaded in the bars
Protected propertySingletonService Opens a ISingletonService dialog
(Inherited from ServiceBase)
Public propertyState Gets the current State of the script
(Inherited from SharpScriptBase)
Public propertyTemplate Gets the template as displayed in the property dialog
(Overrides SharpScriptBaseTemplate)
Top
Methods
 NameDescription
Protected methodAlert(String, String) Alert, with Medium. This alert is raised once.
(Inherited from ChartVisualBase)
Protected methodAlert(String, String, TimeSpan) Alert with Medium
(Inherited from ChartVisualBase)
Protected methodAlert(String, Priority, Brush, String) Alert. This alert is raised only once
(Inherited from ChartVisualBase)
Protected methodAlert(String, Priority, Brush, String, TimeSpan) Alert
(Inherited from ChartVisualBase)
Protected methodAlert(String, IInstrument, Priority, Brush, String, TimeSpan) Shoots an alert. The alert is triggered only when the State is Realtime
(Inherited from SharpScriptBase)
Protected methodCalculateMid Calculate the mid point of a line
Protected methodCalculateMinMax
(Inherited from ChartVisualBase)
Protected methodCalculatePriceFromY(Double, ChartVisualArgs) Calculate price from Y
(Inherited from VisualBase)
Protected methodCalculatePriceFromY(Double, Double, Double, Double, Double, ScaleType) Calculate the price from Y
(Inherited from VisualBase)
Protected methodCalculateSlope Calculates the slope between 2 points
Protected methodCalculateXFromBarIndex Calculate the X from bars index
(Inherited from VisualBase)
Protected methodCalculateXFromTimeOrBarIndex Calculates the X from time or bar index
Protected methodCalculateYFromPrice(Double, ChartVisualArgs) Calulate the Y point from price
(Inherited from VisualBase)
Protected methodCalculateYFromPrice(Double, Double, Double, Double, Double, ScaleType) Calculate Y from price
(Inherited from VisualBase)
Protected methodCanRender
(Inherited from ChartVisualBase)
Protected methodCloseLevel1Stream Close the Level1Stream
Protected methodContains Checks if the hit-test contains a drawing object
Protected methodCreateCollectionT Creates a ConcurrentObservableCollection
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize
(Inherited from SharpScriptBase)
Protected methodGetAngle Gets the angle of two points
Protected methodGetExtendedPoint(Point, Point, ChartVisualArgs) Get the extended point between two points
Protected methodGetExtendedPoint(Point, Point, Double) Calculates the extend point value of a line
Protected methodGetHandle Gets the handle
Protected methodGetHandleCursor Returns the handle cursor
(Inherited from ChartVisualBase)
Public methodGetHandleRect Returns the rectangle handle
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetLength Returns the distance between 2 points
Protected methodGetParallalPoint Gets the parallal points from a line
Protected methodGetSnapPoint(ChartVisualArgs) Gets the snap point depending on the SnapMode.
Protected methodGetSnapPoint(Point, ChartVisualArgs) Gets the snap point depending on the SnapMode
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInvalidateView
(Inherited from ChartVisualBase)
Protected methodInvokeAsync Invoke any action. It is recommended to draw any [!:ChartObject.DrawingBase] by invoking this method
(Inherited from SharpScriptBase)
Protected methodIsLineIntersectsLine Checks if two line intersects with each other
Protected methodIsLineIntersectsRect Checks if a line intersects with a Rect
Protected methodIsLineVisibleOnScreen Checks if the line is displayed on the view
Protected methodLog(String) Logs a message with Low
(Inherited from SharpScriptBase)
Protected methodLog(Priority, String) Logs a message with the specified Priority
(Inherited from SharpScriptBase)
Protected methodLog(Priority, Brush, String) Logs a message with the specified Priority and defined brush
(Inherited from SharpScriptBase)
Protected methodMakeHitTest Hit test. Return value: -1 - no hit, 0 - hit anywhere, > 1 - handle number
(Overrides ChartVisualBaseMakeHitTest(ChartVisualArgs))
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMove Mode the visual
(Inherited from ChartVisualBase)
Protected methodMoveHandleTo Moves the handle to the specified point
Protected methodNotifyPropertyChanged
(Inherited from SharpScriptBase)
Protected methodOnLevel1 Opens the Level-I stream
(Inherited from ChartVisualBase)
Protected methodOnLevel2 Opens the Level-II stream
(Inherited from ChartVisualBase)
Protected methodOnPreviewMouseDown If overriden then the drawing cursor will be available in the chart drawing menu item. This will be not called if the DrawingBase object is drawn programmatically.
Protected methodOnPreviewMouseMove Invoked on mouse move while creating or modifying DrawingBase object manually This will be not called if the DrawingBase object is drawn programmatically.
Protected methodOnPreviewMouseUp Triggers on mouse up
Protected methodOnPreviewTextInput Invoked upon text input via keyboard when a DrawingBase object is selected
Protected methodOnRender Renders the DrawingBase
(Overrides ChartVisualBaseOnRender(DrawingContext, ChartVisualArgs))
Protected methodOnRenderYAxis Renders the YAxis
(Overrides ChartVisualBaseOnRenderYAxis(DrawingContext, ChartVisualArgs))
Protected methodOnStateChange Invoked when the State changes
(Inherited from SharpScriptBase)
Protected methodPlaySound Play a sound file as located in the folder ~\Documents\ArthaChitra 2\Sounds
(Inherited from SharpScriptBase)
Protected methodPrint(String, String) Prints a message with Low
(Inherited from SharpScriptBase)
Protected methodPrint(Brush, String, String) Prints a message with a defined foreground brush
(Inherited from SharpScriptBase)
Protected methodPrint(Priority, String, String) Prints a message with the defined Priority
(Inherited from SharpScriptBase)
Protected methodRecalculate Recalculates the parameters
(Overrides ChartVisualBaseRecalculate(ChartVisualArgs))
Protected methodRound Rounds the value with the factor as defined in Options > General tab > RoundFactor
(Inherited from SharpScriptBase)
Protected methodSelectionSteps How far the selection rectangle will be drawn
(Inherited from VisualBase)
Protected methodShare Share messages via to social media SocialType The messages will be transmitted only when the state is Realtime
(Inherited from SharpScriptBase)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodToStringFormat Gets the formatted string value
(Inherited from ChartVisualBase)
Top
Events
 NameDescription
Public eventPropertyChanged
(Inherited from NotifyPropertyBase)
Top
See Also