FigureBase

The DFL-specific parts of the Figure class. These include wrappers around the subset of drawing functionality used by Plot2Kill.

Members

Functions

getBrush
Brush getBrush(Color color)

Get a brush in a GUI framework-agnostic way.

getPen
Pen getPen(Color color, double width = 1)

Get a pen in a GUI framework-agnostic way.

saveToFile
void saveToFile(string filename, string type, double width = 0, double height = 0)

Saves this figure to a file. The file type can be one of the raster formats .png or .bmp. Saving to vector formats will likely never be supported on DFL because DFL's drawing backend is GDI, which is inherently raster-based. The width and height parameters allow you to specify explicit width and height parameters for the image file. If width and height are left at their default values of 0, the default width and height of the subclass being saved will be used.

saveToFile
void saveToFile(string filename, double width = 0, double height = 0)

Convenience function that infers the type from the filename extenstion and defaults to .png if no valid file format extension is found.

showAsMain
void showAsMain()
toControl
FigureControl toControl()

Inherited Members

From GuiAgnosticBase

title
string title()
title
This title(string newTitle)
xLabel
string xLabel()
xLabel
This xLabel(string newLabel)
yLabel
string yLabel()
yLabel
This yLabel(string newLabel)
titleFont
Font titleFont()
titleFont
This titleFont(Font newTitleFont)
xLabelFont
Font xLabelFont()
xLabelFont
This xLabelFont(Font newLabelFont)
yLabelFont
Font yLabelFont()
yLabelFont
This yLabelFont(Font newLabelFont)

Meta