<p>First, the <aclass="el"href="classHurricane_1_1Graphics.html"title="Manage basic graphical configuration (API) ">Graphics</a> object is a singleton that has to be accessed through the static getGraphics methods.</p>
<p>The <aclass="el"href="classHurricane_1_1Graphics.html"title="Manage basic graphical configuration (API) ">Graphics</a> object contains a set of DisplayStyles of which one is active at a time and so used to do all drawings. Each <aclass="el"href="classHurricane_1_1DisplayStyle.html"title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a> is identified though a name and can be selected with the setStyle() method.</p>
<p>The <aclass="el"href="classHurricane_1_1DisplayStyle.html"title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a> itself is a set of DrawingStyle. Each DrawingStyle is named and provides a QColor, a QPen and a QBrush. QColor, QPen & QBrush are build from the <code></code>(red,green,blue) , <code>BorderWidth</code> and <code>pattern</code> .</p>
<p>Direct access to the DrawingStyle: once a <aclass="el"href="classHurricane_1_1DisplayStyle.html"title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a> has been selected, the <aclass="el"href="classHurricane_1_1Graphics.html"title="Manage basic graphical configuration (API) ">Graphics</a> accessors getColor(), getPen() or getBrush() gives you access to the DrawingStyles.</p>
<p>Minimal <aclass="el"href="classHurricane_1_1DisplayStyle.html"title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a>: any <aclass="el"href="classHurricane_1_1DisplayStyle.html"title="A complete set of DrawinStyles to uses with the CellWidget. ">DisplayStyle</a> contains at least the following DrawingStyles : </p><ul>
<p>Configuration parsers should create a DrawingStyle for each <aclass="elRef"doxygen="/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/"href="../hurricane/classHurricane_1_1BasicLayer.html">BasicLayer</a>, with the name of the <aclass="elRef"doxygen="/dsk/l1/jpc/coriolis-2.x/src/coriolis/hurricane/doc/hurricane/html/hurricane.tag:../hurricane/"href="../hurricane/classHurricane_1_1BasicLayer.html">BasicLayer</a> as the key. So the following code should be valid : </p><divclass="fragment"><divclass="line">QBrush layerBrush = <aclass="code"href="classHurricane_1_1Graphics.html#ad67a43df460d5c5d5179a81d2a72c9a9">Graphics::getBrush</a> ( layer->getName() );</div></div><!-- fragment --><p> If no DrawingStyle of that name is defined, the <b>Fallback</b> will be used. </p>