# File lib/monkeybars/view_positioning.rb, line 52 def height @main_view_component.height end
# File lib/monkeybars/view_positioning.rb, line 12 def move_to(x, y) @main_view_component.set_location(x,y) end
# File lib/monkeybars/view_positioning.rb, line 31 def move_to_bottom_left move_to(0, bottom_edge_y_coordinate) end
# File lib/monkeybars/view_positioning.rb, line 35 def move_to_bottom_right screen_size = Toolkit.default_toolkit.screen_size move_to(right_edge_x_coordinate, bottom_edge_y_coordinate) end
# File lib/monkeybars/view_positioning.rb, line 16 def move_to_center x = (screen_size.width - @main_view_component.width)/2 y = (screen_size.height - @main_view_component.height)/2 move_to(x, y) end
# File lib/monkeybars/view_positioning.rb, line 27 def move_to_top_left move_to(0, 0) end
# File lib/monkeybars/view_positioning.rb, line 22 def move_to_top_right move_to(right_edge_x_coordinate, 0) end
Returns a java.awt.Dimension
# File lib/monkeybars/view_positioning.rb, line 8 def screen_size Toolkit.default_toolkit.screen_size end
# File lib/monkeybars/view_positioning.rb, line 48 def width @main_view_component.width end
Generated with the Darkfish Rdoc Generator 2.