Package com.bbn.openmap.dataAccess.image

Examples of com.bbn.openmap.dataAccess.image.ImageTile$Cache


                                                      int index,
                                                      boolean isSelected,
                                                      boolean cellHasFocus) {

            if (value instanceof ImageTile) {
                ImageTile imageTile = (ImageTile) value;
                label.setText((String) imageTile.getAttribute(NAME_ATTRIBUTE));

                if (!isSelected) {
                    label.setForeground(imageTile.isVisible() ? fontColor
                            : notVisibleColor);
                }

                if (value instanceof ErrImageTile) {
                    statusMark.setIcon(warningImage);
View Full Code Here


    public ImageTile getImageTile(GeoTIFFImageReader gtid,
                                  ImageTile.Cache cache) throws IOException {

        int modelType = gtfFile.getModelType();
        ImageTile ret = null;
        String errorMessage = null;
        /*
         * ModelTypeProjected = 1 (Projection Coordinate System)
         * ModelTypeGeographic = 2 Geographic latitude-longitude System)
         * ModelTypeGeocentric = 3 (Geocentric (X,Y,Z) Coordinate System)
View Full Code Here

                    + " - to - " + llat + ", " + rlon);
        }

        if (gtid == null) {
            BufferedImage bi = gtfFile.getBufferedImage();
            return new ImageTile((float) ulat, (float) llon, (float) llat, (float) rlon, bi);
        } else {
            return new ImageTile((float) ulat, (float) llon, (float) llat, (float) rlon, gtid, cache);
        }
    }
View Full Code Here

                    buf = new StringBuffer();
                } else {
                    buf.append(";");
                }

                ImageTile imageTile = (ImageTile) it.next();
                String filePath = (String) imageTile.getAttribute(FILE_PATH_ATTRIBUTE);
                if (filePath != null) {
                    buf.append(filePath);
                }
            }
            props.put(prefix + ImageFilePathProperty, buf.toString());
View Full Code Here

            try {
                URL fileURL = PropUtils.getResourceOrFileOrURL(filePath);
                if (fileURL != null) {
                    if (imageReaderLoaders != null) {
                        ImageTile imageTile = null;
                        for (Iterator it = imageReaderLoaders.iterator(); it.hasNext();) {
                            ImageReaderLoader idl = (ImageReaderLoader) it.next();
                            if (idl.isLoadable(filePath)) {
                                ImageReader id = idl.getImageReader(fileURL);
                                ImageTile tmpImageTile = id.getImageTile(imageCache);

                                if (imageTile == null) {
                                    imageTile = tmpImageTile;
                                } else if (tmpImageTile != null
                                        && imageTile instanceof ErrImageTile) {
View Full Code Here

     */
    protected void moveOneSlotToBottom(ImageTile[] selectedTiles2) {
        OMGraphicList list = getList();
        if (list != null && selectedTiles != null && selectedTiles.length > 0) {
            for (int i = selectedTiles2.length - 1; i >= 0; i--) {
                ImageTile tile = selectedTiles2[i];
                list.moveIndexedOneToBottom(list.indexOf(tile));
            }
            rebuildListModel();
        }
    }
View Full Code Here

     */
    protected void moveToBottom(ImageTile[] selectedTiles2) {
        OMGraphicList list = getList();
        if (list != null && selectedTiles != null && selectedTiles.length > 0) {
            for (int i = 0; i < selectedTiles2.length; i++) {
                ImageTile tile = selectedTiles2[i];
                list.moveIndexedToBottom(list.indexOf(tile));
            }
            rebuildListModel();
        }
    }
View Full Code Here

     */
    protected void moveOneSlotToTop(ImageTile[] selectedTiles2) {
        OMGraphicList list = getList();
        if (list != null && selectedTiles != null && selectedTiles.length > 0) {
            for (int i = 0; i < selectedTiles2.length; i++) {
                ImageTile tile = selectedTiles2[i];
                list.moveIndexedOneToTop(list.indexOf(tile));
            }
            rebuildListModel();
        }
    }
View Full Code Here

     */
    protected void moveToTop(ImageTile[] selectedTiles2) {
        OMGraphicList list = getList();
        if (list != null && selectedTiles != null && selectedTiles.length > 0) {
            for (int i = selectedTiles2.length - 1; i >= 0; i--) {
                ImageTile tile = selectedTiles2[i];
                list.moveIndexedToTop(list.indexOf(tile));
            }
            rebuildListModel();
        }
    }
View Full Code Here

        if (mapBean != null) {
            if (selectedTiles != null && selectedTiles.length > 0) {
                Rectangle2D rec = null;
                for (int i = selectedTiles2.length - 1; i >= 0; i--) {
                    ImageTile tile = selectedTiles2[i];

                    if (rec == null) {
                        rec = new Rectangle2D.Float(tile.getLRLon(), tile.getLRLat(), 0f, 0f);
                        rec.add(tile.getULLon(), tile.getULLat());
                    } else {
                        rec.add(tile.getULLon(), tile.getULLat());
                        rec.add(tile.getLRLon(), tile.getLRLat());
                    }
                }

                if (rec != null) {
                    LatLonPoint center = new LatLonPoint(rec.getCenterY(), rec.getCenterX());
View Full Code Here

TOP

Related Classes of com.bbn.openmap.dataAccess.image.ImageTile$Cache

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.