Class: Rubyvis::Layout::Cluster::Fill

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

Overview

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

exported mark prototypes changes slightly in the space-filling implementation:<ul>

<li>node - for rendering nodes; typically a pv.Bar for non-radial orientations, and a pv.Wedge for radial orientations.

<p><li>link - unsupported; undefined. Links are encoded implicitly in the arrangement of the space-filling nodes.

<p><li>label - for rendering node labels; typically a Rubyvis::Label.

</ul>For more details on how to use this layout, see pv.Layout.Cluster.

Instance Attribute Summary

Attributes inherited from Rubyvis::Layout::Cluster

#interpolate

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

Instance Method Summary collapse

Methods inherited from Rubyvis::Layout::Cluster

#cluster_build_implied, defaults, #group

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, defaults, #panel_build_implied, #to_svg, #type

Methods inherited from Bar

defaults, #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, defaults, #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

Returns a new instance of Fill.



191
192
193
194
# File 'lib/rubyvis/layout/cluster.rb', line 191

def initialize
  super
  fill_constructor
end

Instance Method Details

#build_implied(s) ⇒ Object



195
196
197
198
# File 'lib/rubyvis/layout/cluster.rb', line 195

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