[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/library/ezc/Graph/src/renderer/ -> axis_label_rotated_boxed.php (summary)

File containing the ezcGraphAxisRotatedLabelRenderer class

Copyright: Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
License: http://ez.no/licenses/new_bsd New BSD License
Version: 1.5
File Size: 146 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ezcGraphAxisRotatedBoxedLabelRenderer:: (2 methods):
  renderLabels()
  modifyChartDataPosition()


Class: ezcGraphAxisRotatedBoxedLabelRenderer  - X-Ref

Can render axis labels rotated, so that more axis labels fit on one axis.
Produces best results if the axis space was increased, so that more spcae is
available below the axis.

<code>
$chart->xAxis->axisLabelRenderer = new ezcGraphAxisRotatedLabelRenderer();

// Define angle manually in degree
$chart->xAxis->axisLabelRenderer->angle = 45;

// Increase axis space
$chart->xAxis->axisSpace = .2;
</code>

renderLabels(ezcGraphRenderer $renderer,ezcGraphBoundings $boundings,ezcGraphCoordinate $start,ezcGraphCoordinate $end,ezcGraphChartElementAxis $axis,ezcGraphBoundings $innerBoundings = null )   X-Ref
Render Axis labels

Render labels for an axis.

param: ezcGraphRenderer $renderer Renderer used to draw the chart
param: ezcGraphBoundings $boundings Boundings of the axis
param: ezcGraphCoordinate $start Axis starting point
param: ezcGraphCoordinate $end Axis ending point
param: ezcGraphChartElementAxis $axis Axis instance
return: void

modifyChartDataPosition( ezcGraphCoordinate $coordinate )   X-Ref
Modify chart data position

Optionally additionally modify the coodinate of a data point

param: ezcGraphCoordinate $coordinate Data point coordinate
return: ezcGraphCoordinate Modified coordinate



Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7