当前位置: 首页>>代码示例>>PHP>>正文


PHP GanttBar::SetShadow方法代码示例

本文整理汇总了PHP中GanttBar::SetShadow方法的典型用法代码示例。如果您正苦于以下问题:PHP GanttBar::SetShadow方法的具体用法?PHP GanttBar::SetShadow怎么用?PHP GanttBar::SetShadow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GanttBar的用法示例。


在下文中一共展示了GanttBar::SetShadow方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GanttBar

$graph->scale->day->SetSundayFontColor('black');
$graph->scale->hour->SetFont(FF_FONT1);
$graph->scale->hour->SetIntervall(1);
$graph->scale->hour->SetStyle(HOURSTYLE_H24);
$graph->hgrid->SetRowFillColor('whitesmoke@0.9', 'darkblue@0.9');
$graph->setMargin(0, 0, 0, 20);
$graph->scale->hour->SetFont(FF_FONT1);
$graph->scale->day->SetFont(FF_FONT1, FS_BOLD);
$graph->title->SetColor('white');
$graph->scale->UseWeekendBackground(false);
$graph->scale->day->SetWeekendColor('lightyellow:1.5');
$graph->scale->week->SetFont(FF_FONT1);
$graph->hgrid->Show(true);
$graph->hgrid->SetRowFillColor('whitesmoke@0.9', 'darkblue@0.9');
if ($suma > 0) {
    for ($i = 0; $i < count($data); ++$i) {
        $bar = new GanttBar($data[$i][0], $data[$i][1], $data[$i][2], $data[$i][3]);
        $bar->SetPattern(BAND_RDIAG, 'lightgray');
        $bar->SetFillColor('brown');
        $bar->SetShadow(true, 'black@0.5');
        $graph->Add($bar);
    }
} else {
    $bar = new GanttBar(0, $text["noactivity"], "23:59", "00:00");
    $bar->SetPattern(BAND_RDIAG, 'white@1');
    $graph->Add($bar);
}
$graph->footer->left->Set($text["totalingame"] . " " . formatTD($suma));
$graph->footer->left->SetColor('black@0.5');
$graph->footer->left->SetFont(FF_FONT2, FS_BOLD);
$graph->Stroke();
开发者ID:redrock,项目名称:xlrstats-web-v2,代码行数:31,代码来源:inc_activitygraph.php

示例2: GanttBar

// match the weekend settings ...
$graph->scale->hour->SetFontColor($styles->val('image.session.header.color', 'black', true));
$graph->scale->hour->SetBackgroundColor($styles->val('image.session.header.bgcolor', 'lightyellow:1.5', true));
$graph->scale->hour->SetFont(constant($styles->val('image.session.font', 'FF_FONT0', true)));
$graph->scale->hour->SetIntervall($styles->val('image.session.interval', 2, true));
$graph->scale->hour->SetStyle(constant($styles->val('image.session.header.hourstyle', 'HOURSTYLE_H24', true)));
/**
$graph->scale->actinfo->SetBackgroundColor('lightyellow:1.5');
$graph->scale->actinfo->SetFont(FF_FONT0);
$graph->scale->actinfo->SetColTitles(array(""));
/**/
$show = (bool) $styles->val('image.session.hgrid.show', true, true);
$graph->hgrid->Show($show);
if ($show) {
    $graph->hgrid->SetRowFillColor($styles->val('image.session.hgrid.color1', 'whitesmoke@0.9', true), $styles->val('image.session.hgrid.color2', 'darkblue@0.9', true));
}
for ($i = 0; $i < count($data); ++$i) {
    $bar = new GanttBar($data[$i][0], $data[$i][1], $data[$i][2], $data[$i][3]);
    $bar->SetPattern(constant($styles->val('image.session.bar.pattern', 'BAND_RDIAG', true)), $styles->val('image.session.bar.patternfill', 'lightblue', true));
    $bar->SetFillColor($styles->val('image.session.bar.fill', 'BAND_SOLID', true));
    $shadow = $styles->val('image.session.bar.shadow', '', true);
    if ($shadow) {
        $bar->SetShadow(true, $shadow);
    }
    $graph->Add($bar);
}
$graph->SetVMarginFactor($styles->val('image.session.bar.vmargin', 0.4, true));
if ($styles->val('image.session.showfooter', 'image.common.footer.show')) {
    stdImgFooter($graph);
}
$graph->Stroke();
开发者ID:Nerus87,项目名称:PsychoStats,代码行数:31,代码来源:imgsess.php


注:本文中的GanttBar::SetShadow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。