/[svn]/jsampler/trunk/src/org/jsampler/view/fantasia/ChannelView.java
ViewVC logotype

Annotation of /jsampler/trunk/src/org/jsampler/view/fantasia/ChannelView.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1734 - (hide annotations) (download)
Sun May 4 18:40:13 2008 UTC (15 years, 11 months ago) by iliev
File size: 2394 byte(s)
* bugfix: JSampler took forever to load a configuration with
  too many sampler channels
* Implemented option to show different channel view when
  the mouse pointer is over sampler channel
  (choose Edit/Preferences, then click the `Defaults' tab)

1 iliev 1730 /*
2     * JSampler - a java front-end for LinuxSampler
3     *
4     * Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com>
5     *
6     * This file is part of JSampler.
7     *
8     * JSampler is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License version 2
10     * as published by the Free Software Foundation.
11     *
12     * JSampler is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with JSampler; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20     * MA 02111-1307 USA
21     */
22    
23     package org.jsampler.view.fantasia;
24    
25 iliev 1734 import java.awt.event.MouseListener;
26    
27 iliev 1730 import javax.swing.JComponent;
28    
29     /**
30     *
31     * @author Grigor Iliev
32     */
33     public interface ChannelView {
34 iliev 1734 enum Type { SMALL, NORMAL }
35    
36     /** Determines the type of the view. */
37     public Type getType();
38    
39 iliev 1730 public JComponent getComponent();
40    
41     /** Configures the view. */
42     public void installView();
43    
44     /** Reverses configuration which was done during <code>installView</code>. */
45     public void uninstallView();
46    
47     public ChannelOptionsView getChannelOptionsView();
48    
49     /**
50     * Updates the channel settings. This method is invoked when changes to the
51     * channel were made.
52     */
53     public void updateChannelInfo();
54    
55     /**
56     * Invoked when the number of active disk streams has changed.
57     * @param count The new number of active disk streams.
58     */
59     public void updateStreamCount(int count);
60    
61    
62     /**
63     * Invoked when the number of active voices has changed.
64     * @param count The new number of active voices.
65     */
66     public void updateVoiceCount(int count);
67    
68     public void expandChannel();
69 iliev 1734
70     /** Determines whether the <code>Options</code> button is selected. */
71     public boolean isOptionsButtonSelected();
72    
73     /** Sets whether the <code>Options</code> button should be selected or not. */
74     public void setOptionsButtonSelected(boolean b);
75    
76     /**
77     * Registers the specified listener to listen on the component
78     * and some of its children.
79     */
80     public void addEnhancedMouseListener(MouseListener l);
81    
82     /** Removes the specified listener. */
83     public void removeEnhancedMouseListener(MouseListener l);
84    
85 iliev 1730 }

  ViewVC Help
Powered by ViewVC