class GerbilCharts::SVGDC::SVGCircleText
Attributes
txt[RW]
Public Class Methods
new(x,y,r,text)
click to toggle source
Calls superclass method
GerbilCharts::SVGDC::SVGCircle::new
# File lib/gerbilcharts/svgdc/svg_circle.rb, line 27 def initialize(x,y,r,text) super(x,y,r) @txt=text end
Public Instance Methods
render(xfrag)
click to toggle source
Calls superclass method
GerbilCharts::SVGDC::SVGCircle#render
# File lib/gerbilcharts/svgdc/svg_circle.rb, line 32 def render(xfrag) super(xfrag) h = { "text-anchor" => "middle" , :x => @x, :y => @y, :class => 'legendtext' } xfrag.text(@txt, h ) end