2001.08.27
If you make any improvements to this class please let me
know so that i can put them up here.
Examples included on the bottom
This software is Free like Linux
Constructor Summary |
HTML_graph()
Constructor of the class HTML_graph. |
Method Summary |
void |
calculate()
Method to calculate the colors and values and percentages. |
void |
horizontal()
Method to display the graph horizontaly. |
void |
SetBackgroungImage(var $imagePath)
Method to set the background image for the graph. |
void |
SetBgColour(var $colour)
Method to set the background color for the graph. |
void |
SetBorderColor(var $color)
Method to set the border color for the graph. |
void |
SetBorderStyle(var $style)
Method to set the border style for the graph. |
void |
SetBorderWidth(var $width)
Method to set the border width for the graph. |
void |
SetDescriptionLink(var $arrayOfLinks)
Method to set the description link value.If there is a link value,
users will be able to go to that link by clicking on it. |
void |
SetFixedSize(var $size)
Method to set the value of fixedsize(this will effect the size of the graph). |
void |
SetNumber(var $number)
Method to set the numbers on / off the graph. |
void |
SetNumberFont(var $font)
Method to set the number font for the graph. |
void |
SetNumberFontColor(var $fontColor)
Method to set the number font color for the graph. |
void |
SetNumberFontSize(var $fontSize)
Method to set the number font size for the graph. |
void |
SetNumberFontWeight(var $fontWeight)
Method to set the number font weight for the graph. |
void |
SetNumberPrecision(var $size)
Method to set the number precision. |
void |
SetPercentage(var $percentage)
Method to set the percentage on / off graph. |
void |
SetPercentagePrecision(var $size)
Method to set the percentage precision. |
void |
SetShadow(var $trueFalse)
Method to set a shadow for the graph. |
void |
SetTextFont(var $font)
Method to set the text font for the graph. |
void |
SetTextFontColor(var $fontColor)
Method to set the text font color for the graph. |
void |
SetTextFontSize(var $fontSize)
Method to set the text font size for the graph. |
void |
SetTextFontWeight(var $fontWeight)
Method to set the text font weight for the graph. |
void |
SetTitle(var $title)
Method to set the title of the graph. |
unknown |
sort()
|
void |
vertical()
Method to display the graph vertically. |
HTML_graph
public HTML_graph()
- Constructor of the class HTML_graph.
calculate
public void calculate()
- Method to calculate the colors and values and percentages.
SetTitle
public void SetTitle(var $title)
- Method to set the title of the graph.
SetBackgroungImage
public void SetBackgroungImage(var $imagePath)
- Method to set the background image for the graph.
SetBgColour
public void SetBgColour(var $colour)
- Method to set the background color for the graph.
SetPercentage
public void SetPercentage(var $percentage)
- Method to set the percentage on / off graph.
SetNumber
public void SetNumber(var $number)
- Method to set the numbers on / off the graph.
SetTextFont
public void SetTextFont(var $font)
- Method to set the text font for the graph.
SetTextFontColor
public void SetTextFontColor(var $fontColor)
- Method to set the text font color for the graph.
SetTextFontSize
public void SetTextFontSize(var $fontSize)
- Method to set the text font size for the graph.
SetTextFontWeight
public void SetTextFontWeight(var $fontWeight)
- Method to set the text font weight for the graph.
SetNumberFont
public void SetNumberFont(var $font)
- Method to set the number font for the graph.
SetNumberFontColor
public void SetNumberFontColor(var $fontColor)
- Method to set the number font color for the graph.
SetNumberFontSize
public void SetNumberFontSize(var $fontSize)
- Method to set the number font size for the graph.
SetNumberFontWeight
public void SetNumberFontWeight(var $fontWeight)
- Method to set the number font weight for the graph.
SetShadow
public void SetShadow(var $trueFalse)
- Method to set a shadow for the graph.
SetBorderStyle
public void SetBorderStyle(var $style)
- Method to set the border style for the graph.
SetBorderWidth
public void SetBorderWidth(var $width)
- Method to set the border width for the graph.
SetBorderColor
public void SetBorderColor(var $color)
- Method to set the border color for the graph.
SetFixedSize
public void SetFixedSize(var $size)
- Method to set the value of fixedsize(this will effect the size of the graph).
SetPercentagePrecision
public void SetPercentagePrecision(var $size)
- Method to set the percentage precision.
SetNumberPrecision
public void SetNumberPrecision(var $size)
- Method to set the number precision.
SetDescriptionLink
public void SetDescriptionLink(var $arrayOfLinks)
- Method to set the description link value.If there is a link value,
users will be able to go to that link by clicking on it.
sort
public unknown sort()
horizontal
public void horizontal()
- Method to display the graph horizontaly.
vertical
public void vertical()
- Method to display the graph vertically.