001package jmri.jmrit.operations.locations;
002
003import java.awt.Dimension;
004import jmri.jmrit.operations.OperationsFrame;
005import jmri.jmrit.operations.setup.Control;
006
007/**
008 * Yardmaster by track frame. Shows work at one location listed by track.
009 *
010 * @author Dan Boudreau Copyright (C) 2015
011 * 
012 */
013public class YardmasterByTrackFrame extends OperationsFrame {
014
015    public YardmasterByTrackFrame(Location location) {
016        super(Bundle.getMessage("TitleYardmasterByTrack"), new YardmasterByTrackPanel(location));
017        this.initComponents(location);
018    }
019
020    private void initComponents(Location location) {
021        super.initComponents();
022
023        if (location != null) {
024            setTitle(Bundle.getMessage("TitleYardmasterByTrack") + " (" + location.getName() + ")");
025        }
026
027        initMinimumSize(new Dimension(Control.panelWidth500, Control.panelHeight500));
028    }
029}