2 # ::vu::bargraph widget
3 # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
10 class Bargraph < TkWindow
16 # call setup script -- <libdir>/tkextlib/vu.rb
17 require 'tkextlib/vu.rb'
19 class Tk::Vu::Bargraph < TkWindow
20 TkCommandNames = ['::vu::bargraph'.freeze].freeze
21 WidgetClassName = 'Bargraph'.freeze
22 WidgetClassNames[WidgetClassName] = self
24 ###############################
27 ['showminmax', 'showvalue']
29 private :__boolval_optkeys
34 'barbackground', 'barcolor', 'barcolour',
35 'tickcolor', 'tickcolour',
36 'textcolor', 'textcolour',
39 private :__strval_optkeys
42 ['alabels', 'blabels']
44 private :__listval_optkeys
47 ['alabfont', 'blabfont']
49 private :__font_optkeys
51 ###############################
54 tk_call_without_enc(@path, 'set', val)
59 num_or_str(tk_call_without_enc(@path, 'get'))