|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.catalog.defaults.DefaultGeoResourceInfo
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 |
protected java.lang.String title
protected java.lang.String description
protected java.lang.String name
protected java.lang.String[] keywords
protected java.net.URI schema
protected javax.swing.Icon icon
protected ReferencedEnvelope bounds
| Constructor Detail |
protected 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 |
public java.lang.String getTitle()
GeoResourceInfo
getTitle in interface GeoResourceInfopublic java.lang.String[] getKeywords()
GeoResourceInfoKnown Mappings:
getKeywords in interface GeoResourceInfonull unavailable.public java.lang.String getDescription()
GeoResourceInfoKnown Mappings:
getDescription in interface GeoResourceInfonull if unavailablepublic java.net.URI getSchema()
GeoResourceInfoKnown Mappings:
getSchema in interface GeoResourceInfopublic java.lang.String getName()
GeoResourceInfoKnown Mappings:
getName in interface GeoResourceInfopublic javax.swing.Icon getIcon()
GeoResourceInfoThe 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 );
Any LabelProvider should use the default image, a label decorator should be used to pick up these images in a separate thread. This allows resources like WMS to make blocking request of an external service.
getIcon in interface GeoResourceInfopublic com.vividsolutions.jts.geom.Envelope getBounds()
GeoResourceInfoThe bounds are returned in (ie should be reprojected to) Lat Long:
Known Mappings:
getBounds in interface GeoResourceInfopublic org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
GeoResourceInfoKnown Mappings:
getCRS in interface GeoResourceInfonull if unknown.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||