Package com.bbn.openmap.dataAccess.shape

Examples of com.bbn.openmap.dataAccess.shape.DbfTableModel$DoubleRenderer


                                                                            // a
                                                                            // polyline
                                                                            // layer
                    _drawableLayer.setName("Drawable Layer");
                    _layerHandler.addLayer(_drawableLayer);
                    DbfTableModel model = new DbfTableModel(1);

                    model.setDecimalCount(0, (byte) 0);
                    model.setLength(0, (byte) 10);
                    model.setColumnName(0, "Column1");
                    model.setType(0, (byte) DbfTableModel.TYPE_CHARACTER);

                    _drawableLayer.setModel(model);
                    _addShape.setEnabled(true);
                    _setModel.setEnabled(false);
                } catch (Exception exception) {
View Full Code Here


     *
     * @param layer The layer whose data is to be displayed
     */
    public void showTable(final EsriLayer layer) {
        JFrame frame = new JFrame("Table");
        DbfTableModel model = layer.getModel();
        JTable table = new JTable(model);
        JScrollPane pane = new JScrollPane(table);
        frame.getContentPane().add(pane, BorderLayout.CENTER);

        ListSelectionModel lsm = table.getSelectionModel();
View Full Code Here

            break;
        default:
            _list = null;
        }

        _model = new DbfTableModel(columnCount);
        this.name = name;
    }
View Full Code Here

        String dbfFileName = argv[0].substring(0, argv[0].lastIndexOf('.') + 1)
                + "dbf";

        try {
            DbfTableModel dbf = epi.getDbfTableModel(PropUtils.getResourceOrFileOrURL(epi,
                    dbfFileName));
            list.putAttribute(DBF_ATTRIBUTE, dbf);
            Debug.output("Set list in table");
            dbf.showGUI(dbfFileName, 0);

        } catch (Exception e) {
            Debug.error("Can't read .dbf file for .shp file: " + dbfFileName
                    + "\n" + e.getMessage());
            System.exit(0);
View Full Code Here

                if (dbfFile != null) {
                    dbfFileURL = PropUtils.getResourceOrFileOrURL(this, dbfFile);
                }
                if (dbfFileURL != null) {
                    InputStream is = dbfFileURL.openStream();
                    dbfModel = new DbfTableModel(new DbfInputStream(is));
                }
                if (dbfModel == null) {
                    String csvFile = props.getProperty(prefix + csvFileProperty);
                    URL infofileURL = null;
                    if (csvFile != null) {
View Full Code Here

            setList(new EsriPolylineList());
            break;
        default:
        }

        _model = new DbfTableModel(columnCount);
    }
View Full Code Here

     *
     * @param layer The layer whose data is to be displayed
     */
    public void showTable(final EsriLayer layer) {
        JFrame frame = new JFrame("Table");
        DbfTableModel model = layer.getModel();
        JTable table = new JTable(model);
        JScrollPane pane = new JScrollPane(table);
        frame.getContentPane().add(pane, BorderLayout.CENTER);

        ListSelectionModel lsm = table.getSelectionModel();
View Full Code Here

                List graphicList = new ArrayList();
                for (int i = 0; i < fileName.length; i++) {
                    URL url = PropUtils.getResourceOrFileOrURL(fileName[i]);
                    if (url != null) {
                        if (fileName[i].endsWith("shp")) {
                            DbfTableModel dbf = DbfTableModel.getDbfTableModel(PropUtils.getResourceOrFileOrURL(fileName[i].replaceAll(".shp",
                                    ".dbf")));
                            ;
                            list = EsriGraphicList.getEsriGraphicList(url,
                                    null,
                                    dbf);
View Full Code Here

TOP

Related Classes of com.bbn.openmap.dataAccess.shape.DbfTableModel$DoubleRenderer

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.