C# Class NPlot.FilledRegion

A quick and dirty Filled region plottable object
This could be integrated with LinePlot at some stage since a FilledRegion can be bounded by two LinePlots. Describing the Paths once and then both doing a FillPreserve () and a Stroke () would be more efficient
Inheritance: IDrawable
Mostra file Open project: mono/nplot-gtk Class Usage Examples

Public Methods

Method Description
Draw ( System g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void

Draw the filled region

FilledRegion ( HorizontalLine l1, HorizontalLine l2 ) : System

Constructor

FilledRegion ( LinePlot lp1, LinePlot lp2 ) : System

Constructor

TODO: make this work with other plot types.

FilledRegion ( VerticalLine l1, VerticalLine l2 ) : System

Constructor

Method Details

Draw() public method

Draw the filled region
public Draw ( System g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void
g System The GDI+ surface on which to draw.
xAxis PhysicalAxis The X-Axis to draw against.
yAxis PhysicalAxis The Y-Axis to draw against.
return void

FilledRegion() public method

Constructor
public FilledRegion ( HorizontalLine l1, HorizontalLine l2 ) : System
l1 HorizontalLine Vertical line to provide bounds for filled region
l2 HorizontalLine The other Vertical line to provide bounds for filled region
return System

FilledRegion() public method

Constructor
TODO: make this work with other plot types.
public FilledRegion ( LinePlot lp1, LinePlot lp2 ) : System
lp1 LinePlot LinePlot that provides bounds to filled region [upper or lower]
lp2 LinePlot LinePlot that provides bounds to filled region [upper or lower]
return System

FilledRegion() public method

Constructor
public FilledRegion ( VerticalLine l1, VerticalLine l2 ) : System
l1 VerticalLine Vertical line to provide bounds for filled region
l2 VerticalLine The other Vertical line to provide bounds for filled region
return System