Source for file Callout.php
Documentation is available at Callout.php
* Description: Mark Callout pointer characteristics
* @copyright (c) 1995-2009 by Steema Software SL. All Rights Reserved. <info@steema.com>
* @link http://www.steema.com
// when True, the Marks arrow pen
// color is changed if the point has
private $CHECKMARKARROWCOLOR = false;
private $arrowHead = 0; // ArrowHeadStyle::$NONE;
private $arrowHeadSize = 8;
function __get( $property ) {
$method = "get{$property}";
function __set ( $property,$value ) {
$method = "set{$property}";
return $this->$method($value);
parent::SeriesPointer(($s != null) ? $s->getChart() : null , $s);
$tmpColor = new Color(0,0,0); // BLACK
$this->getBrush()->setDefaultColor($tmpColor);
public function draw($c, $pFrom, $pTo, $z)
$tmpGra = $this->chart->getGraphics3D();
if($this->CHECKMARKARROWCOLOR &&
(($this->getArrow()->getColor() == $c) ||
($this->getArrow()->getColor() == $this->chart->getPanel()->getColor())))
$tmpGra->getPen()->setColor(($this->chart->getPanel()->getColor() ==
$tmpGra->arrow(false, $pFrom, $pTo, $this->arrowHeadSize, $this->arrowHeadSize, $z);
$tmpGra->arrow(true, $pFrom, $pTo, $this->arrowHeadSize, $this->arrowHeadSize, $z);
if($this->chart->getAspect()->getView3D())
$tmpGra->moveToZ($pFrom, $z);
$tmpGra->lineTo($pTo, $z);
$tmpGra->__line($pFrom, $pTo);
if($this->chart->getAspect()->getView3D())
$tmpFrom = $tmpGra->calc3DPoint($pFrom, $z);
parent::draw($tmpGra, $this->chart->getAspect()->getView3D(),
* Arrow line between a Series Mark and a Series point.<br>
* It is also used by Annotation tool to draw a line connecting the
* annotation and the series point.
$tmpColor = new Color(255, 255, 255);
* Sets the Arrow line between a Series Mark and a Series point.<br>
* It is also used by Annotation tool to draw a line connecting the
* annotation and the series point.
* Determines if callout line will display an "arrow" head at the end or
* See TArrowHeadStyle enumerated values for options.
* Determines if callout line will display an "arrow" head at the end or
* @param value ArrowHeadStyle
if($this->arrowHead != $value)
$this->arrowHead = $value;
* The size in pixels to display the arrow head at the end of the
return $this->arrowHeadSize;
* Sets the size in pixels of the arrow head at the end of the
if($this->arrowHeadSize != $value)
$this->arrowHeadSize = $value;
* The length in pixels between a series point and the line connecting the
* series mark or annotation.
* The length in pixels between a series point and the line connecting the
* series mark or annotation.
if($this->distance != $value)
$this->distance = $value;
|