C# Class YAMP.SubPlotValue

A container class for various plots.
Inheritance: PlotValue, IFunction, ISetFunction
Exibir arquivo Open project: FlorianRappl/YAMP Class Usage Examples

Private Properties

Property Type Description
AddSubPlot SubPlotValue
InspectIndex void

Public Methods

Method Description
AddSubPlot ( int row, int column, PlotValue plot, int rowSpan = 1, int columnSpan = 1 ) : SubPlotValue

Adds a new subplot to the container.

Deserialize ( byte content ) : Value

Creates a new instance from a given binary content.

Perform ( ParseContext context, Value argument ) : Value

Gets a (sub) plot from this container.

Perform ( ParseContext context, Value indices, Value values ) : Value

Sets a subplot by specifying some indices and the value.

Serialize ( ) : byte[]

Takes the current instance into binary form.

SubPlotValue ( ) : System

Creates a new instance.

this ( int index ) : SubPlot

Gets the i-th subplot, where i is the index in the list of subplots.

Private Methods

Method Description
AddSubPlot ( ParseContext context, int row, int column, PlotValue plot, int rowSpan = 1, int columnSpan = 1 ) : SubPlotValue
InspectIndex ( Value value, int &index, int &span ) : void

Method Details

AddSubPlot() public method

Adds a new subplot to the container.
public AddSubPlot ( int row, int column, PlotValue plot, int rowSpan = 1, int columnSpan = 1 ) : SubPlotValue
row int The 1-based row index.
column int The 1-based column index.
plot PlotValue The plot to add.
rowSpan int The row span.
columnSpan int The column span.
return SubPlotValue

Deserialize() public method

Creates a new instance from a given binary content.
public Deserialize ( byte content ) : Value
content byte The binary content.
return Value

Perform() public method

Gets a (sub) plot from this container.
public Perform ( ParseContext context, Value argument ) : Value
context ParseContext The context from which this is going on.
argument Value The indices as arguments.
return Value

Perform() public method

Sets a subplot by specifying some indices and the value.
public Perform ( ParseContext context, Value indices, Value values ) : Value
context ParseContext The context where this is happening.
indices Value The indices to set it (1-dim or 2-dim).
values Value The subplot to set.
return Value

Serialize() public method

Takes the current instance into binary form.
public Serialize ( ) : byte[]
return byte[]

SubPlotValue() public method

Creates a new instance.
public SubPlotValue ( ) : System
return System

this() public method

Gets the i-th subplot, where i is the index in the list of subplots.
public this ( int index ) : SubPlot
index int The index i, which is greater or equal to 0 and lighter than Count.
return SubPlot