/* * [ConstellationFileLeaf.java] * * Summary: holds info about one file leaf in the JTree. * * Copyright: (c) 2011-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.0 2011-01-31 initial version */ package com.mindprod.constellation; import javax.swing.ImageIcon; /** * holds info about one file leaf in the JTree. * * @author Roedy Green, Canadian Mind Products * @version 1.0 2011-01-31 initial version * @since 2011-01-31 */ class ConstellationFileLeaf extends ConstellationNode { /** * name of file without path */ private final String filename; /** * constructor * * @param filename name of file without path. */ public ConstellationFileLeaf( String filename ) { this.filename = filename; } /** * Get icon to represent current state of this ConstellationFileLeaf * * @return ImageIcon to represent included/excluded state. */ ImageIcon getStateIcon() { return includeState.getFileIcon(); } }