NPlot::TextItem Class Reference

This class implements drawing text against two physical axes. More...

Inheritance diagram for NPlot::TextItem:

NPlot::IDrawable List of all members.

Public Member Functions

 TextItem (PointD position, string text)
 Constructor.
void Draw (System.Drawing.Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis)
 Draws the text on a plot surface.

Properties

string Text
 Text associated.
string text_ = ""
PointD Start
 The starting point for the text.
PointD start_
Brush TextBrush
 The brush used to draw the text.
Color TextColor
 Set the text to be drawn with a solid brush of this color.
Font TextFont
 The font used to draw the text associated with the arrow.
Brush textBrush_ = new SolidBrush( Color.Black )
Pen pen_ = new Pen( Color.Black )
Font font_

Private Member Functions

void Init ()

Detailed Description

This class implements drawing text against two physical axes.

Definition at line 61 of file TextItem.cs.


Constructor & Destructor Documentation

NPlot::TextItem::TextItem PointD  position,
string  text
[inline]
 

Constructor.

Parameters:
position The position the text starts.
text The text.

Definition at line 74 of file TextItem.cs.

References Init(), start_, and text_.


Member Function Documentation

void NPlot::TextItem::Draw System.Drawing.Graphics  g,
PhysicalAxis  xAxis,
PhysicalAxis  yAxis
[inline]
 

Draws the text on a plot surface.

Parameters:
g graphics surface on which to draw
xAxis The X-Axis to draw against.
yAxis The Y-Axis to draw against.

Definition at line 122 of file TextItem.cs.

References font_, start_, text_, textBrush_, NPlot::PhysicalAxis::WorldToPhysical(), NPlot::PointD::X, and NPlot::PointD::Y.

void NPlot::TextItem::Init  )  [inline, private]
 

Definition at line 63 of file TextItem.cs.

References font_.

Referenced by TextItem().


Property Documentation

Font NPlot::TextItem::font_ [private]
 

Definition at line 176 of file TextItem.cs.

Referenced by Draw(), and Init().

Pen NPlot::TextItem::pen_ = new Pen( Color.Black ) [private]
 

Definition at line 175 of file TextItem.cs.

PointD NPlot::TextItem::Start [get, set]
 

The starting point for the text.

Definition at line 103 of file TextItem.cs.

PointD NPlot::TextItem::start_ [private]
 

Definition at line 113 of file TextItem.cs.

Referenced by Draw(), and TextItem().

string NPlot::TextItem::Text [get, set]
 

Text associated.

Definition at line 86 of file TextItem.cs.

string NPlot::TextItem::text_ = "" [private]
 

Definition at line 96 of file TextItem.cs.

Referenced by Draw(), and TextItem().

Brush NPlot::TextItem::TextBrush [get, set]
 

The brush used to draw the text.

Definition at line 136 of file TextItem.cs.

Brush NPlot::TextItem::textBrush_ = new SolidBrush( Color.Black ) [private]
 

Definition at line 174 of file TextItem.cs.

Referenced by Draw().

Color NPlot::TextItem::TextColor [set]
 

Set the text to be drawn with a solid brush of this color.

Definition at line 152 of file TextItem.cs.

Font NPlot::TextItem::TextFont [get, set]
 

The font used to draw the text associated with the arrow.

Definition at line 163 of file TextItem.cs.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 01:04:09 2005 for NPlot by  doxygen 1.4.5