~ubuntu-branches/ubuntu/precise/triplea/precise

« back to all changes in this revision

Viewing changes to src/games/strategy/ui/ImageScroller.java

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-11-11 21:40:11 UTC
  • Revision ID: package-import@ubuntu.com-20111111214011-sehf2rwat36o2xqf
Tags: upstream-1.3.2.2
ImportĀ upstreamĀ versionĀ 1.3.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This program is free software; you can redistribute it and/or modify
 
3
 * it under the terms of the GNU General Public License as published by
 
4
 * the Free Software Foundation; either version 2 of the License, or
 
5
 * (at your option) any later version.
 
6
 * This program is distributed in the hope that it will be useful,
 
7
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
9
 * GNU General Public License for more details.
 
10
 * You should have received a copy of the GNU General Public License
 
11
 * along with this program; if not, write to the Free Software
 
12
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
13
 */
 
14
 
 
15
/*
 
16
 * ImageScroller.java
 
17
 *
 
18
 * Created on November 1, 2001, 6:29 PM
 
19
 */
 
20
 
 
21
package games.strategy.ui;
 
22
 
 
23
import javax.swing.*;
 
24
 
 
25
/**
 
26
 *
 
27
 * @author  Sean Bridges
 
28
 * @version 1.0
 
29
 *
 
30
 * Overlays the small view with the large view
 
31
 */
 
32
public class ImageScroller extends JPanel
 
33
{
 
34
 
 
35
        /** Creates new ImageScroller
 
36
         */
 
37
    public ImageScroller(ImageScrollerLargeView large, ImageScrollerSmallView small) 
 
38
        {
 
39
                OverlayLayout overlay = new OverlayLayout(this);
 
40
                this.setLayout(overlay);
 
41
                
 
42
                this.add(small);
 
43
                this.add(large);
 
44
                small.setAlignmentX(1);
 
45
                small.setAlignmentY(0);
 
46
    }
 
47
}