C# Class Web.PlotSurface2D

Inheritance: System.Web.UI.WebControls.WebControl, IPlotSurface2D
Show file Open project: mono/nplot-gtk

Private Properties

Property Type Description
buildPlotURL String
prefix string

Public Methods

Method Description
Add ( IDrawable p ) : void

Adds a drawable object to the plot surface. If the object is an IPlot, the PlotSurface2D axes will also be updated.

Add ( IDrawable p, NPlot xp, NPlot yp ) : void

Adds a drawable object to the plot surface against the specified axes. If the object is an IPlot, the PlotSurface2D axes will also be updated.

Add ( IDrawable p, NPlot xp, NPlot yp, int zOrder ) : void

Adds a drawable object to the plot surface against the specified axes. If the object is an IPlot, the PlotSurface2D axes will also be updated.

Add ( IDrawable p, int zOrder ) : void

Adds a drawable object to the plot surface. If the object is an IPlot, the PlotSurface2D axes will also be updated.

AddAxesConstraint ( AxesConstraint c ) : void

Add an axis constraint to the plot surface. Axis constraints can specify relative world-pixel scalings, absolute axis positions etc.

Clear ( ) : void

Clears the plot.

PlotSurface2D ( )

Default constructor.

Remove ( IDrawable p, bool updateAxes ) : void

Remove a drawable object from the plot surface.

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

Initialization event.

Render ( HtmlTextWriter output ) : void

Render this control as an HTML stream.

Private Methods

Method Description
buildPlotURL ( ) : String

Ivan Ivanov wrote this function. From his email: If the request string contains encoded parameters values [e.g. # - %23]. The call to request.Url.ToString() will decode values [e.g. instead of %23 it will return #]. On the subsequent request to the page that contains the nplot control [when the actual drawing of the image takes place] the request url will be cut up to the unformated value [e.g. #] and since the PlotSurface2D_ is added at the end of the query string, it will be missing.

prefix ( ) : string

the prefix used for the session variables

Method Details

Add() public method

Adds a drawable object to the plot surface. If the object is an IPlot, the PlotSurface2D axes will also be updated.
public Add ( IDrawable p ) : void
p IDrawable The IDrawable object to add to the plot surface.
return void

Add() public method

Adds a drawable object to the plot surface against the specified axes. If the object is an IPlot, the PlotSurface2D axes will also be updated.
public Add ( IDrawable p, NPlot xp, NPlot yp ) : void
p IDrawable the IDrawable object to add to the plot surface
xp NPlot the x-axis to add the plot against.
yp NPlot the y-axis to add the plot against.
return void

Add() public method

Adds a drawable object to the plot surface against the specified axes. If the object is an IPlot, the PlotSurface2D axes will also be updated.
public Add ( IDrawable p, NPlot xp, NPlot yp, int zOrder ) : void
p IDrawable the IDrawable object to add to the plot surface
xp NPlot the x-axis to add the plot against.
yp NPlot the y-axis to add the plot against.
zOrder int The z-ordering when drawing (objects with lower numbers are drawn first)
return void

Add() public method

Adds a drawable object to the plot surface. If the object is an IPlot, the PlotSurface2D axes will also be updated.
public Add ( IDrawable p, int zOrder ) : void
p IDrawable The IDrawable object to add to the plot surface.
zOrder int The z-ordering when drawing (objects with lower numbers are drawn first)
return void

AddAxesConstraint() public method

Add an axis constraint to the plot surface. Axis constraints can specify relative world-pixel scalings, absolute axis positions etc.
public AddAxesConstraint ( AxesConstraint c ) : void
c AxesConstraint The axis constraint to add.
return void

Clear() public method

Clears the plot.
public Clear ( ) : void
return void

OnInit() protected method

Initialization event.
protected OnInit ( EventArgs e ) : void
e EventArgs
return void

PlotSurface2D() public method

Default constructor.
public PlotSurface2D ( )

Remove() public method

Remove a drawable object from the plot surface.
public Remove ( IDrawable p, bool updateAxes ) : void
p IDrawable the drawable to remove
updateAxes bool whether or not to update the axes after removing the idrawable.
return void

Render() protected method

Render this control as an HTML stream.
protected Render ( HtmlTextWriter output ) : void
output HtmlTextWriter The HTML writer to write out to.
return void