Exemplo n.º 1
0
 private TGMarker readMarker(int measure) throws IOException {
   TGMarker marker = getFactory().newMarker();
   marker.setMeasure(measure);
   marker.setTitle(readStringByteSizeOfInteger());
   readColor(marker.getColor());
   return marker;
 }
Exemplo n.º 2
0
  private void writeMarker(TGMarker marker) {
    // escribo el titulo
    writeUnsignedByteString(marker.getTitle());

    // escribo el color
    writeRGBColor(marker.getColor());
  }
Exemplo n.º 3
0
  private TGMarker readMarker(int measure) {
    TGMarker marker = this.factory.newMarker();

    marker.setMeasure(measure);

    // leo el titulo
    marker.setTitle(readUnsignedByteString());

    // leo el color
    readRGBColor(marker.getColor());

    return marker;
  }
Exemplo n.º 4
0
  private void createEditableMarker() {
    TGSongManager songManager =
        this.context.getAttribute(TGDocumentContextAttributes.ATTRIBUTE_SONG_MANAGER);
    TGMarker marker = this.context.getAttribute(TGDocumentContextAttributes.ATTRIBUTE_MARKER);
    if (marker == null) {
      TGMeasureHeader header =
          this.context.getAttribute(TGDocumentContextAttributes.ATTRIBUTE_HEADER);

      marker = songManager.getFactory().newMarker();
      marker.setMeasure(header.getNumber());
    }

    this.marker = marker.clone(songManager.getFactory());
  }