class GerbilCharts::SVGDC::SVGEllipse

SVGEllpise

Draws a circle at x, y, and radius rx, ry

Attributes

rx[RW]
ry[RW]
x[RW]
y[RW]

Public Class Methods

new(x,y,rx,ry) click to toggle source
Calls superclass method
# File lib/gerbilcharts/svgdc/svg_ellipse.rb, line 10
def initialize(x,y,rx,ry)
  @x,@y,@rx,@ry=x,y,rx,ry
  super()
end

Public Instance Methods

render(xfrag) click to toggle source
# File lib/gerbilcharts/svgdc/svg_ellipse.rb, line 15
def render(xfrag)
  h = { :cx => @x, :cy => @y, :rx => @rx, :ry => @ry }
  xfrag.ellipse(h.merge(render_attributes))
end