C# Class NPlot.Legend

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

Méthodes publiques

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

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

Legend() public méthode

Default constructor.
public Legend ( ) : System
Résultat System

UpdateAxesPositions() public méthode

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