22 |
|
|
23 |
package org.jsampler.view.fantasia; |
package org.jsampler.view.fantasia; |
24 |
|
|
25 |
|
import java.awt.event.MouseListener; |
26 |
|
|
27 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
28 |
|
|
29 |
/** |
/** |
31 |
* @author Grigor Iliev |
* @author Grigor Iliev |
32 |
*/ |
*/ |
33 |
public interface ChannelView { |
public interface ChannelView { |
34 |
|
enum Type { SMALL, NORMAL } |
35 |
|
|
36 |
|
/** Determines the type of the view. */ |
37 |
|
public Type getType(); |
38 |
|
|
39 |
public JComponent getComponent(); |
public JComponent getComponent(); |
40 |
|
|
41 |
/** Configures the view. */ |
/** Configures the view. */ |
66 |
public void updateVoiceCount(int count); |
public void updateVoiceCount(int count); |
67 |
|
|
68 |
public void expandChannel(); |
public void expandChannel(); |
69 |
|
|
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 |
} |
} |