C# Class NPlot.Legend

Legend functionality specific to Legends associated with a PlotSurface2D.
Inheritance: LegendBase
Datei anzeigen Open project: mono/nplot-gtk Class Usage Examples

Public Methods

Method Description
AttachTo ( PlotSurface2D xa, PlotSurface2D ya ) : void

Specify the Axes to attach the legend to.

Legend ( ) : System

Default constructor.

UpdateAxesPositions ( PhysicalAxis pXAxis1, PhysicalAxis pYAxis1, PhysicalAxis pXAxis2, PhysicalAxis pYAxis2, ArrayList plots, float scale, int padding, Xwt.Rectangle bounds, Point &position ) : void

Updates the PlotSurface2D axes to compensate for the legend.

Method Details

AttachTo() public method

Specify the Axes to attach the legend to.
public AttachTo ( PlotSurface2D xa, PlotSurface2D ya ) : void
xa PlotSurface2D Specify which horizontal axis the legend should be attached to.
ya PlotSurface2D Specify which vertical axis the legend should be attached to.
return void

Legend() public method

Default constructor.
public Legend ( ) : System
return System

UpdateAxesPositions() public method

Updates the PlotSurface2D axes to compensate for the legend.
public UpdateAxesPositions ( PhysicalAxis pXAxis1, PhysicalAxis pYAxis1, PhysicalAxis pXAxis2, PhysicalAxis pYAxis2, ArrayList plots, float scale, int padding, Xwt.Rectangle bounds, Point &position ) : void
pXAxis1 PhysicalAxis the bottom x axis
pYAxis1 PhysicalAxis the left y axis
pXAxis2 PhysicalAxis the top x axis
pYAxis2 PhysicalAxis the right y axis
plots System.Collections.ArrayList list of plots.
scale float scale parameter (for text and other)
padding int padding around plot within bounds.
bounds Xwt.Rectangle graphics surface bounds
position Point legend position
return void