#include <Gridlines.h>

Public Member Functions | |
| virtual void | enableMinorGridlines (bool bEnable)=0 |
| virtual bool | areMinorGridlinesEnabled () const =0 |
| virtual void | setColor (const ColorType &lineColor)=0 |
| virtual ColorType | getColor () const =0 |
| virtual void | setLineWidth (int lineWidth)=0 |
| virtual int | getLineWidth () const =0 |
| virtual void | setLineStyle (LineStyle lineStyle)=0 |
| virtual LineStyle | getLineStyle () const =0 |
| virtual void | setMaxNumMajorLines (int numLines)=0 |
| virtual void | setMaxNumMinorLines (int numLines)=0 |
| virtual int | getMaxNumMajorLines () const =0 |
| virtual int | getMaxNumMinorLines () const =0 |
Protected Member Functions | |
| virtual | ~Gridlines () |
The gridlines object is provided automatically by a plot view and is created as a secondary plot object. As a secondary object, the gridlines object does not have extents, so the getExtents() method will return false.
A gridlines object consists of major and minor gridlines. The major gridlines are always displayed, and the display of the minor gridlines can be toggled on and off with enableMinorGridlines().
This subclass of Subject will notify upon the following conditions:
Definition at line 37 of file Gridlines.h.
| virtual Gridlines::~Gridlines | ( | ) | [protected, virtual] |
A plug-in cannot create this object, it can only retrieve an already existing object from a plot view.
The plot view manages any instances of this object.
Definition at line 181 of file Gridlines.h.
| virtual void Gridlines::enableMinorGridlines | ( | bool | bEnable | ) | [pure virtual] |
Toggles the display of the minor gridlines.
| bEnable | Set this value to true to display the minor gridlines, or to false to hide the minor gridlines. |
| virtual bool Gridlines::areMinorGridlinesEnabled | ( | ) | const [pure virtual] |
Queries whether minor gridlines are displayed.
| virtual void Gridlines::setColor | ( | const ColorType & | lineColor | ) | [pure virtual] |
Sets the color of the gridlines.
| lineColor | The gridline color. |
| virtual ColorType Gridlines::getColor | ( | ) | const [pure virtual] |
Returns the gridline color.
| virtual void Gridlines::setLineWidth | ( | int | lineWidth | ) | [pure virtual] |
Sets the line width of the gridlines.
| lineWidth | The gridline width. |
| virtual int Gridlines::getLineWidth | ( | ) | const [pure virtual] |
Returns the gridline width.
| virtual void Gridlines::setLineStyle | ( | LineStyle | lineStyle | ) | [pure virtual] |
Sets the line style of the gridlines.
| lineStyle | The gridline style. |
| virtual LineStyle Gridlines::getLineStyle | ( | ) | const [pure virtual] |
Returns the gridline style.
| virtual void Gridlines::setMaxNumMajorLines | ( | int | numLines | ) | [pure virtual] |
Sets the maximum number of major gridlines.
This method sets the maximum number of major gridlines to display in the plot view. Calling this method recalculates the overall locations of the gridlines.
| numLines | The new maximum number of major gridlines. |
| virtual void Gridlines::setMaxNumMinorLines | ( | int | numLines | ) | [pure virtual] |
Sets the maximum number of minor gridlines.
This method sets the maximum number of minor gridlines to display between each major gridline in the plot view. Calling this method recalculates the overall locations of the gridlines.
| numLines | The new maximum number of minor gridlines. |
| virtual int Gridlines::getMaxNumMajorLines | ( | ) | const [pure virtual] |
Returns the maximum number of major gridlines.
This method returns the maximum number of major gridlines that are displayed in the plot view. The default value is ten.
| virtual int Gridlines::getMaxNumMinorLines | ( | ) | const [pure virtual] |
Returns the maximum number of minor gridlines.
This method returns the maximum number of minor gridlines that are displayed between each major gridline in the plot view. The default value is four.