|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.tuwien.ifs.somtoolbox.apps.viewer.controls.multichannelPlayback.Commons
public class Commons
This class contains static fields, methods and some additional logic that is used by multichannel playback related classes
Constructor Summary | |
---|---|
Commons()
|
Method Summary | |
---|---|
static void |
centerWindow(Component fenster)
Places the given component in the middle of the screen. |
static String |
cutEndOfString(String in,
int number)
Removes the last "number" characters of the string |
static File |
getChosenFile(boolean bSave,
Component parent,
String suffix,
JFileChooser jfc)
Gives the user the possibility to select a filename using the Filechooser-Dialog |
static String |
makeSureThatLastCharIsACorrectFileSeparator(String path)
Makes sure that the given String ends with the OS-correct File.separator ('/' on Unix, '\\' on Windows) |
static void |
playSound(String[][] aFiles,
int iLine)
Overloading: playSound with an array of files |
static void |
playSound(String file1,
String file2,
int iLine)
Plays two sound files on the required output line |
static String |
stripSuffix(String sMitSuffix)
Returns the string until (excluding) the first dot (.) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String sUnitDescFileName
public static String sJukeboxdir
public static String sDecodedOutputDir
public static float p_decode
public static Logger log
public static Random rand
public static LinkedHashMap<File,File> lhmDecoded
public static int iSongscount
public static int iDecodedcount
public static long lStarttime
public static SimpleDateFormat sdfHHmmss
public static ControlFrame cf
static final String RES_DIR
static final FileFilter ASSIGNMENT_FILEFILTER
public static final boolean bBigEndian
public static final AudioFormat datalineformat
public static final AudioFormat monoformat
public static final DataLine.Info datalineformat_info
public static final Color LIGHTRED
public static final Color HIGHLIGHT
public static final Color MUTED_SPEAKER
public static final String[] A_FINDME_FILES
public static final String FINDME_LEFT
public static final String FINDME_RIGHT
public static final String FINDME_SILENCE
public static final String FINDME_GENERIC
public static final String FINDME_INTRO
public static final long SLEEPFOR
public static final String DECODED_SUFFIX
public static final String APP_NAME
public static final String LOGFILENAME
public static final String INSTRUCTIONS_HTMLFILENAME
public static final int MAX_TOOLTIP_COLUMNS
public static final int MAX_TOOLTIP_LINES
public static final char SEP_IN_KEY
public static final char SEP_IN_VALUE
public static final String KEY_DIM_LAYOUT_TABLE
public static final String KEY_DIM_SOM
public static final String KEY_FILE_SOM
public static final String KEY_ASSIGNMENT
public static final String KEY_SPEAKER
public static final String PROPFILEHEADER
public static final String PROPFILE_SUFFIX
Constructor Detail |
---|
public Commons()
Method Detail |
---|
public static void playSound(String file1, String file2, int iLine)
public static void playSound(String[][] aFiles, int iLine)
playSound
with an array of files
public static String makeSureThatLastCharIsACorrectFileSeparator(String path)
public static String stripSuffix(String sMitSuffix)
public static void centerWindow(Component fenster)
Actually intended for JFrame
and
JDialog
, but java.awt.Component
is superclass
of both.
public static String cutEndOfString(String in, int number)
public static File getChosenFile(boolean bSave, Component parent, String suffix, JFileChooser jfc) throws Exception
suffix should start with the .
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |