C# Class Web.PlotSurface2D

Inheritance: System.Web.UI.WebControls.WebControl, IPlotSurface2D
Afficher le fichier Open project: mono/nplot-gtk

Private Properties

Свойство Type Description
buildPlotURL String
prefix string

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnInit ( EventArgs e ) : void

Initialization event.

Render ( HtmlTextWriter output ) : void

Render this control as an HTML stream.

Private Methods

Méthode 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 méthode

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.
Résultat void

Add() public méthode

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.
Résultat void

Add() public méthode

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)
Résultat void

Add() public méthode

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)
Résultat void

AddAxesConstraint() public méthode

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.
Résultat void

Clear() public méthode

Clears the plot.
public Clear ( ) : void
Résultat void

OnInit() protected méthode

Initialization event.
protected OnInit ( EventArgs e ) : void
e EventArgs
Résultat void

PlotSurface2D() public méthode

Default constructor.
public PlotSurface2D ( )

Remove() public méthode

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.
Résultat void

Render() protected méthode

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