001package jmri.jmrit.throttle.buttons;
002
003import jmri.jmrit.catalog.NamedIcon;
004
005/**
006 * 
007 * A small button handling layout power
008 * 
009 * <hr>
010 * This file is part of JMRI.
011 * <p>
012 * JMRI is free software; you can redistribute it and/or modify it under the
013 * terms of version 2 of the GNU General Public License as published by the Free
014 * Software Foundation. See the "COPYING" file for a copy of this license.
015 * <p>
016 * JMRI is distributed in the hope that it will be useful, but WITHOUT ANY
017 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
018 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
019 *
020 */
021
022public class SmallPowerManagerButton extends PowerManagerButton {
023
024    public SmallPowerManagerButton(Boolean fullText) {
025        super(fullText);
026    }
027
028    public SmallPowerManagerButton() {
029        super();
030    }
031    
032    @Override
033    protected void initComponents() {
034        setBorderPainted(false);
035    }
036
037    @Override
038    protected void loadIcons() {
039        setPowerOnIcon(new NamedIcon("resources/icons/throttles/GreenPowerLED.gif", "resources/icons/throttles/GreenPowerLED.gif"));
040        setPowerOffIcon(new NamedIcon("resources/icons/throttles/RedPowerLED.gif", "resources/icons/throttles/RedPowerLED.gif"));
041        setPowerUnknownIcon(new NamedIcon("resources/icons/throttles/YellowPowerLED.gif", "resources/icons/throttles/YellowPowerLED.gif"));
042    }
043
044}