Classe PieSection
Object
|
+--PieSection
- class
PieSection
This class «PieSection» permit to represent a section of pie chart.
GUI
UML diagrams
Version: 2.7
Auteur: MAEE
Definie dans ergonomique/fw_svg_chart.js
Sommaire des Attributs |
{ComposantChart} |
chart
Parent ComposantChart |
{String} |
text
Label for this pie section |
{Number} |
value
Value of this section |
Sommaire des Méthodes |
Element
|
drawPercent(rotation)
Draw the percent of value in a section, rotation in degree is used to
calculate the final position.
|
<private> Element
|
drawSection(rotation, i)
Draw a part of pie, a section rotation.
|
chart
{ComposantChart} chart
text
{String} text
Label for this pie section
value
{Number} value
PieSection
PieSection(<Number> value, <String> text, <ComposantChart> chart)
Version: 2.7
Auteur: MAEE
drawPercent
Element drawPercent(rotation)
Draw the percent of value in a section, rotation in degree is used to
calculate the final position.
Parameters:
current - Number
rotation start of pie part
Returns:
label with the percent value of this part
Version: 2.7
Auteur: MAEE
drawSection
<private> Element drawSection(rotation, i)
Draw a part of pie, a section rotation.
Parameters:
rotation -
current rotation start
i -
index for color and id
Version: 2.7
Auteur: MAEE
Version 2.10.0, / Etat : Validé
Cette création est mise à disposition selon le Contrat Paternité - Pas d'Utilisation Commerciale - Partage des Conditions Initiales à l'Identique disponible en ligne http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ ou par courrier postal à Creative Commons, 559 Nathan Abbott Way, Stanford,California 94305, USA.
Documentation generated by
JSDoc on Wed Jan 6 17:05:02 2010