Image_Graph
[ class tree: Image_Graph ] [ index: Image_Graph ] [ all elements ]

Class: Image_Graph_Plotarea_Map

Source Location: /Image_Graph-0.8.0/Graph/Plotarea/Map.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Element
      |
      --Image_Graph_Plotarea_Element
         |
         --Image_Graph_Layout
            |
            --Image_Graph_Plotarea
               |
               --Image_Graph_Plotarea_Map

Plot area used for map plots.


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2003-2009 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: Image_Graph_Plotarea

Image_Graph_Plotarea::Image_Graph_Plotarea()
Image_Graph_Plotarea [Constructor]
Image_Graph_Plotarea::add()
Adds an element to the plotarea
Image_Graph_Plotarea::clearAxis()
Clears/removes the axis
Image_Graph_Plotarea::getAxis()
Get axis.
Image_Graph_Plotarea::hideAxis()
Hides the axis
Image_Graph_Plotarea::setAxisPadding()
Set the axis padding for a specified position.
Image_Graph_Plotarea::setPlotBorderStyle()
Sets the plot border line style of the element.

Class: Image_Graph_Layout

Image_Graph_Layout::Image_Graph_Layout()
Image_Graph_Layout [Constructor]

Class: Image_Graph_Element

Image_Graph_Element::height()
The height of the element on the canvas
Image_Graph_Element::setBackground()
Sets the background fill style of the element
Image_Graph_Element::setBackgroundColor()
Sets the background color of the element.
Image_Graph_Element::setBorderColor()
Sets the border color of the element.
Image_Graph_Element::setBorderStyle()
Sets the border line style of the element
Image_Graph_Element::setFillColor()
Sets the fill color of the element.
Image_Graph_Element::setFillStyle()
Sets the fill style of the element
Image_Graph_Element::setFont()
Sets the font of the element
Image_Graph_Element::setFontAngle()
Sets the font angle
Image_Graph_Element::setFontColor()
Sets the font color
Image_Graph_Element::setFontSize()
Sets the font size
Image_Graph_Element::setLineColor()
Sets the line color of the element.
Image_Graph_Element::setLineStyle()
Sets the line style of the element
Image_Graph_Element::setPadding()
Sets padding of the element
Image_Graph_Element::showShadow()
Shows shadow on the element
Image_Graph_Element::width()
The width of the element on the canvas
Image_Graph_Element::write()
Writes text to the canvas.
Image_Graph_Element::_clip()
Clip the canvas to the coordinates of the element

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Constructor [Image_Graph_Common]
Image_Graph_Common::add()
Adds an element to the objects element list.
Image_Graph_Common::addNew()
Creates an object from the class and adds it to the objects element list.
Image_Graph_Common::hide()
Hide the element

Class Details

[line 60]
Plot area used for map plots.

A map plot is a chart that displays a map (fx. a world map) in the form of . png file. The maps must be located in the /Images/Maps folder and a corresponding .txt files mush also exist in this location where named locations are mapped to an (x, y) coordinate of the map picture (this text file is tab separated with 'Name' 'X' 'Y' values, fx 'Denmark 378 223'). The x-values in the dataset are then the named locations (fx 'Denmark') and the y-values are then the data to plot. Currently the best (if not only) use is to combine a map plot area with a Image_Graph_Plot_Dot using Image_Graph_Marker_PercentageCircle as marker.



[ Top ]


Method Detail

Image_Graph_Plotarea_Map (Constructor)   [line 97]

Image_Graph_Plotarea_Map Image_Graph_Plotarea_Map( string $map)

PlotareaMap [Constructor]

Parameters:

string   $map   —  The name of the map, i.e. the [name].png and [name]. txt files located in the Images/maps folder

[ Top ]

addMappoint   [line 218]

void addMappoint( int $latitude, int $longitude, string $name)

Add a point to the maps

Parameters:

int   $latitude   —  The latitude of the point
int   $longitude   —  The longitude of the point
string   $name   —  The name of the plot

[ Top ]

addPoint   [line 234]

void addPoint( int $x, int $y, string $name)

Add a point to the maps

Parameters:

int   $x   —  The latitude of the point
int   $y   —  The longitude of the point
string   $name   —  The name of the plot

[ Top ]

hideAxis   [line 205]

void hideAxis( )

Hides the axis

Overrides Image_Graph_Plotarea::hideAxis() (Hides the axis)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.