Source for file WebTheme.php
Documentation is available at WebTheme.php
* <p>Title: Web Theme class</p>
* <p>Description: TeeChart for Java</p>
* <p>Copyright (c) 2004-2008 by Steema Software SL. All Rights Reserved.</p>
* <p>Company: Steema Software SL</p>
* Description of Classic theme
public function apply() {
$this->chart->getPanel()->getPen()->setVisible(true);
//$this->chart->getLegend()->getFont()->setName("Lucida Console");
$this->chart->getLegend()->getFont()->setSize(9);
$this->chart->getLegend()->setTransparent(true);
$this->doChangeWall($this->chart->getWalls()->getLeft());
$this->doChangeWall($this->chart->getWalls()->getRight());
$this->doChangeWall($this->chart->getWalls()->getBack());
$this->doChangeWall($this->chart->getWalls()->getBottom());
$this->chart->getWalls()->getBack()->setTransparent(false);
for ($t = 0; $t < $this->chart->getAxes()->getCount(); ++ $t) {
$this->doChangeAxis($this->chart->getAxes()->getAxis($t));
for ($t = 0; $t < $this->chart->getSeriesCount(); ++ $t) {
$this->doChangeSeries($this->chart->getSeries($t));
//chart->getHeader()->getFont()->setName("Lucida Console");
$this->chart->getHeader()->getFont()->setSize(10);
$this->chart->getHeader()->getFont()->setBold(true);
private function doChangeWall($wall) {
private function doChangeAxis($axis) {
$axis->getGrid()->setVisible(true);
$axis->getGrid()->setStyle(DashStyle::$SOLID);
$axis->getTicks()->setColor(Color::BLACK());
$axis->getMinorTicks()->setLength(- 3);
$axis->getTicks()->setLength(0);
$axis->getTicksInner()->setLength(6);
//$axis->getLabels()->getFont()->setName("Lucida Console");
$axis->getLabels()->getFont()->setSize(10);
private function doChangeSeries($series) {
//$series->getMarks()->getGradient()->setVisible(true);
//$series->getMarks()->getGradient()->setStartColor(Color::SILVER());
//$series->getMarks()->getFont()->setName("Lucida Console");
|