void set ( ObjectProperty < WeakReference < Segment1D < ? , ? > > > segment , DoubleProperty x , DoubleProperty y ) { this . segment = segment ; this . x = x ; this . y = y ; }
Change the x and y properties .