Examples of ImageModel


Examples of de.offis.faint.model.ImageModel

  /* (non-Javadoc)
   * @see javax.swing.table.TableModel#getValueAt(int, int)
   */
  public Object getValueAt(int rowIndex, int columnIndex) {
    ImageModel image = this.images.get(rowIndex);
    switch (columnIndex){
    case 0:
      if (image.getTumbnail()==null) return thumbPlaceholder;
      else return image.getTumbnail();
    case 1:
      if (image.getWidth()==null||image.getHeight()==null)
          return "<html><b>"+image.getFileName()+"</b><br>"
              +"unknown size"
              +"</html>";
      else
          return "<html><b>"+image.getFileName()+"</b><br>"
              +image.getWidth()+" x "+image.getHeight()
              +"</html>";
    }
    return null;
  }
View Full Code Here

Examples of de.offis.faint.model.ImageModel

  public void setFolder(File folder) {
    thumbnailloadingThread.clearRequestedThumbNails();
    File[] imageFiles = folder.listFiles(new Utilities.FileTypeFilter(Constants.IMAGE_SUFFIXES));
    this.images = new ArrayList<ImageModel>(imageFiles.length);
    for (File imageFile : imageFiles){
      ImageModel imageModel = new ImageModel(imageFile);
      this.images.add(imageModel);
      this.thumbnailloadingThread.preloadThumbnail(imageModel);
    }
    fireTableDataChanged();
  }
View Full Code Here

Examples of penny.downloadmanager.model.gui.ImageModel

    public ApplicationSettingsModel() {
        savingModel = new SavingModel();
        downloadingModel = new DownloadingModel();
        parsingModel = new ParsingModel();
        md5ingModel = new MD5ingModel();
        imageModel = new ImageModel();
        startupModel = new StartupModel();
        lookModel = new LookAndFeelModel();
        columns = new ArrayList<ColumnStatus>();
        int i = 0;
        for (String s : Download.propertyNames) {
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.