gccv::LineItem Class Reference

Base class for line items, whether straight or curved. More...

#include <line-item.h>

Inheritance diagram for gccv::LineItem:

gccv::Item gccv::BezierArrow gccv::FillItem gccv::Line gccv::PolyLine gccv::Squiggle gccv::Circle gccv::Leaf gccv::Rectangle gccv::Arrow gccv::Text

List of all members.

Public Member Functions

 LineItem (Canvas *canvas)
 LineItem (Group *parent, ItemClient *client=NULL)
virtual ~LineItem ()
void SetLineWidth (double val)
double GetLineWidth (void) const
void SetLineColor (GOColor val)
GOColor GetLineColor (void) const


Detailed Description

Base class for line items, whether straight or curved.

This base class implements the common properties of all lines.

Definition at line 40 of file line-item.h.


Constructor & Destructor Documentation

gccv::LineItem::LineItem ( Canvas canvas  ) 

Parameters:
canvas a Canvas.
Creates a new LineItem and sets it as a child of the root Group of canvas.

gccv::LineItem::LineItem ( Group parent,
ItemClient client = NULL 
)

Parameters:
parent the Group to which the new LineItem will be added.
client the ItemClient for the new LineItem if any.
Creates a new LineItem inside parent and sets client as its associated ItemClient.

virtual gccv::LineItem::~LineItem (  )  [virtual]

The destructor.


Member Function Documentation

gccv::LineItem::GetLineColor ( void   )  const [inline]

Returns:
the line color.

Definition at line 78 of file line-item.h.

gccv::LineItem::GetLineWidth ( void   )  const [inline]

Returns:
the line width

Definition at line 69 of file line-item.h.

gccv::LineItem::SetLineColor ( GOColor  color  )  [inline]

Parameters:
color the new line color.
Sets the LineItem color.

Definition at line 78 of file line-item.h.

gccv::LineItem::SetLineWidth ( double  width  )  [inline]

Parameters:
width the new line width.
Sets the LineItem line width.

Definition at line 69 of file line-item.h.


The documentation for this class was generated from the following file:

Generated on Fri Sep 24 15:58:43 2010 for The Gnome Chemistry Utils by  doxygen 1.5.9