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
20 * href="http://www.tbm.tudelft.nl/webstaf/peterja">Ir. P.H.M. Jacobs
21 * </a> and <a href="http://www.tbm.tudelft.nl/webstaf/nielsl">Ir. N.A.
22 * Lang </a>
23 *
24 */
25 public interface CellPresentationConfiguration
26 {
27 /***
28 * Returns all the cell-renderer combinations available in this
29 * configuration
30 *
31 * @return A double class array of cardinality M-2. Tuple [i][j] defines M
32 * cell class - render class combinations, with 'i' identifying the
33 * row. 'j=0' identifies the cell class, 'j=1' identifies the
34 * renderer class.
35 */
36 Class[][] getRenderers();
37
38 /***
39 * Returns all the cell-editor combinations available in this configuration
40 *
41 * @return A double class array of cardinality M-2. Tuple [i][j] defines M
42 * cell class - editor class combinations, with 'i' identifying the
43 * row. 'j=0' identifies the cell class, 'j=1' identifies the editor
44 * class.
45 */
46 Class[][] getEditors();
47 }