FigureBase

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

Constructors

this
this()
Undocumented in source.

Members

Functions

drawLine
void drawLine(Pen pen, double startX, double startY, double endX, double endY)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLine
void drawLine(Pen pen, PlotPoint start, PlotPoint end)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(Pen pen, double x, double y, double width, double height)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(Pen pen, PlotRect r)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRotatedText
void drawRotatedText(string text, Font font, Color pointColor, PlotRect rect, TextAlignment alignment)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Font font, Color pointColor, PlotRect rect, TextAlignment alignment)
Undocumented in source. Be warned that the author may not have intended to support it.
drawText
void drawText(string text, Font font, Color pointColor, PlotRect rect)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTo
void drawTo(Graphics context)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTo
void drawTo(Graphics context, double width, double height)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTo
void drawTo(Graphics context, PlotRect whereToDraw)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRectangle
void fillRectangle(Brush brush, double x, double y, double width, double height)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRectangle
void fillRectangle(Brush brush, PlotRect r)
Undocumented in source. Be warned that the author may not have intended to support it.
getBrush
Brush getBrush(Color color)

Get a brush in a GUI framework-agnostic way.

getPen
Pen getPen(Color color, double width)

Get a pen in a GUI framework-agnostic way.

measureText
Size measureText(string text, Font font, double maxWidth, TextAlignment alignment)
Undocumented in source. Be warned that the author may not have intended to support it.
measureText
Size measureText(string text, Font font, TextAlignment alignment)
Undocumented in source. Be warned that the author may not have intended to support it.
measureText
Size measureText(string text, Font font, double maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
measureText
Size measureText(string text, Font font)
Undocumented in source. Be warned that the author may not have intended to support it.
saveToFile
void saveToFile(string filename, string type, double width, double height)

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, double height)

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()

Manifest constants

fontSizeAdjust
enum fontSizeAdjust;
Undocumented in source.

Variables

context
Graphics context;
Undocumented in source.

Inherited Members

From GuiAgnosticBase

xOffset
double xOffset;
Undocumented in source.
yOffset
double yOffset;
Undocumented in source.
_width
double _width;
Undocumented in source.
_height
double _height;
Undocumented in source.
_title
string _title;
Undocumented in source.
_xLabel
string _xLabel;
Undocumented in source.
_yLabel
string _yLabel;
Undocumented in source.
_titleFont
Font _titleFont;
Undocumented in source.
_xLabelFont
Font _xLabelFont;
Undocumented in source.
_yLabelFont
Font _yLabelFont;
Undocumented in source.
drawImpl
void drawImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
defaultWindowWidth
int defaultWindowWidth()
Undocumented in source.
defaultWindowHeight
int defaultWindowHeight()
Undocumented in source.
minWindowWidth
int minWindowWidth()
Undocumented in source.
minWindowHeight
int minWindowHeight()
Undocumented in source.
width
double width()
Undocumented in source. Be warned that the author may not have intended to support it.
height
double height()
Undocumented in source. Be warned that the author may not have intended to support it.
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