C# 클래스 NPlot.LegendBase

Provides functionality for drawing legends.
The class is very closely tied to PlotSurface2D.
파일 보기 프로젝트 열기: mono/nplot-gtk

공개 메소드들

메소드 설명
Draw ( Graphics g, Point position, ArrayList plots, float scale ) : Xwt.Rectangle

Draw The legend

GetBoundingBox ( Point position, ArrayList plots, float scale ) : Xwt.Rectangle

Get the bounding box of the rectangle.

do implementation that doesn't call draw. Change xPos, yPos to PointF

LegendBase ( ) : System

Constructor.

메소드 상세

Draw() 공개 메소드

Draw The legend
public Draw ( Graphics g, Point position, ArrayList plots, float scale ) : Xwt.Rectangle
g Graphics The graphics surface on which to draw
position Point The position of the top left of the axis.
plots System.Collections.ArrayList Array of plot objects to appear in the legend.
scale float if the legend is set to scale, the amount to scale by.
리턴 Xwt.Rectangle

GetBoundingBox() 공개 메소드

Get the bounding box of the rectangle.
do implementation that doesn't call draw. Change xPos, yPos to PointF
public GetBoundingBox ( Point position, ArrayList plots, float scale ) : Xwt.Rectangle
position Point the position of the top left of the legend.
plots System.Collections.ArrayList Array of plot objects to appear in the legend.
scale float if the legend is set to scale, the amount to scale by.
리턴 Xwt.Rectangle

LegendBase() 공개 메소드

Constructor.
public LegendBase ( ) : System
리턴 System