Class: Tk::BLT::Barchart

Inherits:
TkWindow show all
Includes:
GraphCommand, PlotComponent
Defined in:
ext/lib/tkextlib/blt/barchart.rb

Constant Summary collapse

TkCommandNames =
['::blt::barchart'.freeze].freeze
WidgetClassName =
'Barchart'.freeze

Constants included from TkUtil

TkUtil::None, TkUtil::RELEASE_DATE

Constants included from Tk

AUTO_PATH, Checkbutton, CloneMenu, JAPANIZED_TK, LIBRARY_PATH, Labelframe, MenuButton, OptionMenuButton, PACKAGE_PATH, Panedwindow, RELEASE_DATE, Radiobutton, TCL_LIBRARY_PATH, TCL_MAJOR_VERSION, TCL_MINOR_VERSION, TCL_PACKAGE_PATH, TCL_PATCHLEVEL, TCL_PRECISION, TCL_VERSION, TK_MAJOR_VERSION, TK_MINOR_VERSION, TK_PATCHLEVEL, TK_VERSION, Tkextlib_RELEASE_DATE, TreeCtrl_Widget, X_Scrollable, Y_Scrollable

Constants included from Encoding

Encoding::BINARY, Encoding::BINARY_NAME, Encoding::DEFAULT_EXTERNAL_NAME, Encoding::DEFAULT_INTERNAL_NAME, Encoding::ENCODING_TABLE, Encoding::RubyEncoding, Encoding::UNKNOWN, Encoding::UTF8_NAME

Constants included from TkCore

TkCore::EventFlag, TkCore::INTERP, TkCore::INTERP_MUTEX, TkCore::INTERP_ROOT_CHECK, TkCore::INTERP_THREAD, TkCore::INTERP_THREAD_STATUS, TkCore::RUN_EVENTLOOP_ON_MAIN_THREAD, TkCore::WIDGET_DESTROY_HOOK, TkCore::WITH_ENCODING, TkCore::WITH_RUBY_VM

Constants included from TkComm

TkComm::GET_CONFIGINFO_AS_ARRAY, TkComm::GET_CONFIGINFOwoRES_AS_ARRAY, TkComm::TkExtlibAutoloadModule, TkComm::Tk_CMDTBL, TkComm::Tk_IDs, TkComm::Tk_WINDOWS, TkComm::USE_TCLs_LIST_FUNCTIONS, TkComm::WidgetClassNames

Constants included from TkDND::Shape

TkDND::Shape::PACKAGE_NAME

Instance Method Summary collapse

Methods included from GraphCommand

#active_legend, #closest_point, #crosshairs, #print_key, #zoom_stack

Methods included from PlotComponent

