org.geotools.catalog.defaults
Class DefaultGeoResourceInfo

java.lang.Object
  extended byorg.geotools.catalog.defaults.DefaultGeoResourceInfo
All Implemented Interfaces:
GeoResourceInfo

public class DefaultGeoResourceInfo
extends java.lang.Object
implements GeoResourceInfo

Implementation of GeoResourceInfo.


Field Summary
protected  ReferencedEnvelope bounds
           
protected  java.lang.String description
           
protected  javax.swing.Icon icon
           
protected  java.lang.String[] keywords
           
protected  java.lang.String name
           
protected  java.net.URI schema
           
protected  java.lang.String title
           
 
Constructor Summary
protected DefaultGeoResourceInfo()
           
  DefaultGeoResourceInfo(java.lang.String title, java.lang.String name, java.lang.String description, java.net.URI schema, com.vividsolutions.jts.geom.Envelope bounds, org.opengis.referencing.crs.CoordinateReferenceSystem crs, java.lang.String[] keywords, javax.swing.Icon icon)
           
 
Method Summary
 com.vividsolutions.jts.geom.Envelope getBounds()
          Returns the BBox of the resource if one exists, The null envelope otherwise.
 org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
          Returns the CRS of the resource if one exists, null otherwise.
 java.lang.String getDescription()
          Returns the resource's description.
 javax.swing.Icon getIcon()
          Base symbology (with out decorators) representing this resource.
 java.lang.String[] getKeywords()
          Returns the keywords assocaited with this resource Known Mappings: Maps to Dublin Core's Subject element
 java.lang.String getName()
          Returns the name of the data ... such as the typeName or LayerName.
 java.net.URI getSchema()
          Returns the xml schema namespace for this resource type.
 java.lang.String getTitle()
          Returns the resource's title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected java.lang.String title

description

protected java.lang.String description

name

protected java.lang.String name

keywords

protected java.lang.String[] keywords

schema

protected java.net.URI schema

icon

protected javax.swing.Icon icon

bounds

protected ReferencedEnvelope bounds
Constructor Detail

DefaultGeoResourceInfo

protected DefaultGeoResourceInfo()

DefaultGeoResourceInfo

public DefaultGeoResourceInfo(java.lang.String title,
                              java.lang.String name,
                              java.lang.String description,
                              java.net.URI schema,
                              com.vividsolutions.jts.geom.Envelope bounds,
                              org.opengis.referencing.crs.CoordinateReferenceSystem crs,
                              java.lang.String[] keywords,
                              javax.swing.Icon icon)
Method Detail

getTitle

public java.lang.String getTitle()
Description copied from interface: GeoResourceInfo
Returns the resource's title

Specified by:
getTitle in interface GeoResourceInfo
Returns:

getKeywords

public java.lang.String[] getKeywords()
Description copied from interface: GeoResourceInfo
Returns the keywords assocaited with this resource

Known Mappings:

Specified by:
getKeywords in interface GeoResourceInfo
Returns:
Keywords for use with search, or null unavailable.

getDescription

public java.lang.String getDescription()
Description copied from interface: GeoResourceInfo
Returns the resource's description.

Known Mappings:

Specified by:
getDescription in interface GeoResourceInfo
Returns:
description of resource, or null if unavailable

getSchema

public java.net.URI getSchema()
Description copied from interface: GeoResourceInfo
Returns the xml schema namespace for this resource type.

Known Mappings:

Specified by:
getSchema in interface GeoResourceInfo
Returns:
namespace, used with getName() to identify resource

getName

public java.lang.String getName()
Description copied from interface: GeoResourceInfo
Returns the name of the data ... such as the typeName or LayerName.

Known Mappings:

Specified by:
getName in interface GeoResourceInfo
Returns:
name of the data, used with getSchema() to identify resource

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: GeoResourceInfo
Base symbology (with out decorators) representing this resource.

The Icon returned should conform the the Eclipse User Interface Guidelines (16x16 image with a 16x15 glyph centered).

This plug-in provides default based on resource type:


  <b>return</b> ISharedImages.getImagesDescriptor( IGeoResoruce );
 

getBounds

public com.vividsolutions.jts.geom.Envelope getBounds()
Description copied from interface: GeoResourceInfo
Returns the BBox of the resource if one exists, The null envelope otherwise.

The bounds are returned in (ie should be reprojected to) Lat Long:

Known Mappings:

Specified by:
getBounds in interface GeoResourceInfo
Returns:
Lat Long bounding box of the resource

getCRS

public org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
Description copied from interface: GeoResourceInfo
Returns the CRS of the resource if one exists, null otherwise.

Known Mappings:

Specified by:
getCRS in interface GeoResourceInfo
Returns:
CRS of the resource, or null if unknown.


Copyright © GeoTools. All Rights Reserved.