View Javadoc
1 /* 2 * Created on Oct 26, 2003 3 * 4 * To change the template for this generated file go to 5 * Window>Preferences>Java>Code Generation>Code and Comments 6 */ 7 package portaview.view; 8 9 import portaview.AbstractViewer; 10 import portaview.Registry; 11 import portaview.model.PortaViewModel; 12 13 /*** 14 * Implenets the view for the preview panel. 15 * @author William Lee 16 */ 17 public class PreviewView extends AbstractDisplayerView 18 { 19 ImageControlBar imgControls = null; 20 21 /*** 22 * Constrctus the preview view with a given model. 23 * @param model 24 */ 25 public PreviewView(PortaViewModel model, AbstractViewer viewer) 26 { 27 super(model, viewer); 28 } 29 30 /*** 31 * Returns the image control bar for the preview view. 32 * @see portaview.view.AbstractDisplayerView#getImageControls() 33 */ 34 protected ImageControlBar getImageControls(AbstractViewer viewer) 35 { 36 imgControls = ImageControlBar.getPreviewBar(viewer); 37 return imgControls; 38 } 39 40 /*** 41 * Needs a label, so returns true. 42 * @see portaview.view.AbstractDisplayerView#needsLabel() 43 */ 44 protected boolean needsLabel() 45 { 46 return true; 47 } 48 49 /*** 50 * Text for no album. 51 * @see portaview.view.AbstractDisplayerView#getNoPicText() 52 */ 53 protected String getNoPicText() 54 { 55 return "No album is assigned to this PortaView."; 56 } 57 58 /*** 59 * Optimization for refreshing. Returns true only when the 60 * display is not active. 61 * @see portaview.view.AbstractDisplayerView#needRefresh() 62 */ 63 protected boolean needRefresh() 64 { 65 return (!Registry.getMainApplication().isDisplayActive()); 66 } 67 68 }

This page was automatically generated by Maven