Package instantbach.data.chord

Examples of instantbach.data.chord.Symbol


        int row = 0;

        //for each available symbol..
        for (int i = 0; i < availableSymbols.size(); i++) {

            Symbol symbol = availableSymbols.get(i);
            SymbolButton button = new SymbolButton(symbol);
            button.addActionListener(this);
            buttonList.add(button);

            c.gridx = col;
View Full Code Here


        //create a progression using the given identifiers
        for (int i = identifiers.size() - 1; i >= 0; i--) {
            //get the symbol for the current identifier
            String id = identifiers.get(i);
            Symbol symbol = availableSymbols.getSymbolByIdentifier(id);

            //add this symbol to the current progression
            progression.add(symbol);
        }
View Full Code Here

     * Adds the symbol of the given identifier and displayed name to this list
     * @param identifier String
     * @param displayed String
     */
    public void add(String identifier, String displayed) {
        Symbol symbol = new Symbol(identifier, displayed);
        list.add(symbol);
        identifierMap.put(symbol.getIdentifier(), symbol);
    }
View Full Code Here

     * Returns the displayed text for the symbol at the given index
     * @param index int
     * @return String
     */
    public String getDisplayed(int index) {
        Symbol symbol = this.get(index);

        if (symbol != null)
            return symbol.getDisplayed();
        else
            return null;
    }
View Full Code Here

     * Returns the symbol identifier at the given index
     * @param index int
     * @return String
     */
    public String getIdentifier(int index) {
        Symbol symbol = this.get(index);

        if (symbol != null)
            return symbol.getIdentifier();
        else
            return null;
    }
View Full Code Here

TOP

Related Classes of instantbach.data.chord.Symbol

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.