View Javadoc

1   package nl.tudelft.simulation.introspection.mapping;
2   
3   /***
4    * An interface defining the services of a table presentation configuration. It
5    * is used to initialize tables with renderers and editors for different cell
6    * types. Renderer and editor classes are not checked for type-safety. Normally,
7    * they should be assignable from {@link javax.swing.table.TableCellRenderer}
8    * and
9    * 
10   * @author (c) 2003 <a href="http://www.tudelft.nl">Delft University of
11   *         Technology </a>, Delft, the Netherlands <br>
12   *         <a href="http://www.tbm.tudelft.nl">Faculty of Technology, Policy and
13   *         Management </a> <br>
14   *         <a href="http://www.sk.tbm.tudelft.nl">Department of System
15   *         Engineering </a> <br>
16   *         Main researcher : <a
17   *         href="http://www.tbm.tudelft.nl/webstaf/alexandv/">Dr. Ir. A.
18   *         Verbraeck <a/><br>
19   *         Assistant researchers <a href="http://www.peter-jacobs.com">Ir.
20   *         P.H.M. Jacobs </a> and <a
21   *         href="http://www.tbm.tudelft.nl/webstaf/nielsl">Ir. N.A. Lang </a>
22   */
23  public interface CellPresentationConfiguration
24  {
25      /***
26       * Returns all the cell-renderer combinations available in this
27       * configuration
28       * 
29       * @return A double class array of cardinality M-2. Tuple [i][j] defines M
30       *         cell class - render class combinations, with 'i' identifying the
31       *         row. 'j=0' identifies the cell class, 'j=1' identifies the
32       *         renderer class.
33       */
34      Class[][] getRenderers();
35  
36      /***
37       * Returns all the cell-editor combinations available in this configuration
38       * 
39       * @return A double class array of cardinality M-2. Tuple [i][j] defines M
40       *         cell class - editor class combinations, with 'i' identifying the
41       *         row. 'j=0' identifies the cell class, 'j=1' identifies the editor
42       *         class.
43       */
44      Class[][] getEditors();
45  }