/* * [ConstellationDirNode.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 ConstellationDirNode extends ConstellationNode { /** * name of directory leg this node represents. */ private final String dirLegname; /** * constructor * * @param dirLegname name of directory leg. */ public ConstellationDirNode( String dirLegname ) { this.dirLegname = dirLegname; } /** * Get icon to represent current state of this ConstellationDirNode * * @return ImageIcon to represent included/excluded state. */ ImageIcon getStateIcon() { return includeState.getDirIcon(); } }