NPlot::Marker Class Reference

Encapsulates functionality relating to markers used by the PointPlot class. More...

List of all members.

Public Types

enum  MarkerType {
  Cross1, Cross2, Circle, Square,
  Triangle, TriangleUp, TriangleDown, Diamond,
  FilledCircle, FilledSquare, FilledTriangle, Flag,
  FlagUp, FlagDown, None
}
 Enumeration of all different types of marker. More...

Public Member Functions

 Marker ()
 Default constructor.
 Marker (MarkerType markertype)
 Constructor.
 Marker (MarkerType markertype, int size)
 Constructor.
 Marker (MarkerType markertype, int size, Color color)
 Constructor.
 Marker (MarkerType markertype, int size, Pen pen)
 Constructor.
 Marker (MarkerType markertype, int size, Pen pen, bool fill)
 Constructor.
void Draw (Graphics g, int x, int y)
 Draws the marker at the given position.

Properties

MarkerType Type
 The type of marker.
bool DropLine
 Whether or not to draw a dropline.
int Size
 The marker size.
Brush FillBrush
 The brush used to fill the marker.
bool Filled
 Fill with color.
System.Drawing.Color Color
 Sets the pen color and fill brush to be solid with the specified color.
System.Drawing.Pen Pen
 The Pen used to draw the marker.

Private Attributes

MarkerType markerType_
int size_
int h_
System.Drawing.Pen pen_ = new Pen( Color.Black )
System.Drawing.Brush brush_ = new SolidBrush( Color.Black )
bool filled_ = false
bool dropLine_ = false


Detailed Description

Encapsulates functionality relating to markers used by the PointPlot class.

Definition at line 62 of file Marker.cs.


Member Enumeration Documentation

enum NPlot::Marker::MarkerType
 

Enumeration of all different types of marker.

Enumerator:
Cross1  A simple cross marker (x).
Cross2  Another simple cross marker (+).
Circle  A circle marker.
Square  A square marker.
Triangle  A triangle marker (upwards).
TriangleUp  A triangle marker (upwards).
TriangleDown  A triangle marker (upwards).
Diamond  A diamond,.
FilledCircle  A filled circle.
FilledSquare  A filled square.
FilledTriangle  A filled triangle.
Flag  A small flag (up).
FlagUp  A small flag (up).
FlagDown  A small flag (down).
None  No marker.

Definition at line 68 of file Marker.cs.


Constructor & Destructor Documentation

NPlot::Marker::Marker  )  [inline]
 

Default constructor.

Definition at line 258 of file Marker.cs.

References filled_, markerType_, and Size.

NPlot::Marker::Marker MarkerType  markertype  )  [inline]
 

Constructor.

Parameters:
markertype The marker type.

Definition at line 270 of file Marker.cs.

References filled_, markerType_, and Size.

NPlot::Marker::Marker MarkerType  markertype,
int  size
[inline]
 

Constructor.

Parameters:
markertype The marker type.
size The marker size.

Definition at line 282 of file Marker.cs.

References filled_, markerType_, and Size.

NPlot::Marker::Marker MarkerType  markertype,
int  size,
Color  color
[inline]
 

Constructor.

Parameters:
markertype The marker type.
size The marker size.
color The marker color.

Definition at line 296 of file Marker.cs.

References Color, filled_, markerType_, and Size.

NPlot::Marker::Marker MarkerType  markertype,
int  size,
Pen  pen
[inline]
 

Constructor.

Parameters:
markertype The marker type.
size The marker size.
pen The marker Pen.

Definition at line 311 of file Marker.cs.

References filled_, markerType_, Pen, and Size.

NPlot::Marker::Marker MarkerType  markertype,
int  size,
Pen  pen,
bool  fill
[inline]
 

Constructor.

Parameters:
markertype The marker type.
size The marker size.
pen The marker Pen.
fill The fill flag.

Definition at line 327 of file Marker.cs.

References filled_, markerType_, Pen, and Size.


Member Function Documentation

void NPlot::Marker::Draw Graphics  g,
int  x,
int  y
[inline]
 

Draws the marker at the given position.

Parameters:
g The graphics surface on which to draw.
x The [physical] x position to draw the marker.
y The [physical] y position to draw the marker.

Definition at line 343 of file Marker.cs.

References brush_, filled_, h_, markerType_, pen_, and size_.

Referenced by NPlot::PointPlot::Draw(), and NPlot::MarkerItem::Draw().


Member Data Documentation

System.Drawing.Brush NPlot::Marker::brush_ = new SolidBrush( Color.Black ) [private]
 

Definition at line 136 of file Marker.cs.

Referenced by Draw().

bool NPlot::Marker::dropLine_ = false [private]
 

Definition at line 138 of file Marker.cs.

bool NPlot::Marker::filled_ = false [private]
 

Definition at line 137 of file Marker.cs.

Referenced by Draw(), and Marker().

int NPlot::Marker::h_ [private]
 

Definition at line 134 of file Marker.cs.

Referenced by Draw().

MarkerType NPlot::Marker::markerType_ [private]
 

Definition at line 132 of file Marker.cs.

Referenced by Draw(), and Marker().

System.Drawing.Pen NPlot::Marker::pen_ = new Pen( Color.Black ) [private]
 

Definition at line 135 of file Marker.cs.

Referenced by Draw().

int NPlot::Marker::size_ [private]
 

Definition at line 133 of file Marker.cs.

Referenced by Draw().


Property Documentation

System.Drawing.Color NPlot::Marker::Color [get, set]
 

Sets the pen color and fill brush to be solid with the specified color.

Definition at line 226 of file Marker.cs.

Referenced by Marker().

bool NPlot::Marker::DropLine [get, set]
 

Whether or not to draw a dropline.

Definition at line 161 of file Marker.cs.

Referenced by NPlot::PointPlot::Draw().

Brush NPlot::Marker::FillBrush [get, set]
 

The brush used to fill the marker.

Definition at line 194 of file Marker.cs.

bool NPlot::Marker::Filled [get, set]
 

Fill with color.

Definition at line 210 of file Marker.cs.

System.Drawing.Pen NPlot::Marker::Pen [get, set]
 

The Pen used to draw the marker.

Definition at line 243 of file Marker.cs.

Referenced by NPlot::PointPlot::Draw(), and Marker().

int NPlot::Marker::Size [get, set]
 

The marker size.

Definition at line 177 of file Marker.cs.

Referenced by Marker().

MarkerType NPlot::Marker::Type [get, set]
 

The type of marker.

Definition at line 145 of file Marker.cs.


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