26 |
import javax.swing.event.ListSelectionListener; |
import javax.swing.event.ListSelectionListener; |
27 |
|
|
28 |
import org.jsampler.SamplerChannelModel; |
import org.jsampler.SamplerChannelModel; |
29 |
|
import org.jsampler.view.SessionViewConfig.ChannelConfig; |
30 |
|
|
31 |
|
|
32 |
/** |
/** |
67 |
* Returns the title of this <code>JSChannelsPane</code>. |
* Returns the title of this <code>JSChannelsPane</code>. |
68 |
* @return The title of this <code>JSChannelsPane</code>. |
* @return The title of this <code>JSChannelsPane</code>. |
69 |
*/ |
*/ |
70 |
|
@Override |
71 |
public String |
public String |
72 |
toString() { return getTitle(); } |
toString() { return getTitle(); } |
73 |
|
|
78 |
public abstract void addChannel(SamplerChannelModel channelModel); |
public abstract void addChannel(SamplerChannelModel channelModel); |
79 |
|
|
80 |
/** |
/** |
81 |
|
* Adds new channel to this channels pane. |
82 |
|
* @param channelModel The sampler channel model to be used by the new channel. |
83 |
|
* @param config The view config of the sampler channel. |
84 |
|
*/ |
85 |
|
public void |
86 |
|
addChannel(SamplerChannelModel channelModel, ChannelConfig config) { |
87 |
|
addChannel(channelModel); |
88 |
|
} |
89 |
|
|
90 |
|
/** |
91 |
* Adds the specified channels to this channels pane. |
* Adds the specified channels to this channels pane. |
92 |
* @param chns The channels to be added. |
* @param chns The channels to be added. |
93 |
*/ |
*/ |
158 |
*/ |
*/ |
159 |
public abstract void setSelectedChannel(JSChannel channel); |
public abstract void setSelectedChannel(JSChannel channel); |
160 |
|
|
161 |
|
/** Selects all channels. */ |
162 |
|
public abstract void selectAll(); |
163 |
|
|
164 |
|
/** Deselects all selected channels. */ |
165 |
|
public abstract void clearSelection(); |
166 |
|
|
167 |
/** |
/** |
168 |
* Removes all selected channels in this channels pane. |
* Removes all selected channels in this channels pane. |
169 |
* Notice that this method does not remove any channels in the back-end. |
* Notice that this method does not remove any channels in the back-end. |
172 |
*/ |
*/ |
173 |
public abstract int removeSelectedChannels(); |
public abstract int removeSelectedChannels(); |
174 |
|
|
175 |
|
public abstract void moveSelectedChannelsOnTop(); |
176 |
|
|
177 |
|
public abstract void moveSelectedChannelsUp(); |
178 |
|
|
179 |
|
public abstract void moveSelectedChannelsDown(); |
180 |
|
|
181 |
|
public abstract void moveSelectedChannelsAtBottom(); |
182 |
|
|
183 |
/** |
/** |
184 |
* Registers the specified listener for receiving list selection events. |
* Registers the specified listener for receiving list selection events. |
185 |
* @param listener The <code>ListSelectionListener</code> to register. |
* @param listener The <code>ListSelectionListener</code> to register. |
193 |
public abstract void removeListSelectionListener(ListSelectionListener listener); |
public abstract void removeListSelectionListener(ListSelectionListener listener); |
194 |
|
|
195 |
/** |
/** |
196 |
|
* Process a selection event. |
197 |
|
* @param c The newly selected channel. |
198 |
|
* @param controlDown Specifies whether the control key is held down during selection. |
199 |
|
* @param shiftDown Specifies whether the shift key is held down during selection. |
200 |
|
*/ |
201 |
|
public abstract void processChannelSelection(JSChannel c, boolean controlDown, boolean shiftDown); |
202 |
|
|
203 |
|
/** |
204 |
* Determines whether the channel list UI should be automatically updated |
* Determines whether the channel list UI should be automatically updated |
205 |
* when channel is added/removed. The default value is <code>true</code>. |
* when channel is added/removed. The default value is <code>true</code>. |
206 |
* @see updateChannelListUI |
* @see updateChannelListUI |