001    /*
002     * Created on Jan 13, 2009
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
005     * the License. You may obtain a copy of the License at
006     *
007     * http://www.apache.org/licenses/LICENSE-2.0
008     *
009     * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
010     * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
011     * specific language governing permissions and limitations under the License.
012     *
013     * Copyright @2009-2010 the original author or authors.
014     */
015    package org.fest.swing.driver;
016    
017    import javax.swing.JComponent;
018    
019    import org.fest.swing.core.Robot;
020    
021    /**
022     * Understands utility methods related to scrolling.
023     *
024     * @author Juhos Csaba-Zsolt
025     *
026     * @deprecated Use <code>{@link org.fest.swing.core.Scrolling}</code> instead.
027     */
028    @Deprecated
029    public final class Scrolling {
030    
031      /**
032       * Scrolls a <code>{@link JComponent}</code> into view within a container.
033       * @param robot simulates user input.
034       * @param c the given component.
035       */
036      public static void scrollToVisible(Robot robot, JComponent c) {
037        org.fest.swing.core.Scrolling.scrollToVisible(robot, c);
038      }
039    
040      private Scrolling() {}
041    }