Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php

/**
 * @package HTML2PS
 * @subpackage Document
 * Contains an Anchor class definition
 * 
 * @see Anchor
 */

/**
 * @package HTML2PS
 * @subpackage Document
 * Defines a position on the PDF page which could be referred by a hyperlink
 *
 * @see GenericFormattedBox::reflow_anchors
 */
class Anchor {
  /**
   * @var string Symbolic name of the location
   * @access public
   */
  var $name;

  /**
   * @var int Page number 
   * @access public
   */
  var $page;

  /**
   * @var float X-coordinate on the selected page
   * @access public
   */
  var $x;

  /**
   * @var float Y-coordinate on the selected page
   * @access public
   */
  var $y;

  /**
   * Constructs a new Anchor object
   *
   * @param string $name symbolic name of the anchor
   * @param int $page page containing this anhor
   * @param int $x X-coordinate of the anchor on the selected page
   * @param int $y Y-coordinate of the anchor on the selected page
   */
  function Anchor($name, $page, $x, $y) {
    $this->name = $name;
    $this->page = $page;
    $this->x    = $x;
    $this->y    = $y;
  }
}

?>