@Override protected TrackSegment createTrack() { final TrackSegment res = new TrackSegment(); res.setPlotRelative(_relativeMode); // reset the relative mode flag _relativeMode = false; return res; }
public static void exportThisSegment( final org.w3c.dom.Document doc, final Element trk, final TrackSegment seg) { final Element segE = CoreTrackSegmentHandler.exportThisSegment(doc, seg, TRACK_SEGMENT); // sort out the remaining attributes segE.setAttribute(PLOT_RELATIVE, writeThis(seg.getPlotRelative())); trk.appendChild(segE); }