Articles and Tutorials

GSEllipse

GSEllipse represents an ellipse based on a center point and two radii.
Constructor Summary
GSEllipse (<Object> params)
            Constructs a new GSEllipse that is initialized with the properties provided in the params associative array.
 
Method Summary
 GSBounds getBounds()
           Gets the minimum bounding box necessary to contain this map feature
 void setCenter(<GSPoint> center)
           Sets the center coordinate of this ellipse.
 void setRadii(<integer> rx, <integer> ry)
           Sets the radii of this ellipse.

Field Detail

graphicsEl

Object graphicsEl
Constructor Detail

GSEllipse

GSEllipse(<Object> params)
    Constructs a new GSEllipse that is initialized with the properties provided in the params associative array.
  •  
    •  
      • center - the coordinate of the ellipse center
      • rx - the x-axis radius of the ellipse in metres
      • ry - the y-axis radius of the ellipse in metres
      • style - an associative array containing name-value pairs for each style property to set, see GSVectorGraphics.setStyle() for all supported properties
    • params - an associative array of named arguments used to initialize this shape, the following parameters may be specified:
  • Parameters:
Method Detail

getBounds

GSBounds getBounds()
    Gets the minimum bounding box necessary to contain this map feature
  •  
      the bounds of this map feature
  • Returns:

setCenter

void setCenter(<GSPoint> center)
    Sets the center coordinate of this ellipse.
  •  
      center - the center of this ellipse expressed as an NZMG coordinate
  • Parameters:

setRadii

void setRadii(<integer> rx, <integer> ry)
    Sets the radii of this ellipse.
  •  
      rx - the x-axis radius of the ellipse in metres
      ry - the y-axis radius of the ellipse in metres
  • Parameters: