Inheritance diagram for NPlot::LegendBase:
Public Types | |
enum | BorderType { None = 0, Line = 1, Shadow = 2 } |
The types of legend borders (enum). More... | |
Public Member Functions | |
LegendBase () | |
Constructor. | |
Rectangle | GetBoundingBox (Point position, ArrayList plots, float scale) |
Get the bounding box of the rectangle. | |
Rectangle | Draw (Graphics g, Point position, ArrayList plots, float scale) |
Draw The legend. | |
Properties | |
Font | Font |
The font used to draw text in the legend. | |
Font | font_ |
Color | TextColor |
The color used to draw text in the legend. | |
Color | textColor_ |
Color | BackgroundColor |
The background color of the legend. | |
Color | bgColor_ |
Color | BorderColor |
The color of the legend border. | |
Color | borderColor_ |
Legend.BorderType | BorderStyle |
The border style to use for the legend. | |
NPlot.Legend.BorderType | borderStyle_ |
bool | AutoScaleText |
Whether or not to auto scale text in the legend according the physical dimensions of the plot surface. | |
bool | autoScaleText_ |
int | NumberItemsVertically |
Setting this does two things. | |
int | numberItemsVertically_ = -1 |
int | NumberItemsHorizontally |
Setting this does two things. | |
int | numberItemsHorizontally_ = 1 |
The class is quite closely tied to PlotSurface2D.
Definition at line 65 of file LegendBase.cs.
|
The types of legend borders (enum).
Definition at line 373 of file LegendBase.cs. |
|
Constructor.
Definition at line 71 of file LegendBase.cs. References Font. |
|
Draw The legend.
Definition at line 106 of file LegendBase.cs. References AutoScaleText, bgColor_, borderColor_, BorderStyle, NPlot::IPlot::DrawInLegend(), Font, font_, NPlot::IPlot::Label, Line, numberItemsHorizontally_, numberItemsVertically_, Shadow, NPlot::IPlot::ShowInLegend, and textColor_. Referenced by NPlot::PlotSurface2D::Draw(). |
|
Get the bounding box of the rectangle.
Definition at line 90 of file LegendBase.cs. |
|
Whether or not to auto scale text in the legend according the physical dimensions of the plot surface.
Definition at line 413 of file LegendBase.cs. Referenced by Draw(). |
|
Definition at line 423 of file LegendBase.cs. |
|
The background color of the legend.
Definition at line 340 of file LegendBase.cs. |
|
Definition at line 350 of file LegendBase.cs. Referenced by Draw(). |
|
The color of the legend border.
Definition at line 357 of file LegendBase.cs. |
|
Definition at line 367 of file LegendBase.cs. Referenced by Draw(). |
|
The border style to use for the legend.
Definition at line 395 of file LegendBase.cs. Referenced by Draw(). |
|
Definition at line 405 of file LegendBase.cs. |
|
The font used to draw text in the legend.
Definition at line 306 of file LegendBase.cs. Referenced by Draw(), and LegendBase(). |
|
Definition at line 316 of file LegendBase.cs. Referenced by Draw(). |
|
Setting this does two things. First of all, it sets the maximum number of items in the legend horizontally. Second of all, it makes the legend grow vertically (as it must given this constraint). Definition at line 448 of file LegendBase.cs. |
|
Definition at line 455 of file LegendBase.cs. Referenced by Draw(). |
|
Setting this does two things. First of all, it sets the maximum number of items in the legend vertically. Second of all, it makes the legend grow horizontally (as it must given this constraint). Definition at line 432 of file LegendBase.cs. |
|
Definition at line 439 of file LegendBase.cs. Referenced by Draw(). |
|
The color used to draw text in the legend.
Definition at line 323 of file LegendBase.cs. |
|
Definition at line 333 of file LegendBase.cs. Referenced by Draw(). |