#__destroy_hook__, #__itemcget_strict, #axis_bind, #axis_bind_append, #axis_bind_remove, #axis_bindinfo, #axis_cget, #axis_cget_strict, #axis_configinfo, #axis_configure, #axis_create, #axis_delete, #axis_invtransform, #axis_limits, #axis_names, #axis_transform, #axis_use, #axis_view, #bar_activate, #bar_bind, #bar_bind_append, #bar_bind_remove, #bar_bindinfo, #bar_cget, #bar_cget_strict, #bar_closest, #bar_configinfo, #bar_configure, #bar_create, #bar_deactivate, #bar_delete, #bar_exist?, #bar_names, #bar_show, #bar_type, #crosshairs_cget, #crosshairs_cget_strict, #crosshairs_configinfo, #crosshairs_configure, #crosshairs_off, #crosshairs_on, #crosshairs_toggle, #current_axis_configinfo, #current_bar_configinfo, #current_crosshairs_configinfo, #current_element_configinfo, #current_gridline_configinfo, #current_legend_configinfo, #current_line_configinfo, #current_marker_configinfo, #current_pen_configinfo, #current_postscript_configinfo, #current_x2axis_configinfo, #current_xaxis_configinfo, #current_y2axis_configinfo, #current_yaxis_configinfo, #element_activate, #element_bind, #element_bind_append, #element_bind_remove, #element_bindinfo, #element_cget, #element_cget_strict, #element_closest, #element_configinfo, #element_configure, #element_create, #element_deactivate, #element_delete, #element_exist?, #element_names, #element_show, #element_type, #gridline_cget, #gridline_cget_strict, #gridline_configinfo, #gridline_configure, #gridline_off, #gridline_on, #gridline_toggle, #legend_activate, #legend_bind, #legend_bind_append, #legend_bind_remove, #legend_bindinfo, #legend_cget, #legend_cget_strict, #legend_configinfo, #legend_configure, #legend_deactivate, #legend_get, #legend_window_create, #line_activate, #line_bind, #line_bind_append, #line_bind_remove, #line_bindinfo, #line_cget, #line_cget_strict, #line_closest, #line_configinfo, #line_configure, #line_create, #line_deactivate, #line_delete, #line_exist?, #line_names, #line_show, #line_type, #marker_after, #marker_before, #marker_bind, #marker_bind_append, #marker_bind_remove, #marker_bindinfo, #marker_cget, #marker_cget_strict, #marker_configinfo, #marker_configure, #marker_create, #marker_delete, #marker_exist?, #marker_names, #marker_type, #pen_cget, #pen_cget_strict, #pen_configinfo, #pen_configure, #pen_create, #pen_delete, #pen_names, #postscript_cget, #postscript_cget_strict, #postscript_configinfo, #postscript_configure, #postscript_output, #tagid, #x2axis_bind, #x2axis_bind_append, #x2axis_bind_remove, #x2axis_bindinfo, #x2axis_cget, #x2axis_cget_strict, #x2axis_configinfo, #x2axis_configure, #x2axis_invtransform, #x2axis_limits, #x2axis_transform, #x2axis_use, #xaxis_bind, #xaxis_bind_append, #xaxis_bind_remove, #xaxis_bindinfo, #xaxis_cget, #xaxis_cget_strict, #xaxis_configinfo, #xaxis_configure, #xaxis_invtransform, #xaxis_limits, #xaxis_transform, #xaxis_use, #y2axis_bind, #y2axis_bind_append, #y2axis_bind_remove, #y2axis_bindinfo, #y2axis_cget, #y2axis_cget_strict, #y2axis_configinfo, #y2axis_configure, #y2axis_invtransform, #y2axis_limits, #y2axis_transform, #y2axis_use, #yaxis_bind, #yaxis_bind_append, #yaxis_bind_remove, #yaxis_bindinfo, #yaxis_cget, #yaxis_cget_strict, #yaxis_configinfo, #yaxis_configure, #yaxis_invtransform, #yaxis_limits, #yaxis_transform, #yaxis_use

Methods included from TkItemConfigMethod

__IGNORE_UNKNOWN_CONFIGURE_OPTION__, #__check_available_itemconfigure_options, #__current_itemconfiginfo, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, #current_itemconfiginfo, #itemcget, #itemcget_strict, #itemconfiginfo, #itemconfigure, #tagid

Methods included from TkItemConfigOptkeys

#__conv_item_keyonly_opts, #itemconfig_hash_kv

Methods included from TkUtil

_conv_args, #_conv_args, #_fromUTF8, _get_eval_enc_str, #_get_eval_enc_str, #_get_eval_string, _get_eval_string, _symbolkey2str, #_symbolkey2str, #_toUTF8, bool, #bool, callback, eval_cmd, #hash_kv, hash_kv, install_cmd, num_or_str, #num_or_str, number, #number, string, #string, uninstall_cmd

Methods included from TkTreatItemFont

#kanjifont_copy, #kanjitagfont_configure, #latintagfont_configure, #latintagfont_copy, #tagfont_configinfo, #tagfont_configure, #tagfont_copy

Methods inherited from TkWindow

_widget_inspect_full_=, _widget_inspect_full_?, #bind_class, #bindtags, #bindtags=, #bindtags_shift, #bindtags_unshift, #caret, #colormodel, #command, #cursor_propagate, #cursor_restore, database_class, #database_class, #database_classname, database_classname, #destroy, #eventloop_wait_destroy, #eventloop_wait_visibility, #exist?, #grab, #grab_current, #grab_release, #grab_set, #grab_set_global, #grab_status, #grid, #grid_anchor, #grid_bbox, #grid_column, #grid_columnconfig, #grid_columnconfiginfo, #grid_config, #grid_forget, #grid_in, #grid_info, #grid_location, #grid_propagate, #grid_remove, #grid_row, #grid_rowconfig, #grid_rowconfiginfo, #grid_size, #grid_slaves, #initialize, #inspect, #lower, #pack, #pack_config, #pack_forget, #pack_in, #pack_info, #pack_propagate, #pack_slaves, #place, #place_config, #place_configinfo, #place_forget, #place_in, #place_info, #place_slaves, #raise, #set_focus, #thread_wait_destroy, #thread_wait_visibility, #tktrans_get_image, #tktrans_set_image, to_eval, #wait_destroy, #wait_visibility

