Created a common HeatmapDraggable class that SegmentPotentialView and BarrierView.