lib/ctioga2/graphics/elements/region.rb in ctioga2-0.1 vs lib/ctioga2/graphics/elements/region.rb in ctioga2-0.2

- old
+ new

@@ -15,20 +15,20 @@ require 'ctioga2/utils' require 'ctioga2/log' module CTioga2 - Version::register_svn_info('$Revision: 139 $', '$Date: 2010-01-22 00:12:17 +0100 (Fri, 22 Jan 2010) $') + Version::register_svn_info('$Revision: 288 $', '$Date: 2011-02-22 21:12:58 +0100 (Tue, 22 Feb 2011) $') module Graphics module Elements # A Region is an object that draws filled regions among its # "elements". It is a fake container in the sense that all the # elements are actually forwarded to the parent. - class Region < Container + class Region < RedirectingContainer undef :elements undef :subframe # The curves which delimit the region @@ -70,14 +70,9 @@ # Sets the various things from hash. def set_from_hash(hash) @fill_style.set_from_hash(hash) # Reversed isn't what I want... @reversed_fill_style.set_from_hash(hash, 'reversed_%s') - end - - # Redirects to the parent's style - def style(*a) - return parent.style(*a) end protected # Creates the appropriate subfigure and draws all its elements