Module: Roby::GUI::RelationsCanvasTaskProxy

Includes:
RelationsCanvasTask
Included in:
Transaction::TaskProxy
Defined in:
lib/roby/gui/relations_view/relations_canvas.rb

Instance Attribute Summary collapse

Attributes included from RelationsCanvasTask

#displayed_state, #last_event

Instance Method Summary collapse

Methods included from RelationsCanvasTask

#display_time_end, #display_time_start, #layout_events, to_svg, #update_graphics

Methods included from RelationsCanvasPlanObject

#display_events

Instance Attribute Details

#real_object=(value) ⇒ Object (writeonly)

Sets the attribute real_object

Parameters:

  • value

    the value to set the attribute real_object to.



296
297
298
# File 'lib/roby/gui/relations_view/relations_canvas.rb', line 296

def real_object=(value)
  @real_object = value
end

Instance Method Details

#display(display, graphics_item) ⇒ Object



318
319
320
321
# File 'lib/roby/gui/relations_view/relations_canvas.rb', line 318

def display(display, graphics_item)
    graphics_item.text.plain_text = display_name(display).to_s
    layout_events(display)
end

#display_create(display) ⇒ Object



308
309
310
311
312
313
314
315
316
# File 'lib/roby/gui/relations_view/relations_canvas.rb', line 308

def display_create(display)
    scene = display.scene
    item = super

    brush = item.brush
    brush.style = Qt::BDiagPattern
    item.brush = brush
    item
end

#display_name(display) ⇒ Object



304
305
306
# File 'lib/roby/gui/relations_view/relations_canvas.rb', line 304

def display_name(display)
    real_object.display_name(display)
end

#display_parentObject



302
# File 'lib/roby/gui/relations_view/relations_canvas.rb', line 302

def display_parent; end

#flagsObject



298
299
300
# File 'lib/roby/gui/relations_view/relations_canvas.rb', line 298

def flags
    real_object.flags
end