예제 #1
0
  @Override
  protected TrackSegment createTrack() {
    final TrackSegment res = new TrackSegment();
    res.setPlotRelative(_relativeMode);

    // reset the relative mode flag
    _relativeMode = false;

    return res;
  }
예제 #2
0
  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);
  }