Examples of DlgImageViewer


Examples of hidb2.gui.util.DlgImageViewer

        // Implement image view  
        IWorkbenchWindow wbwin = PlatformUI.getWorkbench().getActiveWorkbenchWindow();

        IPreferenceStore pref = Activator.getDefault().getPreferenceStore();

        DlgImageViewer div = new DlgImageViewer(wbwin.getShell());

        div.setPref(pref.getInt(PrefConst.P_IVR_MIN_ZOOM), pref.getInt(PrefConst.P_IVR_MAX_ZOOM), pref
            .getInt(PrefConst.P_IVR_DEFAULT_WIDTH), pref.getInt(PrefConst.P_IVR_DEFAULT_HEIGHT));

        div.open(lstSel.get(0).getAbsolutePath());
        }
      }
    }
View Full Code Here

Examples of hidb2.gui.util.DlgImageViewer

      List<Card> lstCard = f.getLstCard();

      List<File> lstFic = new ArrayList<File>(lstCard.size());

      DlgImageViewer div = new DlgImageViewer(parent);

      IPreferenceStore pref = Activator.getDefault().getPreferenceStore();

      div.setPref(pref.getInt(PrefConst.P_IVR_MIN_ZOOM), pref.getInt(PrefConst.P_IVR_MAX_ZOOM), pref
          .getInt(PrefConst.P_IVR_DEFAULT_WIDTH), pref.getInt(PrefConst.P_IVR_DEFAULT_HEIGHT));

      for (Card crd : lstCard)
        {
        AttrImage imgAttr = (AttrImage) crd.getValue(attrIdx);
        if (imgAttr != null)
          {
          File imgFile = new File(imgAttr.getAbsolutePath());

          if (imgFile.exists())
            {
            lstFic.add(imgFile);
            }
          else
            {
            log.warning("File [" + imgAttr.getAbsolutePath() + "] not found");
            }
          }
        }

      div.open(lstFic);
      }
    }
View Full Code Here
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.