Package org.geoforge.guillcogc.panel

Source Code of org.geoforge.guillcogc.panel.GfrPnlPrintableSctAwtDspSecTloImgLgdLyrOgc

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.geoforge.guillcogc.panel;

import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import org.geoforge.guillc.panel.GfrPnlPrintableSctAwtDspSecTloAbs;
import org.geoforge.guillc.panel.GfrPnlStatusBarAbs;
import org.geoforge.guillc.scrollpane.GfrScr;
import org.geoforge.wrpbasprssynogc.GfrWrpBasSynObjNameTloWms;

/**
*
* @author robert
*/
public class GfrPnlPrintableSctAwtDspSecTloImgLgdLyrOgc extends GfrPnlPrintableSctAwtDspSecTloAbs
{
   private String _strIdLgdLyr_ = null;
  
   public String getIdLegendLayer() { return this._strIdLgdLyr_; }
  
  
  
   public GfrPnlPrintableSctAwtDspSecTloImgLgdLyrOgc(
           GfrPnlStatusBarAbs pnlStatusBar,
           String strIdViewer,
           String strIdTlo,
           String strIdLgdLyr) throws Exception
   {
      super(pnlStatusBar, strIdTlo, strIdViewer);

      this._strIdLgdLyr_ = strIdLgdLyr;
           
     
      String strPathAbs = GfrWrpBasSynObjNameTloWms.getInstance().getPathAbsoluteImageFile(strIdLgdLyr);
      ImageIcon iin = new ImageIcon(strPathAbs);
      JLabel lbl = new JLabel(iin);
      super._tot = new GfrScr();
      ((JScrollPane) super._tot).getViewport().add(lbl);
   }
 

   @Override
   protected boolean _toggleCheckboxObject(String strIdObject, boolean blnValue) throws Exception
   {
      return false;
   }
  
   @Override
   public boolean init()
   {
      if (! super.init())
         return false;
     
      return true;
   }
  
   @Override
   public void destroy()
   {
      super.destroy();
   }
}
TOP

Related Classes of org.geoforge.guillcogc.panel.GfrPnlPrintableSctAwtDspSecTloImgLgdLyrOgc

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.