JBotSim icon indicating copy to clipboard operation
JBotSim copied to clipboard

ClockListener version with onPreClock() and onPostClock()

Open remikey opened this issue 6 years ago • 1 comments

issue created in order to be sure to keep the discussion somewhere

In one of my implementations, I could have used a non-Node object being able to listen to onPreClock() and onPostClock(). It is not possible yet.

Indeed, onPreClock() and onPostClock() have been created after the ClockListener interface. This interface thus only contains onClock().

It is unclear how it could/should be available:

  • separated PreClockListener and PostClockListener, at the same level as ClockListener ?
  • a FullClockListener which inherits ClockListener ?

remikey avatar Oct 15 '19 07:10 remikey

I would like this option to be made available as well. Both proposed solutions (Pre/PostClockListener or FullClockListener) seem fine.

jschoete avatar Jan 05 '21 14:01 jschoete