How to edit PDI line in runtime

I want to edit “PDI->DrawLine()” and I used the Component Visualizers

its work ,but work in the editor viewport。
so what should i do

p.s. English is not my motherlanguage,apologies for my grammar