private TGMarker readMarker(int measure) throws IOException { TGMarker marker = getFactory().newMarker(); marker.setMeasure(measure); marker.setTitle(readStringByteSizeOfInteger()); readColor(marker.getColor()); return marker; }
private void writeMarker(TGMarker marker) { // escribo el titulo writeUnsignedByteString(marker.getTitle()); // escribo el color writeRGBColor(marker.getColor()); }
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; }
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()); }