Methods included from TkBindCore

#bind, #bind_append, #bind_remove, #bindinfo

Methods included from TkWinfo

appname, atom, atomname, cells, children, classname, colormapfull, containing, depth, exist?, fpixels, geometry, height, id, interps, manager, mapped?, parent, pixels, pointerx, pointerxy, pointery, reqheight, reqwidth, rgb, rootx, rooty, screen, screencells, screendepth, screenheight, screenmmheight, screenmmwidth, screenvisual, screenwidth, server, toplevel, viewable, visual, visualid, visualsavailable, vrootheight, vrootwidth, vrootx, vrooty, widget, width, #winfo_appname, #winfo_atom, #winfo_atomname, #winfo_cells, #winfo_children, #winfo_classname, #winfo_colormapfull, #winfo_containing, #winfo_depth, #winfo_exist?, #winfo_fpixels, #winfo_geometry, #winfo_height, #winfo_id, #winfo_interps, #winfo_manager, #winfo_mapped?, #winfo_parent, #winfo_pixels, #winfo_pointerx, #winfo_pointerxy, #winfo_pointery, #winfo_reqheight, #winfo_reqwidth, #winfo_rgb, #winfo_rootx, #winfo_rooty, #winfo_screen, #winfo_screencells, #winfo_screendepth, #winfo_screenheight, #winfo_screenmmheight, #winfo_screenmmwidth, #winfo_screenvisual, #winfo_screenwidth, #winfo_server, #winfo_toplevel, #winfo_viewable, #winfo_visual, #winfo_visualid, #winfo_visualsavailable, #winfo_vrootheight, #winfo_vrootwidth, #winfo_vrootx, #winfo_vrooty, #winfo_widget, #winfo_width, #winfo_x, #winfo_y, x, y

Methods included from Tk

BinaryString, EncodedString, #Grid, #Pack, #Place, UTF8_String, __set_toplevel_aliases__, add_kinsoku, bell, bell_on_display, const_missing, current_grabs, cursor_display, default_widget_set, default_widget_set=, delete_kinsoku, destroy, errorCode, errorInfo, exit, focus, focus_lastfor, focus_next, focus_prev, focus_to, fromUTF8, grid, grid_forget, has_mainwindow?, load_tcllibrary, load_tclscript, load_tclscript_rsrc, load_tclscript_rsrcid, lower_window, pack, pack_forget, pkgconfig_get, pkgconfig_list, place, place_forget, raise_window, #root, show_kinsoku, sleep, strictMotif, subst_tk_backslash, subst_utf_backslash, tcl_pkgconfig_get, tcl_pkgconfig_list, thread_update, thread_update_idletasks, tk_pkgconfig_get, tk_pkgconfig_list, toUTF8, to_backslash_sequence, ungrid, unload_tcllibrary, unpack, unplace, #update, update, update_idletasks, utf_to_backslash, utf_to_backslash_sequence, wakeup

Methods included from Encoding

#default_encoding=, #encoding=, #encoding_convertfrom, #encoding_convertto, #encoding_dirs, #encoding_dirs=, #encoding_name, #encoding_names, #encoding_obj, #encoding_objs, #encoding_system=, #encoding_system_name, #encoding_system_obj, #force_default_encoding, #force_default_encoding=, #force_default_encoding?, #tk_encoding_names

Methods included from TkCore

#_tk_call_to_list_core, #after, #after_cancel, #after_idle, #appname, #appsend, #appsend_deny, #appsend_displayof, callback, #callback_break, #callback_continue, #callback_return, #chooseColor, #chooseDirectory, #do_one_event, #event_generate, #getMultipleOpenFile, #getMultipleSaveFile, #getOpenFile, #getSaveFile, #get_eventloop_tick, #get_eventloop_weight, #get_no_event_wait, #inactive, #inactive_displayof, #info, #ip_eval, #ip_eval_with_enc, #ip_eval_without_enc, #ip_invoke, #ip_invoke_with_enc, #ip_invoke_without_enc, #is_mainloop?, #load_cmd_on_ip, #mainloop, #mainloop_exist?, #mainloop_thread?, #mainloop_watchdog, #messageBox, #rb_appsend, #rb_appsend_displayof, #reset_inactive, #reset_inactive_displayof, #restart, #scaling, #scaling_displayof, #set_eventloop_tick, #set_eventloop_weight, #set_no_event_wait, #tk_call, #tk_call_to_list, #tk_call_to_list_with_enc, #tk_call_to_list_without_enc, #tk_call_to_simplelist, #tk_call_to_simplelist_with_enc, #tk_call_to_simplelist_without_enc, #tk_call_with_enc, #tk_call_without_enc, #windowingsystem

