Package open.dolphin.client

Examples of open.dolphin.client.ImageEntry


               
                // 抽出期間をイテレートする
                for (Iterator iter2 = periodList.iterator(); iter2.hasNext(); ) {
                    // シェーマモデルをエントリに変換しリストに加える
                    SchemaModel model = (SchemaModel)iter2.next();
                    ImageEntry entry = getImageEntry(model, spec.getIconSize());
                    el.add(entry);
                }
               
                // リターンリストへ追加する
                ret.add(el);
View Full Code Here


     * @param iconSize アイコンのサイズ
     * @return ImageEntry
     */
    private ImageEntry getImageEntry(SchemaModel schema, Dimension iconSize) {
       
        ImageEntry model = new ImageEntry();
       
        model.setId(schema.getId());
        //model.setConfirmDate(ModelUtils.getDateTimeAsString(schema.getConfirmDate()));  // First?
        model.setConfirmDate(ModelUtils.getDateTimeAsString(schema.getConfirmed()))// First?
        model.setContentType(schema.getExtRef().getContentType());
        model.setTitle(schema.getExtRef().getTitle());
        model.setMedicalRole(schema.getExtRef().getMedicalRole());
       
        byte[] bytes = schema.getJpegByte();
       
        // Create ImageIcon
        ImageIcon icon = new ImageIcon(bytes);
        if (icon != null) {
            model.setImageIcon(adjustImageSize(icon, iconSize));
        }
       
        return model;
    }
View Full Code Here

TOP

Related Classes of open.dolphin.client.ImageEntry

Copyright © 2018 www.massapicom. 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.