class Glimmer::SWT::Custom::Shape::Oval
Public Instance Methods
dom()
click to toggle source
# File lib/glimmer/swt/custom/shape/oval.rb, line 38 def dom shape_id = id shape_class = name x = @args[0] y = @args[1] width = @args[2] height = @args[3] rx = width / 2.0 ry = height / 2.0 cx = x + rx cy = y + ry @dom ||= xml { ellipse(id: shape_id, class: shape_class, cx: cx, cy: cy, rx: rx, ry: ry) }.to_s end
element()
click to toggle source
# File lib/glimmer/swt/custom/shape/oval.rb, line 34 def element 'ellipse' end