class GerbilCharts::SVGDC::SVGCircle

SVGCircle

Draws a circle at x, y, and radius r

Attributes

r[RW]
x[RW]
y[RW]

Public Class Methods

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

Public Instance Methods

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