Here you can find the source of drawTuplet(Graphics g, int x, int y, int x2, int y2, int bi, String s1, String s2)
private static void drawTuplet(Graphics g, int x, int y, int x2, int y2, int bi, String s1, String s2)
//package com.java2s; /****************************************************************************** * * Copyright (c) 1999-2011 Cryptzone Group AB. All Rights Reserved. * //from w w w . ja v a 2s. c om * This file contains Original Code and/or Modifications of Original Code as * defined in and that are subject to the MindTerm Public Source License, * Version 2.0, (the 'License'). You may not use this file except in compliance * with the License. * * You should have received a copy of the MindTerm Public Source License * along with this software; see the file LICENSE. If not, write to * Cryptzone Group AB, Drakegatan 7, SE-41250 Goteborg, SWEDEN * *****************************************************************************/ import java.awt.Font; import java.awt.Graphics; public class Main { private static void drawTuplet(Graphics g, int x, int y, int x2, int y2, int bi, String s1, String s2) { Font font = g.getFont(); g.setFont(new Font(font.getName(), font.getStyle(), font.getSize() / 2)); g.drawString(s1, x + 1, y + 1 + bi / 2); g.drawString(s2, x2, y2 + bi / 2); g.setFont(font); } }