Click or drag to resize

How to develop a DomScript

User can code custom scripts in order to render the content that will be displayed in the Dom View. The DomScriptBase class exposes the Plot method which can be used to render the view as per his requirement.

Abstract methods

Plot(DrawingContext, Double, Double, Double, Double)

The Plot method is called by ArthaChitra when it renders the Dom View. User must override this property to define how the data will be displayed.

Understanding State

During the life cycle of a DomScript it goes through different stages or processes. In each stage the DomScript performs a set of jobs. In which state the indicator s in is defined by the State property. Whenever the state gets changed it raises the method OnStateChange. The different states which a DomScript goes through are:

  • Initialize - User can initialize classes, define variables etc. here.
  • StartUp - The DomScript is on the roll.
  • Finalize - Called when the DomScripts encounters an exception or is being finalized (disposed off). All clear up codes should be placed here.
Xaml