class Vizkit::LogAnnotationItem
Attributes
annotation[R]
Public Class Methods
new(annotation,options = Hash.new)
click to toggle source
Calls superclass method
Vizkit::VizkitItem.new
# File lib/vizkit/vizkit_items.rb, line 1002 def initialize(annotation,options = Hash.new) super() @options = Kernel.validate_options options,:item_type => :label @annotation = annotation if @options[:item_type] == :label setText annotation.stream.name appendRow [VizkitItem.new("Samples"),VizkitItem.new(annotation.samples.size.to_s)] else setText annotation.stream.type_name end end