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

Class: Image_Graph_Plotarea_Map

Source Location: /Image_Graph-0.3.0dev1/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.


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::getAxis()
Get axis
Image_Graph_Plotarea::hideAxis()
Hides the axis
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::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.

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Constructor
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addNew()
Creates an object from the class specified and adds it to the objects element list.

Class Details

[line 52]
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 {@see Image_Graph_Plot_Dot} using {@see Image_Graph_Marker_PercentageCircle} as marker.



[ Top ]


Method Detail

Image_Graph_Plotarea_Map (Constructor)   [line 87]

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 192]

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

Add a point to the maps

Parameters:

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

[ Top ]

addPoint   [line 205]

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 182]

void hideAxis( )

Hides the axis

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


Documentation generated on Mon, 11 Mar 2019 13:57:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.