From 09daf20b81cdae78772f07c0af22a571d7cc73eb Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 29 Nov 2001 19:24:00 +0000 Subject: Documentation updates galore (up to chapter 7, still need to do chapter 8 and 9, tweek the appendices, and recapture the screenshots...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Chart.html | 56 ++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'documentation/Fl_Chart.html') diff --git a/documentation/Fl_Chart.html b/documentation/Fl_Chart.html index 7a65a772d..cc00cce70 100644 --- a/documentation/Fl_Chart.html +++ b/documentation/Fl_Chart.html @@ -51,69 +51,69 @@ This widget displays simple charts and is provided for Forms compatibility. -

Fl_Chart::Fl_Chart(int x, int y, int w, +

Fl_Chart::Fl_Chart(int x, int y, int w, int h, const char *label = 0)

- Creates a new Fl_Chart widget using the given position, size, -and label string. The default boxtype is FL_NO_BOX. + Creates a new Fl_Chart widget using the given position, size, +and label string. The default boxtype is FL_NO_BOX.

virtual Fl_Chart::~Fl_Chart()

- Destroys the Fl_Chart widget and all of its data. -

void add(double value, const char *label = + Destroys the Fl_Chart widget and all of its data. +

void add(double value, const char *label = NULL, uchar color = 0)

The add method adds the value and optionally -label and color to the chart. +label and color to the chart.

uchar autosize(void) const
void autosize(uchar onoff)

- The autosize method controls whether or not the chart will -automatically adjust the bounds of the chart. The first form returns a -boolean value that is non-zero if auto-sizing is enabled and zero is -auto-sizing is disabled. -

The second form of autosize sets the auto-sizing property + The autosize method controls whether or not the chart will +automatically adjust the bounds of the chart. The first form returns a +boolean value that is non-zero if auto-sizing is enabled and zero is +auto-sizing is disabled. +

The second form of autosize sets the auto-sizing property to onoff.

void bounds(double *a, double *b)
void bounds(double a, double b)

- The bounds method gets or sets the lower and upper bounds of -the chart values to a and b respectively. + The bounds method gets or sets the lower and upper bounds of +the chart values to a and b respectively.

void clear(void)

- The clear method removes all values from the chart. -

void insert(int pos, double value, const + The clear method removes all values from the chart. +

void insert(int pos, double value, const char *label = NULL, uchar color = 0)

The insert method inserts a data value at the given position -pos. Position 0 is the first data value. +pos. Position 0 is the first data value.

int maxsize(void) const
void maxsize(int n)

-The maxsize method gets or sets the maximum number of data +The maxsize method gets or sets the maximum number of data values for a chart. If you do not call this method then the chart will be allowed to grow to any size depending on available memory. -

void replace(int pos, double value, const +

void replace(int pos, double value, const char *label = NULL, uchar color = 0)

The replace method replaces data value pos with -value, label, and color. Position 0 is the -first data value. +value, label, and color. Position 0 is the +first data value.

int size(void) const

- The size method returns the number of data values in the -chart. + The size method returns the number of data values in the +chart.

uchar type() const
void type(uchar t)

- The first form of type() returns the current chart type. The -chart type can be one of the following: + The first form of type() returns the current chart type. The +chart type can be one of the following:
FL_BAR_CHART
Each sample value is drawn as a vertical bar.
FL_FILLED_CHART
-
The chart is filled from the bottom of the graph to the sample +
The chart is filled from the bottom of the graph to the sample values.
FL_HORBAR_CHART
Each sample value is drawn as a horizontal bar.
FL_LINE_CHART
-
The chart is drawn as a polyline with vertices at each sample +
The chart is drawn as a polyline with vertices at each sample value.
FL_PIE_CHART
-
A pie chart is drawn with each sample value being drawn as a +
A pie chart is drawn with each sample value being drawn as a proportionate slice in the circle.
FL_SPECIALPIE_CHART
Like FL_PIE_CHART, but the first slice is separated from the pie.
FL_SPIKE_CHART
Each sample value is drawn as a vertical line.
- The second form of type() sets the chart type to t. + The second form of type() sets the chart type to t. -- cgit v1.2.3