Class: CTioga2::Graphics::Elements::RedirectingContainer

Inherits:
Container show all
Extended by:
Forwardable
Defined in:
lib/ctioga2/graphics/elements/redirecting-container.rb

Overview

A Container that redirect most of its trafic to the parents.

Direct Known Subclasses

GradientRegion, Region

Constant Summary

Constants inherited from TiogaElement

TiogaElement::StyleBaseOptions

Instance Attribute Summary

Attributes inherited from Container

#elements, #gp_cache, #legend_area, #legend_item_target, #legend_storage, #root_object, #subframe

Attributes inherited from TiogaElement

#clipped, #depth, #hidden, #location, #object_classes, #object_id, #object_parent, #parent

Instance Method Summary collapse

Methods inherited from Container

#actual_subframe, #add_element, #add_legend_item, #do, #enter_legend_subcontainer, #initialize, #size

Methods inherited from TiogaElement

all_styles, base_style, #check_styled, define_style, #do, find_object, find_objects, #get_style, #has_style?, inherited, #initialize, #inspect, register_object, register_style, #setup_style, #style_class, style_class, style_name, #style_name, styled_classes, #update_style

Methods included from Log

context, counts, debug, error, fatal, #format_exception, #identify, info, init_logger, log_to, logger, set_level, #spawn, warn

Constructor Details

This class inherits a constructor from CTioga2::Graphics::Elements::Container

Instance Method Details

#each_item(leaf_only = true, recursive = false, tl = true, &blk) ⇒ Object



44
45
46
47
48
49
50
51
52
# File 'lib/ctioga2/graphics/elements/redirecting-container.rb', line 44

def each_item(leaf_only = true, recursive = false, tl = true, &blk)
  if tl
    parent.each_item(leaf_only, recursive, tl, &blk)
  else
    if @elements
      super(leaf_only, recursive, true, &blk)
    end
  end
end