|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sump.analyzer.tools.Base
public abstract class Base
Abstract base class that may be used for tools.
This class is provided for convenience to ease implementing new tools and reduce the redundancy for commonly used methods.
For details about the methods required for tools, see Tool
interface.
Constructor Summary | |
---|---|
Base()
|
Method Summary | |
---|---|
abstract java.lang.String |
getName()
Is called to get the name for the menu entry. |
void |
init(java.awt.Frame frame)
Does nothing. |
abstract CapturedData |
process(CapturedData data)
This method is invoked when the tool is selected from the Tools menu. |
CapturedData |
process(CapturedData data,
int group,
int channel,
int position)
Calls process(CapturedData data) . |
void |
selectByIndex(javax.swing.JComboBox box,
java.lang.String index)
Selects the item of a combo box at the given index. |
void |
selectByValue(javax.swing.JComboBox box,
java.lang.String value)
Selects the first item of the combo box that matches the given string value. |
void |
selectByValue(javax.swing.JComboBox box,
java.lang.String[] entries,
java.lang.String value)
Selects the item of a combo box whose index corresponds to a string array index matching the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base()
Method Detail |
---|
public abstract java.lang.String getName()
Tool
getName
in interface Tool
public void init(java.awt.Frame frame)
init
in interface Tool
frame
- ignoredpublic abstract CapturedData process(CapturedData data)
Tool
process
in interface Tool
data
- currently displayed captured data
CapturedData
if provided data has been altered or null
otherwisepublic CapturedData process(CapturedData data, int group, int channel, int position)
process(CapturedData data)
.
process
in interface Tool
data
- currently displayed captured datagroup
- channel group at the mouse position where the menu was openendchannel
- number of channel at the mouse position where the menu was openendposition
- number of sample at the mouse position where the menu was openend
CapturedData
if provided data has been altered or null
otherwisepublic void selectByValue(javax.swing.JComboBox box, java.lang.String[] entries, java.lang.String value)
box
- combo box where the entry should be selectedentries
- list of strings corresponding to combo box entriesvalue
- value to be searched for in string array and highlighted in combo boxpublic void selectByValue(javax.swing.JComboBox box, java.lang.String value)
box
- combo box where the entry should be selectedvalue
- value to be searched for in string array and highlighted in combo boxpublic void selectByIndex(javax.swing.JComboBox box, java.lang.String index)
box
- combo box where the entry should be selectedindex
- string containing integer to be used as index for selected item in combo box
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |