Class Tk::BLT::PlotComponent::Legend
In: tk/lib/tkextlib/blt/component.rb
Parent: TkObject

Methods

activate   cget   configinfo   configure   current_configinfo   deactivate   get   id   new   new   to_eval  

Constants

OBJ_TBL = {}

Public Class methods

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 681
      def self.new(chart, keys={})
        return OBJ_TBL[chart.path] if OBJ_TBL[chart.path]
        super(chart, keys)
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 686
      def initialize(chart, keys={})
        @parent = @chart = chart
        @cpath = @chart.path
        Crosshairs::OBJ_TBL[@cpath] = self
        @chart.crosshair_configure(keys) unless keys.empty?
        @path = @id = 'legend'
      end

Public Instance methods

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 716
      def activate(*args)
        @chart.legend_activate(*args)
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 702
      def cget(option)
        @chart.legend_cget(option)
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 709
      def configinfo(key=nil)
        @chart.legend_configinfo(key)
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 705
      def configure(key, value=None)
        @chart.legend_configure(key, value)
        self
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 712
      def current_configinfo(key=nil)
        @chart.current_legend_configinfo(key)
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 720
      def deactivate(*args)
        @chart.legend_deactivate(*args)
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 724
      def get(pos, y=nil)
        @chart.legend_get(pos, y)
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 694
      def id
        @id
      end

[Source]

# File tk/lib/tkextlib/blt/component.rb, line 698
      def to_eval
        @id
      end

[Validate]