/* -*- c-basic-offset: 2; indent-tabs-mode: nil; -*- */ /* * FreeDots -- MusicXML to braille music transcription * * Copyright 2008-2010 Mario Lang All Rights Reserved. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details (a copy is included in the LICENSE.txt file that * accompanied this code). * * You should have received a copy of the GNU General Public License * along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * This file is maintained by Mario Lang <mlang@delysid.org>. */ package freedots.musicxml; /** A very simple link between several notes to represent a slur. * <p> * This class does no error checking at all and is probably too simple. * Its main purpose is for {@link freedots.musicxml.Note} instances to be * able to ask if they are part of a slur and if they are the final element * of the slur. */ public class Slur extends freedots.music.Slur<Note> { Slur(final Note initialNote) { super(initialNote); } @Override public final boolean add(final Note note) { if (super.add(note)) { note.addSlur(this); return true; } return false; } }