com.bbn.openmap.plugin.esri

Class EsriLayer

    • Field Detail

      • dbf

        protected java.lang.String dbf
      • shx

        protected java.lang.String shx
      • shp

        protected java.lang.String shp
    • Constructor Detail

      • EsriLayer

        public EsriLayer()
        Creates an EsriLayer that will be configured through the setProperties() method
      • EsriLayer

        public EsriLayer(java.lang.String name,
                 int type,
                 int columnCount)
                  throws java.lang.Exception
        Creates an empty EsriLayer, usable for adding features at run-time
        Parameters:
        name - The name of the layer
        type - The type of layer
        columnCount - The number of columns in the dbf model
        Throws:
        java.lang.Exception
      • EsriLayer

        public EsriLayer(java.lang.String name,
                 java.lang.String dbf,
                 java.lang.String shp,
                 java.lang.String shx,
                 DrawingAttributes da)
                  throws java.net.MalformedURLException
        Creates an EsriLayer from a set of shape files
        Parameters:
        name - The name of the layer that may be used to reference the layer
        dbf - The url referencing the dbf extension file
        shp - The url referencing the shp extension file
        shx - The url referencing the shx extension file
        Throws:
        java.net.MalformedURLException
      • EsriLayer

        public EsriLayer(java.lang.String name,
                 java.net.URL dbf,
                 java.net.URL shp,
                 java.net.URL shx)
        Creates an EsriLayer from a set of shape files
        Parameters:
        name - The name of the layer that may be used to reference the layer
        dbf - The url referencing the dbf extension file
        shp - The url referencing the shp extension file
        shx - The url referencing the shx extension file
      • EsriLayer

        public EsriLayer(java.lang.String name,
                 java.net.URL dbf,
                 java.net.URL shp,
                 java.net.URL shx,
                 DrawingAttributes da)
        Creates an EsriLayer from a set of shape files
        Parameters:
        name - The name of the layer that may be used to reference the layer
        dbf - The url referencing the dbf extension file
        shp - The url referencing the shp extension file
        shx - The url referencing the shx extension file
        da - DrawingAttributes to use to render the layer contents.
    • Method Detail

      • addRecord

        public void addRecord(OMGraphic graphic,
                     java.util.ArrayList<java.lang.Object> record)
        Handles adding records to the geometry list and the DbfTableModel
        Parameters:
        graphic - An OMGraphic to add the graphics list
        record - A record to add to the DbfTableModel
      • getEsriGraphicList

        public EsriGraphicList getEsriGraphicList()
        Returns the EsriGraphicList for this layer
        Returns:
        The EsriGraphicList for this layer
      • getModel

        public DbfTableModel getModel()
        Returns the associated table model for this layer
        Returns:
        The associated table model for this layer
      • getType

        public int getType()
        Returns whether this layer is of type 0 (point), 3 (polyline), or 5(polygon)
        Returns:
        An int representing the type of layer, as specified in Esri's shape file format specification
      • query

        public void query(java.lang.String query)
        Filters the DbfTableModel given a SQL like string
        Parameters:
        query - A SQL like string to filter the DbfTableModel
      • setModel

        public void setModel(DbfTableModel model)
        Sets the DbfTableModel
        Parameters:
        model - The DbfModel to set for this layer
      • setProperties

        public void setProperties(java.lang.String prefix,
                         java.util.Properties properties)
        Sets the properties for the Layer.
        Specified by:
        setProperties in interface PropertyConsumer
        Overrides:
        setProperties in class OMGraphicHandlerLayer
        Parameters:
        prefix - the token to prefix the property names
        properties - the Properties object
      • getPropertyInfo

        public java.util.Properties getPropertyInfo(java.util.Properties list)
        Method to fill in a Properties object with values reflecting the properties able to be set on this PropertyConsumer. The key for each property should be the raw property name (without a prefix) with a value that is a String that describes what the property key represents, along with any other information about the property that would be helpful (range, default value, etc.).
        Specified by:
        getPropertyInfo in interface PropertyConsumer
        Overrides:
        getPropertyInfo in class OMGraphicHandlerLayer
        Parameters:
        list - a Properties object to load the PropertyConsumer properties into. If getList equals null, then a new Properties object should be created.
        Returns:
        Properties object containing PropertyConsumer property values. If getList was not null, this should equal getList. Otherwise, it should be the Properties object created by the PropertyConsumer.

Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details