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

Class: Image_Puzzle_Edge_Default

Source Location: /Image_Puzzle-0.2.2/Image/Puzzle/Edge/Default.php

Class Overview

Image_Puzzle_Edge
   |
   --Image_Puzzle_Edge_Default

Default edge shape. It is like original puzzle shape which is combined of square and ellipse


Author(s):

Version:

  • @package_version@

Methods


Inherited Variables

Inherited Methods

Class: Image_Puzzle_Edge

Image_Puzzle_Edge::__construct()
Edge constructor.
Image_Puzzle_Edge::factory()
Edge factory for creating new edge objects in the basis of their names.
Image_Puzzle_Edge::getLeftTopMargin()
Returns left margin for vertical edge or top margin for horizontal edge.
Image_Puzzle_Edge::getRightBottomMargin()
Returns right margin for vertical edge or bottom margin for horizontal edge.
Image_Puzzle_Edge::isTransparent()
Returns true if point x,y on the edge should be transparent.

Class Details

[line 32]
Default edge shape. It is like original puzzle shape which is combined of square and ellipse


[ Top ]


Method Detail

__construct (Constructor)   [line 55]

Image_Puzzle_Edge_Default __construct( integer $longitude, integer $transversal)


Overrides Image_Puzzle_Edge::__construct() (Edge constructor.)

Parameters:

integer   $longitude     
integer   $transversal     

[ Top ]

getLeftTopMargin   [line 67]

integer getLeftTopMargin( )


Overrides Image_Puzzle_Edge::getLeftTopMargin() (Returns left margin for vertical edge or top margin for horizontal edge.)
[ Top ]

getRightBottomMargin   [line 75]

integer getRightBottomMargin( )


Overrides Image_Puzzle_Edge::getRightBottomMargin() (Returns right margin for vertical edge or bottom margin for horizontal edge.)
[ Top ]

isTransparent   [line 85]

boolean isTransparent( integer $x, integer $y)


Overrides Image_Puzzle_Edge::isTransparent() (Returns true if point x,y on the edge should be transparent.)

Parameters:

integer   $x     
integer   $y     

[ Top ]


Documentation generated on Sun, 24 Oct 2010 06:30:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.