C# Класс Web.PlotSurface2D

Наследование: System.Web.UI.WebControls.WebControl, IPlotSurface2D
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
buildPlotURL String
prefix string

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnInit ( EventArgs e ) : void

Initialization event.

Render ( HtmlTextWriter output ) : void

Render this control as an HTML stream.

Приватные методы

Метод Описание
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

Описание методов

Add() публичный Метод

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.
Результат void

Add() публичный Метод

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.
Результат void

Add() публичный Метод

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)
Результат void

Add() публичный Метод

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)
Результат void

AddAxesConstraint() публичный Метод

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.
Результат void

Clear() публичный Метод

Clears the plot.
public Clear ( ) : void
Результат void

OnInit() защищенный Метод

Initialization event.
protected OnInit ( EventArgs e ) : void
e EventArgs
Результат void

PlotSurface2D() публичный Метод

Default constructor.
public PlotSurface2D ( )

Remove() публичный Метод

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.
Результат void

Render() защищенный Метод

Render this control as an HTML stream.
protected Render ( HtmlTextWriter output ) : void
output HtmlTextWriter The HTML writer to write out to.
Результат void