public interface ITank
| Modifier and Type | Method and Description |
|---|---|
void |
addNewItem(IqmDataBox item)
This method adds 1 new item to the
JList. |
void |
addNewItems(List<IqmDataBox> itemList)
Add a list of
IqmDataBoxes as a single item in the tank. |
void |
addNewItemsSync(List<IqmDataBox> itemList)
Add a list of
IqmDataBoxes as a single item in the tank. |
void |
addNewItemSync(IqmDataBox item)
This method adds 1 new item to the
JList. |
void |
deleteAllTankItems()
Purges the tank.
|
void |
deleteTankItems(int[] indices)
Delete selected indices of the tank.
|
void |
destroyItems()
Destroys the items according to the current settings.
|
IqmDataBox |
getCurrentTankIqmDataBoxAt(int mgrIndex)
Fetches the
IqmDataBox instance at the specified index of the
currently selected Tank item. |
int |
getCurrIndex()
Get the current index.
|
int |
getMaxIndex() |
int |
getNumberOfTankItems()
Get the number of total tank items.
|
IqmDataBox |
getSelectedIqmDataBox()
Fetches the current
IqmDataBox according to the selected item in
the manager. |
List<IqmDataBox> |
getTankDataAt(int index)
Fetches all data boxes in a specified tank index.
|
IqmDataBox |
getTankIqmDataBoxAt(int tankIndex,
int mgrIndex)
Fetches the
IqmDataBox instance at a specified tank and a
specified manager index. |
ITankPanel |
getTankPanel()
Get the tank panel.
|
boolean |
isEmpty()
Determine whether or not the Tank contains items.
|
boolean |
isVirtual(int index)
Determine whether a stack at position
index is virtual or
not. |
void |
loadImagesFromHD(File[] fileList)
Loads items from files on the hard drive.
|
void |
loadImagesFromHD(File[] fileList,
boolean waitForCompletion)
Loads items from files on the hard drive.
|
void |
loadImagesFromHD(List<File> fileList)
Loads items from files on the hard drive.
|
void |
loadNewImagesFromHDSequentially(List<File[]> batch)
|
DataType |
parseDraggedContent(List<File> fileList)
|
void |
runPlotParser(File f)
Runs the plot parser for a selected file.
|
void |
setCurrIndex(int arg)
Set the current index.
|
void |
setManagerForTankIndex(int tankIndex)
Set the manager for a tank index.
|
void |
setMaxIndex(int arg) |
void |
setTankPanel(ITankPanel tankPanel)
Set the tank panel.
|
void |
update(int tankIndex)
Updates the specified tank items.
|
void |
update(List<IqmDataBox> replacement,
int tankIndex)
Replaces the specified tank items.
|
void deleteAllTankItems()
int getNumberOfTankItems()
IqmDataBox getTankIqmDataBoxAt(int tankIndex, int mgrIndex) throws ArrayIndexOutOfBoundsException
IqmDataBox instance at a specified tank and a
specified manager index.tankIndex - a custom tank itemmgrIndex - the selected item in the stack at tank position
tankIndexnull if
no item is presentArrayIndexOutOfBoundsException - if either one of the requested indices is out of boundsIqmDataBox getCurrentTankIqmDataBoxAt(int mgrIndex) throws ArrayIndexOutOfBoundsException
IqmDataBox instance at the specified index of the
currently selected Tank item.mgrIndex - the selected stack item at the current tank positionnull if
no item is presentArrayIndexOutOfBoundsException - if the requested index is out of boundsIqmDataBox getSelectedIqmDataBox()
IqmDataBox according to the selected item in
the manager. Whether the right or left list represents and maintains the
tank item is determined automatically.
Note: This method is similar to getTankDataAt(int).
null, if no
item is presentgetTankDataAt(int)List<IqmDataBox> getTankDataAt(int index)
This method gets the data as List of IqmDataBoxes at the
specified index.
index - the tank list positionListvoid loadImagesFromHD(File[] fileList)
fileList - an array of Filesvoid loadImagesFromHD(List<File> fileList)
void loadNewImagesFromHDSequentially(List<File[]> batch)
batch - void addNewItems(List<IqmDataBox> itemList)
IqmDataBoxes as a single item in the tank. This is
an asynchronous method, which will do the loading in background.itemList - void addNewItemsSync(List<IqmDataBox> itemList)
IqmDataBoxes as a single item in the tank. This is
a synchronous method that is waiting until loading has finished.itemList - void addNewItem(IqmDataBox item)
JList. This is an
asynchronous method, which will do the loading in background.item - an IqmDataBox containing a single displayable item.
This could be of the following types: DataType.IMAGE ,
DataType.PLOT, DataType.TABLE, or
DataType.CUSTOMvoid addNewItemSync(IqmDataBox item)
JList. This is a
synchronous method that is waiting until loading has finished.item - an IqmDataBox containing a single displayable item.
This could be of the following types: DataType.IMAGE ,
DataType.PLOT, DataType.TABLE, or
DataType.CUSTOMaddNewItem(IqmDataBox)void destroyItems()
void setManagerForTankIndex(int tankIndex)
tankIndex - boolean isEmpty()
true if it is empty, false otherwiseint getCurrIndex()
void setCurrIndex(int arg)
arg - void setTankPanel(ITankPanel tankPanel)
tankPanel - ITankPanel getTankPanel()
int getMaxIndex()
void setMaxIndex(int arg)
boolean isVirtual(int index)
index is virtual or
not.index - true, if virtual, false otherwiseDataType parseDraggedContent(List<File> fileList) throws MultipleMIMETypesException
fileList - the List of filesDataTypeMultipleMIMETypesException - if the list includes more than one MIME typevoid runPlotParser(File f)
f - a file containing signal datavoid deleteTankItems(int[] indices)
indices - the indices to be deletedvoid update(int tankIndex)
tankIndex - void update(List<IqmDataBox> replacement, int tankIndex)
replacement - the new itemstankIndex - the items to be replacedCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.