net.grelf.grip
Class ImTable

java.lang.Object
  extended by net.grelf.grip.ImTable

public class ImTable
extends java.lang.Object

This class displays a window containing a summary of all open images (ImFrames) in the application. The user may select images in the table and a menu bar (see class TableMenu) enables the selected images to be processed together.


Constructor Summary
ImTable(GRIP app, java.lang.String title)
           
ImTable(GRIP app, java.lang.String title, boolean modal)
           
 
Method Summary
protected  void combine(java.lang.String action)
          Only called if table.getSelected () has a list of at least 2 selected ImFrame objects.
protected  javax.swing.JTable getJTable()
           
 java.util.List<ImFrame> getList()
           
protected  int getNSelected()
          Find the number of rows in the table which have been selected by the user.
protected  java.util.List<ImFrame> getSelected()
           
protected  ImTableModel getTableModel()
           
 void recombine()
          Recombine channels from 3 selected images: R1 G1 B1 R2 G2 B2 R3 G3 B3 | | | | | | | | | R1 G2 B3 R2 G3 B1 R3 G1 B2
 void refresh()
          Refresh the data in the table and redisplay it.
 void saveAsCSV()
          Just calls Util.saveJTableAsCSV ().
 void saveAsXML()
           
 void setVisible(boolean state)
          Show or hide the table window.
protected  void swap()
          Only called if table.getSelected () has a list of 2 selected ImFrame objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImTable

public ImTable(GRIP app,
               java.lang.String title)

ImTable

public ImTable(GRIP app,
               java.lang.String title,
               boolean modal)
Method Detail

getJTable

protected javax.swing.JTable getJTable()

getTableModel

protected ImTableModel getTableModel()

getList

public java.util.List<ImFrame> getList()

refresh

public void refresh()
Refresh the data in the table and redisplay it.


setVisible

public void setVisible(boolean state)
Show or hide the table window.


getNSelected

protected int getNSelected()
Find the number of rows in the table which have been selected by the user.


getSelected

protected java.util.List<ImFrame> getSelected()
Returns:
List of ImFrame objects which have been selected by the user

saveAsCSV

public void saveAsCSV()
Just calls Util.saveJTableAsCSV ().


saveAsXML

public void saveAsXML()

combine

protected void combine(java.lang.String action)
Only called if table.getSelected () has a list of at least 2 selected ImFrame objects.


recombine

public void recombine()
Recombine channels from 3 selected images: R1 G1 B1 R2 G2 B2 R3 G3 B3 | | | | | | | | | R1 G2 B3 R2 G3 B1 R3 G1 B2


swap

protected void swap()
Only called if table.getSelected () has a list of 2 selected ImFrame objects.