src/UI/Image/Graph/Builder.php
protected static function setUpMargin( $graph, $config )
	{
		$marginLeft		= self::getConfigValue( $config, 'margin.left', 0 );
		$marginRight	= self::getConfigValue( $config, 'margin.right', 0 );
		$marginTop		= self::getConfigValue( $config, 'margin.top', 0 );
		$marginBottom	= self::getConfigValue( $config, 'margin.bottom', 0 );
		$marginColor	= self::getConfigValue( $config, 'margin.color' );
		$graph->setMargin( $marginLeft, $marginRight, $marginTop, $marginBottom );
		if( $marginColor )
			$graph->setMarginColor( $marginColor );
	}
protected static function setUpMargin( $graph, $config )
	{
		$marginLeft		= self::getConfigValue( $config, 'margin.left', 0 );
		$marginRight	= self::getConfigValue( $config, 'margin.right', 0 );
		$marginTop		= self::getConfigValue( $config, 'margin.top', 0 );
		$marginBottom	= self::getConfigValue( $config, 'margin.bottom', 0 );
		$marginColor	= self::getConfigValue( $config, 'margin.color' );
		$graph->setMargin( $marginLeft, $marginRight, $marginTop, $marginBottom );
		if( $marginColor )
			$graph->setMarginColor( $marginColor );
	}
protected static function setUpMargin ( $ graph , $ config ) { $ marginLeft = self :: getConfigValue ( $ config , 'margin.left' , 0 ) ; $ marginRight = self :: getConfigValue ( $ config , 'margin.right' , 0 ) ; $ marginTop = self :: getConfigValue ( $ config , 'margin.top' , 0 ) ; $ marginBottom = self :: getConfigValue ( $ config , 'margin.bottom' , 0 ) ; $ marginColor = self :: getConfigValue ( $ config , 'margin.color' ) ; $ graph -> setMargin ( $ marginLeft , $ marginRight , $ marginTop , $ marginBottom ) ; if ( $ marginColor ) $ graph -> setMarginColor ( $ marginColor ) ; }
Adds Margin to Graph.
@access		protected
@static
@param		Graph		$graph			Graph Object to work on
@param		array		$config			Configuration Data
@return		void
Adds Margin to Graph .