예제 #1
0
파일: Grid.php 프로젝트: hungnv0789/vhtm
    /**
     * Get the points on the secondary axis that the grid should "connect"
     * @return Array The secondary data values that should mark the grid "end points"
     * @access private	 
     */
    function _getSecondaryAxisPoints()
    {
        if (is_a($this->_secondaryAxis, "Image_Graph_Axis_Multidimensional")) {

            $secondaryValue = $this->_secondaryAxis->_getNextLabel();

            while ($secondaryValue <= $this->_secondaryAxis->_getMaximum()) {
                $secondaryAxisPoints[] = $secondaryValue;
                $secondaryValue = $this->_primaryAxis->_getNextLabel($secondaryValue);
            }       
        }
        elseif (is_a($this->_secondaryAxis, "Image_Graph_Axis_Sequential")) {
            $secondaryAxisPoints = array ($this->_secondaryAxis->_getMinimum() - 0.5, $this->_secondaryAxis->_getMaximum() - 0.5);
        } else {
            $secondaryAxisPoints = array ($this->_secondaryAxis->_getMinimum(), $this->_secondaryAxis->_getMaximum());
        }
        return $secondaryAxisPoints;
    }