package nl.tudelft.simulation.dsol.swing.introspection.mapping; /** * An interface defining the services of a table presentation configuration. It is used to initialize tables with renderers and * editors for different cell types. Renderer and editor classes are not checked for type-safety. Normally, they should be * assignable from {@link javax.swing.table.TableCellRenderer}. *
* Copyright (c) 2002-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See * for project information https://simulation.tudelft.nl. The DSOL * project is distributed under a three-clause BSD-style license, which can be found at * * https://simulation.tudelft.nl/dsol/3.0/license.html. *
* @author Peter Jacobs. * @author Alexander Verbraeck. * @author Niels Lang. */ public interface CellPresentationConfiguration { /** * Returns all the cell-renderer combinations available in this configuration * @return A double class array of cardinality M-2. Tuple [i][j] defines M cell class - render class combinations, with 'i' * identifying the row. 'j=0' identifies the cell class, 'j=1' identifies the renderer class. */ Class>[][] getRenderers(); /** * Returns all the cell-editor combinations available in this configuration * @return A double class array of cardinality M-2. Tuple [i][j] defines M cell class - editor class combinations, with 'i' * identifying the row. 'j=0' identifies the cell class, 'j=1' identifies the editor class. */ Class>[][] getEditors(); }