View Javadoc
1   package org.opentrafficsim.editor;
2   
3   import org.opentrafficsim.swing.gui.AppearanceControl;
4   
5   import de.javagl.treetable.JTreeTable;
6   import de.javagl.treetable.TreeTableModel;
7   
8   /**
9    * Prevents the TreeTable from showing appearance background color. 
10   * <p>
11   * Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
12   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
13   * </p>
14   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
15   */
16  public class AppearanceControlTreeTable extends JTreeTable implements AppearanceControl
17  {
18  
19      /** */
20      private static final long serialVersionUID = 20231016L;
21  
22      /**
23       * Constructor.
24       * @param treeTableModel TreeTableModel; tree table model.
25       */
26      public AppearanceControlTreeTable(final TreeTableModel treeTableModel)
27      {
28          super(treeTableModel);
29      }
30  
31      /** {@inheritDoc} */
32      @Override
33      public boolean isFont()
34      {
35          return true;
36      }
37  
38  }