Class | Tk::Tcllib::Tkpiechart::Pie
In: | tk/lib/tkextlib/tcllib/tkpiechart.rb
Parent: | TkcItem

### Methods

_delete_slice _entry_slice canvas delete delete_slice new_slice selected_slices tag tag_key

### Included Modules

ConfigMethod

### Public Instance methods

_delete_slice(slice)

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 122
        def _delete_slice(slice)
          @slice_tbl.delete(slice.to_eval)
        end

_entry_slice(slice)

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 119
        def _entry_slice(slice)
          @slice_tbl[slice.to_eval] = slice
        end

canvas()

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 116
        def canvas
          @c
        end

delete()

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 126
        def delete
          tk_call_without_enc('::stooop::delete', @tag_key)
          CItemID_TBL[@path].delete(@id) if CItemID_TBL[@path]
          self
        end

delete_slice(slice)

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 136
        def delete_slice(slice)
          unless slice.kind_of?(Slice)
            unless (slice = @slice_tbl[slice])
              return tk_call_without_enc('pie::deleteSlice', @tag_key, slice)
            end
          end
          unless slice.kind_of?(Slice) && slice.pie == self
            fail ArgumentError, "argument is not a slice of self"
          end
          slice.delete
        end

new_slice(text=None)

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 132
        def new_slice(text=None)
          Slice.new(self, text)
        end

selected_slices()

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 148
        def selected_slices
          tk_split_simplelist(tk_call_without_enc('pie::selectedSlices',
                                                  @tag_key)).collect{|slice|
            @slice_tbl[slice] || Slice.new(:no_create, self, slice)
          }
        end

tag()

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 113
        def tag
          @tag
        end

tag_key()

[Source]

    # File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 110
        def tag_key
          @tag_key
        end

[Validate]