1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
|
# File 'lib/tkextlib/blt/component.rb', line 1862
def marker_create(type, keys={})
case type
when :text, 'text'
Tk::BLT::PlotComponent::TextMarker.new(self, keys)
when :line, 'line'
Tk::BLT::PlotComponent::LineMarker.new(self, keys)
when :bitmap, 'bitmap'
Tk::BLT::PlotComponent::BitmapMarker.new(self, keys)
when :image, 'image'
Tk::BLT::PlotComponent::ImageMarker.new(self, keys)
when :polygon, 'polygon'
Tk::BLT::PlotComponent::PolygonMarker.new(self, keys)
when :window, 'window'
Tk::BLT::PlotComponent::WindowMarker.new(self, keys)
else
if type.kind_of?(Tk::BLT::PlotComponent::Marker)
type.new(self, keys)
else
Tk::BLT::PlotComponent::Marker.create_type(self, type, keys)
end
end
end
|