lib/glimmer/swt/custom/shape/oval.rb in glimmer-dsl-swt-4.20.15.3 vs lib/glimmer/swt/custom/shape/oval.rb in glimmer-dsl-swt-4.20.15.4
- old
+ new
@@ -31,13 +31,9 @@
module Custom
# Represents a shape (graphics) to be drawn on a control/widget/canvas/display
# That is because Shape is drawn on a parent as graphics and doesn't have an SWT widget for itself
class Shape
class Oval < Shape
- def parameter_names
- [:x, :y, :width, :height]
- end
-
# checks if shape contains the point denoted by x and y
def contain?(x, y)
x, y = inverse_transform_point(x, y)
shape_geometry = java.awt.geom.Ellipse2D::Double.new(self.absolute_x, self.absolute_y, calculated_width, calculated_height)
shape_geometry.contains(x, y)