def draw
@document.stroke_color @theme.marker_colour
if @theme.stroke_grid_markers?
(@height / @spacing).times do |x|
offset = @spacing * (x + 1)
@document.move_to [@point.first, (@point.last + offset)]
@document.line_width(0.5)
@document.stroke_line_to([(@point.first + @width), (@point.last + offset)])
end
end
@document.move_to @point
@document.line_width(2)
@document.stroke_line_to([@point.first, @point.last + @height])
@document.move_to @point
@document.line_width(2)
@document.stroke_line_to([(@point.first + @width), @point.last])
@document.move_to @point.first, (@point.last + height)
@document.stroke_color '000000'
@document.line_width(1)
@document.move_to @point
end