Methods included from TkComm

_at, _callback_entry?, _callback_entry_class?, _curr_cmd_id, _fromUTF8, _genobj_for_tkwidget, _next_cmd_id, _toUTF8, array2tk_list, #bind, #bind_all, #bind_append, #bind_append_all, #bind_remove, #bind_remove_all, #bindinfo, #bindinfo_all, bool, image_obj, install_cmd, #install_cmd, list, num_or_str, number, procedure, simplelist, string, #subst, tk_tcl2ruby, uninstall_cmd, #uninstall_cmd, window

Methods included from TkEvent

#install_bind, #install_bind_for_event_class

Methods included from TkDND::DND

#dnd_bindsource, #dnd_bindsource_info, #dnd_bindtarget, #dnd_bindtarget_info, #dnd_clearsource, #dnd_cleartarget, #dnd_drag, version

Methods included from TkDND::Shape

package_name, package_patchlevel, package_version, #shape_bounds, #shape_get, #shape_offset, #shape_set, #shape_update, version

Methods inherited from TkObject

#destroy, #epath, #event_generate, #method_missing, #path, #tk_send, #tk_send_to_list, #tk_send_to_list_with_enc, #tk_send_to_list_without_enc, #tk_send_to_simplelist, #tk_send_to_simplelist_with_enc, #tk_send_to_simplelist_without_enc, #tk_send_with_enc, #tk_send_without_enc, #to_eval

Methods included from TkConfigMethod

#[], #[]=, __IGNORE_UNKNOWN_CONFIGURE_OPTION__, #__check_available_configure_options, __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!, #cget, #cget_strict, #config_hash_kv, #configinfo, #configure, #configure_cmd, #current_configinfo

Methods included from TkTreatFont

#font_configinfo, #font_configure, #font_copy, #kanjifont_configure, #kanjifont_copy, #latinfont_configure, #latinfont_copy

Methods inherited from TkKernel

new

Constructor Details

This class inherits a constructor from TkWindow

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class TkObject

Instance Method Details

#extents(item) ⇒ Object

BarElement_ID = [‘blt_barchart_bar’.freeze, ‘00000’.taint].freeze

def bar(elem=nil, keys={})
  if elem.kind_of?(Hash)
    keys = elem
    elem = nil
  end
  unless elem
    elem = BarElement_ID.join(TkCore::INTERP._ip_id_).freeze
    BarElement_ID[1].succ!
  end
  tk_send('bar', elem, keys)
  Element.new(self, elem, :without_creating=>true)
end


52
53
54
# File 'ext/lib/tkextlib/blt/barchart.rb', line 52

def extents(item)
  num_or_str(tk_send_without_enc('extents', item))
end

#inside(x, y) ⇒ Object



60
61
62
# File 'ext/lib/tkextlib/blt/barchart.rb', line 60

def inside(x, y)
  bool(tk_send_without_enc('inside', x, y))
end

#invtransform(x, y) ⇒ Object



56
57
58
# File 'ext/lib/tkextlib/blt/barchart.rb', line 56

def invtransform(x, y)
  list(tk_send_without_enc('invtransform', x, y))
end

#metafile(file = None) ⇒ Object



64
65
66
67
68
# File 'ext/lib/tkextlib/blt/barchart.rb', line 64

def metafile(file=None)
  # Windows only
  tk_send('metafile', file)
  self
end

#snap(output, keys = {}) ⇒ Object



70
71
72
73
# File 'ext/lib/tkextlib/blt/barchart.rb', line 70

def snap(output, keys={})
  tk_send_without_enc('snap', *(hash_kv(keys, false) + output))
  self
end

#transform(x, y) ⇒ Object



75
76
77
# File 'ext/lib/tkextlib/blt/barchart.rb', line 75

def transform(x, y)
  list(tk_send_without_enc('transform', x, y))
end