class GerbilCharts::SVGDC::SVGCustomWin
SVGCustomWin
¶ ↑
custom window, the supplier delegate will render the SVG directly using the Builder facilities use this for complex SVG elements that cant be handled via the current simplistic GDI like operations
Attributes
render_delegate[R]
Public Class Methods
new(name,delegate,opts={})
click to toggle source
Calls superclass method
# File lib/gerbilcharts/svgdc/svg_custom_win.rb, line 11 def initialize(name,delegate,opts={}) @render_delegate=delegate super(name,opts) end
Public Instance Methods
<<(p)
click to toggle source
# File lib/gerbilcharts/svgdc/svg_custom_win.rb, line 16 def <<(p) raise "Cannot add children to a custom SVG Window" end
render(xfrag)
click to toggle source
# File lib/gerbilcharts/svgdc/svg_custom_win.rb, line 20 def render(xfrag) h= {} if @transforms strt="" @transforms.each do |t| strt << t.render end h.store(:transform, strt) end xfrag.g(h.merge(render_attributes)) { @render_delegate.render_direct(xfrag) } end