Inheritance diagram for NPlot::Legend:
Public Types | |
enum | Placement { Inside = 0, Outside = 1 } |
Enumeration of possible Legend placements. More... | |
Public Member Functions | |
void | AttachTo (PlotSurface2D.XAxisPosition xa, PlotSurface2D.YAxisPosition ya) |
Specify the Axes to attach the legend to. | |
Legend () | |
Default constructor. | |
void | UpdateAxesPositions (PhysicalAxis pXAxis1, PhysicalAxis pYAxis1, PhysicalAxis pXAxis2, PhysicalAxis pYAxis2, ArrayList plots, float scale, int padding, Rectangle bounds, out Point position) |
Updates the PlotSurface2D axes to compensate for the legend. | |
Properties | |
bool | NeverShiftAxes |
Whether or not the positions of the Axes may be shifted to make room for the Legend. | |
int | XOffset |
Offset from the chosen Y-Axis. | |
int | YOffset |
Offset from the X-Axis. | |
Legend.Placement | VerticalEdgePlacement |
Whether or not to attach the legend on the inside of the top or bottom axis (which, is specified using the AttachTo method) or the outside. | |
Legend.Placement | HorizontalEdgePlacement |
Whether or not to attach the legend on the inside of the left or right axis (which, is specified using the AttachTo method) or the outside. | |
Private Attributes | |
int | xOffset_ |
int | yOffset_ |
PlotSurface2D.XAxisPosition | xAttach_ |
PlotSurface2D.YAxisPosition | yAttach_ |
Placement | horizontalEdgePlacement_ |
Placement | verticalEdgePlacement_ |
bool | neverShiftAxes_ |
Definition at line 63 of file Legend.cs.
|
Enumeration of possible Legend placements.
|
|
Default constructor.
Definition at line 189 of file Legend.cs. References horizontalEdgePlacement_, neverShiftAxes_, verticalEdgePlacement_, xAttach_, xOffset_, yAttach_, and yOffset_. |
|
Specify the Axes to attach the legend to.
|
|
Updates the PlotSurface2D axes to compensate for the legend.
Definition at line 213 of file Legend.cs. References horizontalEdgePlacement_, neverShiftAxes_, NPlot::PhysicalAxis::PhysicalMax, NPlot::PhysicalAxis::PhysicalMin, verticalEdgePlacement_, xAttach_, and yAttach_. Referenced by NPlot::PlotSurface2D::Draw(). |
|
Definition at line 85 of file Legend.cs. Referenced by Legend(), and UpdateAxesPositions(). |
|
Definition at line 87 of file Legend.cs. Referenced by Legend(), and UpdateAxesPositions(). |
|
Definition at line 86 of file Legend.cs. Referenced by Legend(), and UpdateAxesPositions(). |
|
Definition at line 83 of file Legend.cs. Referenced by AttachTo(), Legend(), and UpdateAxesPositions(). |
|
Definition at line 81 of file Legend.cs. Referenced by Legend(). |
|
Definition at line 84 of file Legend.cs. Referenced by AttachTo(), Legend(), and UpdateAxesPositions(). |
|
Definition at line 82 of file Legend.cs. Referenced by Legend(). |
|
Whether or not to attach the legend on the inside of the left or right axis (which, is specified using the AttachTo method) or the outside.
|
|
Whether or not the positions of the Axes may be shifted to make room for the Legend.
|
|
Whether or not to attach the legend on the inside of the top or bottom axis (which, is specified using the AttachTo method) or the outside.
|
|
Offset from the chosen Y-Axis. TODO: better description. |
|
Offset from the X-Axis. TODO: better description. |