Framework JavaScript ACube V2.10.0
 

Classe ComposantChart

Object
   |
   +--ComposantSVG
         |
         +--ComposantChart
Les Sous-Classes directes:
ComposantChartLine, ComposantChartPie

class ComposantChart
extends ComposantSVG


This class represent a SVG chart, with a title and a legend. DataSet, legend and title are initialized by XML data when constructor is called. DataSet can be update and Chart redraw when the method "update() is called. Don't forget in XHTML page to define Three div correspond to the chart, legend of this chart and the title.


UML diagrams


Version: 2.7

Auteur: MAEE
Definie dans ergonomique/fw_svg_chart.js


Sommaire des Attributs
<private>  Array colors
          Array colors for data set.
<private>  Array dataset
          Contains chart data, fill after the method "initData()" called.
<private>  String divBindLegend
          Id for legend, equal at the attribute id of DIV for legend
<private>  String divBindTitle
          Id for Title, equal at the attribute id of DIV for Title
<private>  String title
          Title of this chart.
<private>  XMLObject XMLdata
          a XMLObject instance where will extract data for chart.
   
Attributs hérités de la classeComposantSVG
frameId, id, width, height, blankFile
 
Sommaire des Constructeurs
ComposantChart (frameId, divId, XMLdata, width, height, blankFile)
            This class represent a SVG chart, with a title and a legend.
 
Sommaire des Méthodes
 Object composantSVG(<String> frameId, <String> divId, <Number> width, <Number> height, <String> blankFile)
          
 <private>  void createGraphique()
           Generate and draw the core of SVG chart.
 <private>  void ecrireBind()
           This method ecrireBind() of ComposantChart class permit to write the HTML code for the SVG chart.
 void ecrireBindGraphe()
           This method writeBindGraphe() of ComposantChart class permit to write the HTML code for the core of SVG chart.
 <private>  void ecrireBindLegende()
           This method writeBindLegend() of ComposantChart class permit to write the HTML code for the legend of SVG chart.
 <private>  void ecrireBindTitle()
           This method writeBindTitle() of ComposantChart class permit to write the HTML code for the title of SVG chart.
 color getColor(<Integer> i)
           Get a color at index of i or modulo
 <private>  void initData()
           This method "initData()" override initData of ComposantChart class.
 void setColors(<Array> colors)
           Setter the colors attribute.
 void update()
           This method refresh data and redraw the chart.
 
Méthodes héritées de la classe ComposantSVG
initDivBind, getDocument, getSVGDocument, clear, show, hide, createTextNode, createElement
 

Détail des Attributs

colors

<private> Array colors

dataset

<private> Array dataset

divBindLegend

<private> String divBindLegend

divBindTitle

<private> String divBindTitle

title

<private> String title

XMLdata

<private> XMLObject XMLdata

Détail des Constructeurs

ComposantChart

ComposantChart(frameId, divId, XMLdata, width, height, blankFile)

Détail des Méthodes

composantSVG

Object composantSVG(<String> frameId, <String> divId, <Number> width, <Number> height, <String> blankFile)

createGraphique

 <private> void createGraphique()

ecrireBind

 <private> void ecrireBind()

ecrireBindGraphe

void ecrireBindGraphe()

ecrireBindLegende

 <private> void ecrireBindLegende()

ecrireBindTitle

 <private> void ecrireBindTitle()

getColor

color getColor(<Integer> i)

initData

 <private> void initData()

setColors

void setColors(<Array> colors)

update

void update()

Framework JavaScript ACube V2.10.0
 

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