Class Image_Graph_Axis_X

Description

Class for storing x-axis settings

Based upon the the common attributes/methods provided by the Image_Graph_Axis-class this one addresses all features which are needed for the x-axis.

Located in /Graph/Elements.php (line 595)

Image_Graph_Base
   |
   --Image_Graph_Axis
      |
      --Image_Graph_Axis_X
Method Summary
 Image_Graph_Axis_X Image_Graph_Axis_X ()
 void setAxistype (mixed $type)
 void setLabels (array $labels)
 void valueToPixelAbsolute (float $value)
 void valueToPixelRelative (float $value)
Variables
Methods
Constructor Image_Graph_Axis_X (line 612)

Constructor

  • access: public
Image_Graph_Axis_X Image_Graph_Axis_X ()
setAxistype (line 630)

Set type of axis

This function will allow you to change the type of axis/scale used on this axis. The default is IMAGE_GRAPH_AXISTYPE_TEXT. Note that currently only a textual x-axis is supported, so this function is mainly provided for API-completeness and will become useful as soon as other types are implemented.

  • see: $_axistype
  • access: public
void setAxistype (mixed $type)
  • mixed $type: use constants IMAGE_GRAPH_AXISTYPE_*; currently only IMAGE_GRAPH_AXISTYPE_TEXT supported
setLabels (line 649)

Set labels for data on this axis

!! This function is deprecated. Use values->setText() !!

void setLabels (array $labels)
  • array $labels: (array of string) Text-labels on the axis
valueToPixelAbsolute (line 679)

Calculate absolute position for a value on the axis

The value returned by this function is in pixel-coordinates and absolute to the upper-left corner of the image canvas.

  • access: public
void valueToPixelAbsolute (float $value)
  • float $value: data value
valueToPixelRelative (line 663)

Calculate relative position for a value on the axis

The value returned by this function is in pixel-coordinates and relative to the upper-left corner of the drawing-area of the graph.

  • access: public
void valueToPixelRelative (float $value)
  • float $value: data value

Inherited Methods

Inherited From Image_Graph_Axis

 Image_Graph_Axis::Image_Graph_Axis()
 Image_Graph_Axis::setBounds()
 Image_Graph_Axis::setNumbercolor()
 Image_Graph_Axis::setNumberformat()
 Image_Graph_Axis::setTicksAutoSteps()
 Image_Graph_Axis::setTickSize()
 Image_Graph_Axis::setTicksMajor()
 Image_Graph_Axis::setTicksMinor()
 Image_Graph_Axis::setTickStyle()

Inherited From Image_Graph_Base

 Image_Graph_Base::setColor()
 Image_Graph_Base::setFontOptions()
 Image_Graph_Base::setSpacer()
 Image_Graph_Base::setText()

Documentation generated on Sat, 21 Feb 2004 23:28:03 +0100 by phpDocumentor 1.3.0RC2