Class: Rubyvis::Layout
- Defined in:
- lib/rubyvis/layout.rb,
lib/rubyvis/layout/arc.rb,
lib/rubyvis/layout/grid.rb,
lib/rubyvis/layout/pack.rb,
lib/rubyvis/layout/tree.rb,
lib/rubyvis/layout/stack.rb,
lib/rubyvis/layout/indent.rb,
lib/rubyvis/layout/matrix.rb,
lib/rubyvis/layout/cluster.rb,
lib/rubyvis/layout/horizon.rb,
lib/rubyvis/layout/network.rb,
lib/rubyvis/layout/treemap.rb,
lib/rubyvis/layout/hierarchy.rb,
lib/rubyvis/layout/partition.rb
Defined Under Namespace
Modules: Fill, NodeLink Classes: Arc, Cluster, Grid, Hierarchy, Horizon, Indent, Matrix, Network, Pack, Partition, Stack, Tree, Treemap
Instance Attribute Summary
Attributes inherited from Panel
Attributes inherited from Mark
#_properties, #binds, #child_index, #parent, #proto, #root, #scale, #scene, #target
Class Method Summary collapse
-
.Arc ⇒ Object
Alias for Rubyvis::Layout::Arc.
- .attr_accessor_dsl(*attr) ⇒ Object
-
.Cluster ⇒ Object
Alias for Rubyvis::Layout::Cluster.
-
.Grid ⇒ Object
Alias for Rubyvis::Layout::Grid.
-
.Hierarchy ⇒ Object
Alias for Rubyvis::Layout::Hierarchy.
-
.Horizon ⇒ Object
Alias for Rubyvis::Layout::Horizon.
-
.Indent ⇒ Object
Alias for Rubyvis::Layout::Indent.
-
.Matrix ⇒ Object
Alias for Rubyvis::Layout::Matrix.
-
.Network ⇒ Object
Alias for Rubyvis::Layout::Network.
-
.Pack ⇒ Object
Alias for Rubyvis::Layout::Indent.
-
.Partition ⇒ Object
Alias for Rubyvis::Layout::Partition.
-
.Stack ⇒ Object
Alias for Rubyvis::Layout::Stack.
-
.Tree ⇒ Object
Alias for Rubyvis::Layout::Tree.
-
.Treemap ⇒ Object
Alias for Rubyvis::Layout::Treemap.
Instance Method Summary collapse
- #build_properties(s, properties) ⇒ Object
- #layout_build_implied(s) ⇒ Object
- #layout_build_properties(s, properties) ⇒ Object
Methods inherited from Panel
#add, #anchor, #bind, #build_implied, #build_instance, #children_inspect, defaults, #initialize, #panel_build_implied, #to_svg, #type
Methods inherited from Bar
Methods inherited from Mark
#add, #anchor, #area, #bar, #bind, #build, #build_implied, #build_instance, #context, #context_apply, #context_clear, #cousin, defaults, #delete_index, #dot, #event, #execute, #first, #image, index, #index, index=, #index=, #index_defined?, #initialize, #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
This class inherits a constructor from Rubyvis::Panel
Class Method Details
.Arc ⇒ Object
Alias for Rubyvis::Layout::Arc
4 5 6 |
# File 'lib/rubyvis/layout/arc.rb', line 4 def self.Arc Rubyvis::Layout::Arc end |
.attr_accessor_dsl(*attr) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/rubyvis/layout.rb', line 16 def self.attr_accessor_dsl(*attr) attr.each do |sym| if sym.is_a? Array name,func=sym else name=sym func=nil end @properties[name]=true self.property_method(name,false, func, self) remove_method(name.to_s+"=") if public_method_defined? name.to_s+"=" define_method(name.to_s + "=") {|v| self.send(name,v) } end end |
.Cluster ⇒ Object
Alias for Rubyvis::Layout::Cluster
4 5 6 |
# File 'lib/rubyvis/layout/cluster.rb', line 4 def self.Cluster Rubyvis::Layout::Cluster end |
.Grid ⇒ Object
Alias for Rubyvis::Layout::Grid
4 5 6 |
# File 'lib/rubyvis/layout/grid.rb', line 4 def self.Grid Rubyvis::Layout::Grid end |
.Hierarchy ⇒ Object
Alias for Rubyvis::Layout::Hierarchy
4 5 6 |
# File 'lib/rubyvis/layout/hierarchy.rb', line 4 def self.Hierarchy Rubyvis::Layout::Hierarchy end |
.Horizon ⇒ Object
Alias for Rubyvis::Layout::Horizon
4 5 6 |
# File 'lib/rubyvis/layout/horizon.rb', line 4 def self.Horizon Rubyvis::Layout::Horizon end |
.Indent ⇒ Object
Alias for Rubyvis::Layout::Indent
4 5 6 |
# File 'lib/rubyvis/layout/indent.rb', line 4 def self.Indent Rubyvis::Layout::Indent end |
.Matrix ⇒ Object
Alias for Rubyvis::Layout::Matrix
4 5 6 |
# File 'lib/rubyvis/layout/matrix.rb', line 4 def self.Matrix Rubyvis::Layout::Matrix end |
.Network ⇒ Object
Alias for Rubyvis::Layout::Network
4 5 6 |
# File 'lib/rubyvis/layout/network.rb', line 4 def self.Network Rubyvis::Layout::Network end |
.Pack ⇒ Object
Alias for Rubyvis::Layout::Indent
4 5 6 |
# File 'lib/rubyvis/layout/pack.rb', line 4 def self.Pack Rubyvis::Layout::Pack end |
.Partition ⇒ Object
Alias for Rubyvis::Layout::Partition
4 5 6 |
# File 'lib/rubyvis/layout/partition.rb', line 4 def self.Partition Rubyvis::Layout::Partition end |
.Stack ⇒ Object
Alias for Rubyvis::Layout::Stack
4 5 6 |
# File 'lib/rubyvis/layout/stack.rb', line 4 def self.Stack Rubyvis::Layout::Stack end |
.Tree ⇒ Object
Alias for Rubyvis::Layout::Tree
4 5 6 |
# File 'lib/rubyvis/layout/tree.rb', line 4 def self.Tree Rubyvis::Layout::Tree end |
.Treemap ⇒ Object
Alias for Rubyvis::Layout::Treemap
4 5 6 |
# File 'lib/rubyvis/layout/treemap.rb', line 4 def self.Treemap Rubyvis::Layout::Treemap end |
Instance Method Details
#build_properties(s, properties) ⇒ Object
7 8 9 |
# File 'lib/rubyvis/layout.rb', line 7 def build_properties(s,properties) layout_build_properties(s,properties) end |
#layout_build_implied(s) ⇒ Object
13 14 15 |
# File 'lib/rubyvis/layout.rb', line 13 def layout_build_implied(s) panel_build_implied(s) end |
#layout_build_properties(s, properties) ⇒ Object
10 11 12 |
# File 'lib/rubyvis/layout.rb', line 10 def layout_build_properties(s,properties) mark_build_properties(s, properties) end |