Class: Rubyvis::Layout::Partition::Fill

Inherits:
Rubyvis::Layout::Partition show all
Includes:
Hierarchy::Fill
Defined in:
lib/rubyvis/layout/partition.rb

Instance Attribute Summary

Attributes included from NodeLink

#_h, #_ir, #_or, #_orient, #_w

Attributes inherited from Network

#_id, #link, #node, #node_label

Attributes inherited from Panel

#_canvas, #children, #root

Attributes inherited from Mark

#_properties, #binds, #child_index, #parent, #proto, #root, #scale, #scene, #target

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Rubyvis::Layout::Partition

#_size, #order, #partition_build_implied, #size

Methods included from NodeLink

#node_link_build_implied

Methods inherited from Hierarchy

#hierarchy_build_implied, #links

Methods inherited from Network

#_link, #_node, #_node_label, #build_properties, #network_build_implied, #nodes, #reset

Methods inherited from Rubyvis::Layout

Arc, Cluster, Grid, Hierarchy, Horizon, Indent, Matrix, Network, Pack, Partition, Stack, Tree, Treemap, attr_accessor_dsl, #build_properties, #layout_build_implied, #layout_build_properties

Methods inherited from Panel

#add, #anchor, #bind, #build_instance, #children_inspect, #panel_build_implied, #to_svg, #type

Methods inherited from Bar

#type, #width

Methods inherited from Mark

#add, #anchor, #area, attr_accessor_dsl, #bar, #bind, #build, #build_instance, #build_properties, #context, #context_apply, #context_clear, #cousin, #delete_index, #dot, #event, #execute, #first, #image, index, #index, index=, #index=, #index_defined?, #instance, #instances, #label, #last, #layout_arc, #layout_cluster, #layout_grid, #layout_horizon, #layout_indent, #layout_matrix, #layout_pack, #layout_partition, #layout_partition_fill, #layout_stack, #layout_tree, #layout_treemap, #line, #margin, #mark_anchor, #mark_bind, #mark_build_implied, #mark_build_instance, #mark_build_properties, #mark_extend, mark_method, #panel, #properties, properties, property_method, #property_value, #render, #rule, scene, scene=, #sibling, stack, stack=, #type, #wedge

Constructor Details

#initializeFill

Constructs a new, empty space-filling partition layout. Layouts are not typically constructed directly; instead, they are added to an existing panel via pv.Mark#add.



211
212
213
214
# File 'lib/rubyvis/layout/partition.rb', line 211

def initialize
  super
  fill_constructor
end

Class Method Details

.defaultsObject



220
221
222
# File 'lib/rubyvis/layout/partition.rb', line 220

def self.defaults
  Rubyvis::Layout::Partition::Fill.new.mark_extend(Rubyvis::Layout::Partition.defaults)
end

Instance Method Details

#build_implied(s) ⇒ Object



215
216
217
218
# File 'lib/rubyvis/layout/partition.rb', line 215

def build_implied(s)
  return nil if partition_build_implied(s)
  fill_build_implied(s)
end