001package jmri.jmrit.display.layoutEditor.LayoutEditorDialogs;
002
003import javax.annotation.*;
004import jmri.*;
005import jmri.jmrit.display.layoutEditor.*;
006
007/**
008 * MVC Editor component for LayoutWye objects.
009 *
010 * Note there might not be anything for this class to do;
011 * LayoutTrackEditors has a comment saying that PositionablePoint
012 * doesn't have an editor.
013 *
014 * @author Bob Jacobsen  Copyright (c) 2020
015 * 
016 */
017public class LayoutWyeEditor extends LayoutTurnoutEditor {
018
019    /**
020     * constructor method.
021     * @param layoutEditor main layout editor.
022     */
023    public LayoutWyeEditor(@Nonnull LayoutEditor layoutEditor) {
024        super(layoutEditor);
025    }
026
027    // set the continuing route Turnout State
028    @Override
029    protected void setContinuingRouteTurnoutState() {
030        layoutTurnout.setContinuingSense(Turnout.CLOSED);
031        if (editLayoutTurnoutStateComboBox.getSelectedIndex() == editLayoutTurnoutThrownIndex) {
032            layoutTurnout.setContinuingSense(Turnout.THROWN);
033        }
034    }
035    
036
037    // private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LayoutWyeEditor.class);
038}