summaryrefslogtreecommitdiffstats
path: root/src/interfaces
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-03-29 12:20:03 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-03-29 12:20:03 +0000
commitd96fa2d3668219a4105e986b3b75dd69a0d8ff37 (patch)
treeb123498c093978bcac9b0a30d38ad18099f1e1cf /src/interfaces
parent46b36627ff6184fed301ab68c428a26ac5412cda (diff)
downloadzetacomponents-graph-d96fa2d3668219a4105e986b3b75dd69a0d8ff37.zip
zetacomponents-graph-d96fa2d3668219a4105e986b3b75dd69a0d8ff37.tar.gz
- Started implementing feature request #9404 (Rotated labels on axis)
# Works only with SVG driver now. # Angle needs to be set manually, no automatic optimal angle detection yet.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/driver.php3
-rw-r--r--src/interfaces/renderer.php5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/interfaces/driver.php b/src/interfaces/driver.php
index e8d5adb..354050f 100644
--- a/src/interfaces/driver.php
+++ b/src/interfaces/driver.php
@@ -424,9 +424,10 @@ abstract class ezcGraphDriver
* @param float $width Width of text box
* @param float $height Height of text box
* @param int $align Alignement of text
+ * @param ezcGraphRotation $rotation
* @return void
*/
- abstract public function drawTextBox( $string, ezcGraphCoordinate $position, $width, $height, $align );
+ abstract public function drawTextBox( $string, ezcGraphCoordinate $position, $width, $height, $align, ezcGraphRotation $rotation = null );
/**
* Draws a sector of cirlce
diff --git a/src/interfaces/renderer.php b/src/interfaces/renderer.php
index aa0ea37..a9908f5 100644
--- a/src/interfaces/renderer.php
+++ b/src/interfaces/renderer.php
@@ -271,13 +271,14 @@ abstract class ezcGraphRenderer
* @param ezcGraphBoundings $boundings Boundings of text
* @param string $text Text
* @param int $align Alignement of text
- * @param int $align Alignement of text
+ * @param ezcGraphRotation $rotation
* @return void
*/
abstract public function drawText(
ezcGraphBoundings $boundings,
$text,
- $align = ezcGraph::LEFT
+ $align = ezcGraph::LEFT,
+ ezcGraphRotation $rotation = null
);
/**
OpenPOWER on IntegriCloud