Source for file TeeBevel.php
Documentation is available at TeeBevel.php
* Description: Displays bevels (frames) around rectangles
* @copyright (c) 1995-2010 by Steema Software SL. All Rights Reserved. <info@steema.com>
* @link http://www.steema.com
function __get( $property ) {
$method = "get{$property}";
function __set ( $property,$value ) {
$method = "set{$property}";
return $this->$method($value);
$this->colorOne= new Color(255,255,255);
$this->colorTwo= new Color(180,180,180);
* Defines the inner bevel type of the TChart Panel border. <br>
* Default value: BevelStyle.None
* Defines the inner bevel type of the TChart Panel border. <br>
* Default value: BevelStyle.None
* @param value BevelStyle
if ($this->inner != $value) {
* Width of the TeeChart Panel border in pixels. <br>
* Sets the width of the TeeChart Panel border in pixels. <br>
* Color of left and top sides of bevels. <br>Used together with ColorTwo
* to set the colors applied to the Bevel edge when Raised or Lowered. <br>
* Sets the Color of left and top sides of bevels. <br>
* Color of right and bottom sides of bevels.<br> Used together with
* ColorOne, these properties set the colors applied to the Bevel edge
* when Raised or Lowered. <br>
* Sets the Color of right and bottom sides of bevels.<br>
//private boolean shouldSerializeOuter() {
// return outer != defaultOuter;
* The outer bevel type of the TChart Panel border. <br>
* Defines the outer bevel type of the TChart Panel border. <br>
* @param value BevelStyle
if ($this->outer != $value) {
* Assigns all properties from one bevel to another.
$this->colorOne = $b->colorOne;
$this->colorTwo = $b->colorTwo;
$this->inner = $b->inner;
$this->outer = $b->outer;
$this->width = $b->width;
* Draws bevels around rectangle parameter.
public function draw($g, $rect) {
$r = new Rectangle($rect->x,$rect->y,$rect->width,$rect->height);
$g->paintBevel($this->inner, $r, $this->width, $this->colorOne, $this->colorTwo);
$r->grow( - $this->width, - $this->width);
$g->paintBevel($this->outer, $r, $this->width, $this->colorOne, $this->colorTwo);
|