Subversion Repositories svn.mios

Rev

Rev 213 | Rev 657 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 213 Rev 628
Line 1... Line 1...
1
/*
1
/*
2
 * @(#)Knob.java    beta7   2006/04/23
2
 * @(#)Knob.java    beta8   2006/04/23
3
 *
3
 *
4
 * Copyright (C) 2006    Adam King (adamjking@optusnet.com.au)
4
 * Copyright (C) 2008    Adam King (adamjking@optusnet.com.au)
5
 *
5
 *
6
 * This application is free software; you can redistribute it and/or modify
6
 * This application is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; either version 2 of the License, or
8
 * the Free Software Foundation; either version 2 of the License, or
9
 * (at your option) any later version.
9
 * (at your option) any later version.
Line 108... Line 108...
108
        this.icon = icon;
108
        this.icon = icon;
109
109
110
        PREF_SIZE = new Dimension(icon.getIconHeight() + 8, icon
110
        PREF_SIZE = new Dimension(icon.getIconHeight() + 8, icon
111
                .getIconHeight() + 8);
111
                .getIconHeight() + 8);
112
        DRAG_SPEED = 0.0075F;// 0.01F;
112
        DRAG_SPEED = 0.0075F;// 0.01F;
113
        CLICK_SPEED = 0.004F;
113
        CLICK_SPEED = 0.01F;
114
114
115
        hitArc.setAngleStart(235); // Degrees ??? Radians???
115
        hitArc.setAngleStart(235); // Degrees ??? Radians???
116
        hitArc.setFrame(4, 4, icon.getIconHeight(), icon.getIconHeight());
116
        hitArc.setFrame(4, 4, icon.getIconHeight(), icon.getIconHeight());
117
        middle = getHeight() / 2;
117
        middle = getHeight() / 2;
118
118