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