Method: Tk::BLT::PlotComponent::Pen.id2obj

Defined in:
lib/tkextlib/blt/component.rb

.id2obj(chart, id) ⇒ Object



955
956
957
958
959
960
961
# File 'lib/tkextlib/blt/component.rb', line 955

def self.id2obj(chart, id)
  cpath = chart.path
  PenID_TBL.mutex.synchronize{
    return id unless PenID_TBL[cpath]
    PenID_TBL[cpath][id]? PenID_TBL[cpath][id]: id
  }
end