1 /*
2 * Created on Sep 30, 2003
3 * Copyright (c) 2003. All rights reserved.
4 */
5 package portaview.view;
6
7 import java.awt.Color;
8
9 import portaview.AbstractViewer;
10 import portaview.model.PortaViewModel;
11
12 /***
13 * Panel to display the pictures. This represents a View in the MVC model.
14 *
15 * @author <a href="mailto:wwlee1@uiuc.edu">William Lee</a>
16 * @version $Id: DisplayerView.java,v 1.10 2003/11/16 17:42:27 wlee Exp $
17 */
18 public class DisplayerView extends AbstractDisplayerView
19 {
20 ImageControlBar imgControls = null;
21
22 public DisplayerView(PortaViewModel model, AbstractViewer viewer)
23 {
24 super(model, viewer);
25 setBackground(Color.black);
26 }
27
28 /***
29 * Returns the image bar.
30 * @see portaview.view.AbstractDisplayerView#getImageControls()
31 */
32 protected ImageControlBar getImageControls(AbstractViewer viewer)
33 {
34 imgControls = ImageControlBar.getDisplayBar(viewer);
35 return imgControls;
36 }
37
38 /***
39 * Returns false (does not need label)
40 * @see portaview.view.AbstractDisplayerView#needsLabel()
41 */
42 protected boolean needsLabel()
43 {
44 return false;
45 }
46
47 /***
48 * Text for the no picture.
49 * @see portaview.view.AbstractDisplayerView#getNoPicText()
50 */
51 protected String getNoPicText()
52 {
53 return "No picture selected. Switch to PortaView Manager to select an Album.";
54 }
55
56 protected Color getNoPicTextColor()
57 {
58 return Color.white;
59 }
60
61 /***
62 * Optimization for refreshing. Returns true always.g
63 * @see portaview.view.AbstractDisplayerView#needRefresh()
64 */
65 protected boolean needRefresh()
66 {
67 return true;
68 }
69 }
This page was automatically generated by Maven