| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Set the title of a chart, make one of these and pass it into
|
|---|
| 5 | * open_flash_chart set_title
|
|---|
| 6 | */
|
|---|
| 7 | class title
|
|---|
| 8 | {
|
|---|
| 9 | function title( $text='' )
|
|---|
| 10 | {
|
|---|
| 11 | $this->text = $text;
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | /**
|
|---|
| 15 | * A css string. Can optionally contain:
|
|---|
| 16 | * - font-size
|
|---|
| 17 | * - font-family
|
|---|
| 18 | * - font-weight
|
|---|
| 19 | * - color
|
|---|
| 20 | * - background-color
|
|---|
| 21 | * - text-align
|
|---|
| 22 | * - margin
|
|---|
| 23 | * - margin-left
|
|---|
| 24 | * - margin-right
|
|---|
| 25 | * - margin-top
|
|---|
| 26 | * - margin-bottom
|
|---|
| 27 | * - padding
|
|---|
| 28 | * - padding-left
|
|---|
| 29 | * - padding-right
|
|---|
| 30 | * - padding-top
|
|---|
| 31 | * - padding-bottom
|
|---|
| 32 | * just like the css we use all the time :-)
|
|---|
| 33 | */
|
|---|
| 34 | function set_style( $css )
|
|---|
| 35 | {
|
|---|
| 36 | $this->style = $css;
|
|---|
| 37 | //"{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}";
|
|---|
| 38 | }
|
|---|
| 39 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.