Java Doc for MapContext.java in  » GIS » GeoTools-2.4.1 » org » geotools » map » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.map 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.map.MapContext

All known Subclasses:   org.geotools.map.DefaultMapContext,
MapContext
public interface MapContext (Code)
Store context information about a map display. This object is based on the OGC Web Map Context Specification.
author:
   Cameron Shorter
version:
   $Id: MapContext.java 26197 2007-07-10 21:38:33Z jgarnett $




Method Summary
 booleanaddLayer(MapLayer layer)
     Add a new layer if not already present and trigger a LayerListEvent .
 booleanaddLayer(int index, MapLayer layer)
     Add a new layer in the specified position and trigger a LayerListEvent .
 voidaddLayer(FeatureSource featureSource, Style style)
     Add a new layer and trigger a LayerListEvent .
 voidaddLayer(FeatureCollection collection, Style style)
     Add a new layer and trigger a LayerListEvent .
 voidaddLayer(Collection collection, Style style)
     Add a new layer and trigger a LayerListEvent .
 voidaddLayer(GridCoverage gridCoverage, Style style)
    
 voidaddLayer(AbstractGridCoverage2DReader gridCoverage, Style style)
    
 intaddLayers(MapLayer[] layers)
     Add an array of new layers and trigger a LayerListEvent .
Parameters:
  layers - The new layers that are to be added.
 voidaddMapBoundsListener(MapBoundsListener listener)
     Register interest in receiving MapBoundsEvent s.
 voidaddMapLayerListListener(MapLayerListListener listener)
     Register interest in receiving a LayerListEvent .
public  voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)
     Registers PropertyChangeListener to receive events.
 voidclearLayerList()
     Clears the whole layer list.
 StringgetAbstract()
     Get the abstract which describes this interface, returns an empty string if this has not been set yet.
 ReferencedEnvelopegetAreaOfInterest()
     Gets the current area of interest.
 StringgetContactInformation()
     Get the contact information associated with this context, returns an empty string if contactInformation has not been set.
 CoordinateReferenceSystemgetCoordinateReferenceSystem()
     Get the current coordinate system.
 String[]getKeywords()
     Get an array of keywords associated with this context, returns an empty array if no keywords have been set.
 MapLayergetLayer(int index)
     Return the requested layer.
Parameters:
  index - index of layer to return.
 ReferencedEnvelopegetLayerBounds()
     Get the bounding box of all the layers in this MapContext.
 intgetLayerCount()
    
 MapLayer[]getLayers()
     Return this model's list of layers.
 StringgetTitle()
     Get the title, returns an empty string if it has not been set yet.
 intindexOf(MapLayer layer)
     Returns the index of the first occurrence of the specified layer, or -1 if this list does not contain this element.
 Iteratoriterator()
     Returns an iterator over the layers in this context in proper sequence.
 voidmoveLayer(int sourcePosition, int destPosition)
     Moves a layer from a position to another.
 booleanremoveLayer(MapLayer layer)
     Remove a layer, if present, and trigger a LayerListEvent .
Parameters:
  layer - a MapLayer that will be added.
 MapLayerremoveLayer(int index)
     Remove a layer and trigger a LayerListEvent .
 voidremoveLayers(MapLayer[] layers)
     Remove an array of layers and trigger a LayerListEvent .
 voidremoveMapBoundsListener(MapBoundsListener listener)
     Remove interest in receiving a BoundingBoxEvent s.
 voidremoveMapLayerListListener(MapLayerListListener listener)
     Remove interest in receiving LayerListEvent .
public  voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)
     Removes PropertyChangeListener from the list of listeners.
 voidsetAbstract(String conAbstract)
     Set an abstract which describes this context.
 voidsetAreaOfInterest(Envelope areaOfInterest, CoordinateReferenceSystem coordinateReferenceSystem)
     Set a new area of interest and trigger a BoundingBoxEvent .
 voidsetAreaOfInterest(Envelope areaOfInterest)
     Set a new area of interest and trigger an BoundingBoxEvent .
 voidsetAreaOfInterest(ReferencedEnvelope areaOfInterest)
     Set a new area of interest and trigger an BoundingBoxEvent .
 voidsetContactInformation(String contactInformation)
     Set contact inforation associated with this class.
 voidsetCoordinateReferenceSystem(CoordinateReferenceSystem crs)
     Set the CoordinateReferenceSystem for this map context.
 voidsetKeywords(String[] keywords)
     Set an array of keywords to associate with this context.
 voidsetTitle(String title)
     Set the title of this context.
 voidtransform(AffineTransform transform)
     Transform the coordinates according to the provided transform.



Method Detail
addLayer
boolean addLayer(MapLayer layer)(Code)
Add a new layer if not already present and trigger a LayerListEvent .
Parameters:
  layer - the layer to be inserted true if the layer has been added, false otherwise



addLayer
boolean addLayer(int index, MapLayer layer)(Code)
Add a new layer in the specified position and trigger a LayerListEvent . Layer won't be added if it's already in the list.
Parameters:
  index - index at which the layer will be inserted
Parameters:
  layer - the layer to be inserted true if the layer has been added, false otherwise



addLayer
void addLayer(FeatureSource featureSource, Style style)(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  featureSource - a FeatureSource with the new layer that will be added.



addLayer
void addLayer(FeatureCollection collection, Style style)(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  collection - a FeatureCollection with the new layer that will be added.



addLayer
void addLayer(Collection collection, Style style)(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  collection - Collection with the new layer that will be added.



addLayer
void addLayer(GridCoverage gridCoverage, Style style)(Code)
Add a new layer and trigger a LayerListEvent
Parameters:
  gridCoverage - a GridCoverage with the new layer that will be added.



addLayer
void addLayer(AbstractGridCoverage2DReader gridCoverage, Style style)(Code)
Add a new layer and trigger a LayerListEvent
Parameters:
  gridCoverage - an AbstractGridCoverage2DReader with the new layer that will be added.



addLayers
int addLayers(MapLayer[] layers)(Code)
Add an array of new layers and trigger a LayerListEvent .
Parameters:
  layers - The new layers that are to be added. the number of layers actually added to the MapContext



addMapBoundsListener
void addMapBoundsListener(MapBoundsListener listener)(Code)
Register interest in receiving MapBoundsEvent s.
Parameters:
  listener - The object to notify when the area of interest has changed.



addMapLayerListListener
void addMapLayerListListener(MapLayerListListener listener)(Code)
Register interest in receiving a LayerListEvent . A LayerListEvent is sent if a layer is added or removed, but not if the data within a layer changes.
Parameters:
  listener - The object to notify when Layers have changed.



addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)(Code)
Registers PropertyChangeListener to receive events.
Parameters:
  listener - The listener to register.



clearLayerList
void clearLayerList()(Code)
Clears the whole layer list. Will fire a LayerListChangedEvent



getAbstract
String getAbstract()(Code)
Get the abstract which describes this interface, returns an empty string if this has not been set yet. The Abstract.



getAreaOfInterest
ReferencedEnvelope getAreaOfInterest()(Code)
Gets the current area of interest. Current area of interest



getContactInformation
String getContactInformation()(Code)
Get the contact information associated with this context, returns an empty string if contactInformation has not been set. the ContactInformation.



getCoordinateReferenceSystem
CoordinateReferenceSystem getCoordinateReferenceSystem()(Code)
Get the current coordinate system. the coordinate system of this box.



getKeywords
String[] getKeywords()(Code)
Get an array of keywords associated with this context, returns an empty array if no keywords have been set. The array returned is a copy, changes to the returned array won't influence the MapContextState array of keywords



getLayer
MapLayer getLayer(int index) throws IndexOutOfBoundsException(Code)
Return the requested layer.
Parameters:
  index - index of layer to return. the layer at the specified position
throws:
  IndexOutOfBoundsException - if the index is out of range



getLayerBounds
ReferencedEnvelope getLayerBounds() throws IOException(Code)
Get the bounding box of all the layers in this MapContext. If all the layers cannot determine the bounding box in the speed required for each layer, then null is returned. The bounds will be expressed in the MapContext coordinate system. The bounding box of the features or null if unknown and tooexpensive for the method to calculate.
throws:
  IOException - if an IOException occurs while accessing the FeatureSourcebounds



getLayerCount
int getLayerCount()(Code)
Returns the number of layers in this map context the number of layers in this map context



getLayers
MapLayer[] getLayers()(Code)
Return this model's list of layers. If no layers are present, then an empty array is returned. This model's list of layers.



getTitle
String getTitle()(Code)
Get the title, returns an empty string if it has not been set yet. the title, or an empty string if it has not been set.



indexOf
int indexOf(MapLayer layer)(Code)
Returns the index of the first occurrence of the specified layer, or -1 if this list does not contain this element.
Parameters:
  layer - the MapLayer to search for DOCUMENT ME!



iterator
Iterator iterator()(Code)
Returns an iterator over the layers in this context in proper sequence. an iterator over the layers in this context in proper sequence.



moveLayer
void moveLayer(int sourcePosition, int destPosition)(Code)
Moves a layer from a position to another. Will fire a MapLayerListEvent
Parameters:
  sourcePosition - the layer current position
Parameters:
  destPosition - the layer new position



removeLayer
boolean removeLayer(MapLayer layer)(Code)
Remove a layer, if present, and trigger a LayerListEvent .
Parameters:
  layer - a MapLayer that will be added. true if the layer has been removed



removeLayer
MapLayer removeLayer(int index)(Code)
Remove a layer and trigger a LayerListEvent .
Parameters:
  index - The index of the layer that it's going to be removed the layer removed, if any



removeLayers
void removeLayers(MapLayer[] layers)(Code)
Remove an array of layers and trigger a LayerListEvent .
Parameters:
  layers - The layers that are to be removed.



removeMapBoundsListener
void removeMapBoundsListener(MapBoundsListener listener)(Code)
Remove interest in receiving a BoundingBoxEvent s.
Parameters:
  listener - The object to stop sending change events.



removeMapLayerListListener
void removeMapLayerListListener(MapLayerListListener listener)(Code)
Remove interest in receiving LayerListEvent .
Parameters:
  listener - The object to stop sending LayerListEvents.



removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)(Code)
Removes PropertyChangeListener from the list of listeners.
Parameters:
  listener - The listener to remove.



setAbstract
void setAbstract(String conAbstract)(Code)
Set an abstract which describes this context.
Parameters:
  conAbstract - the Abstract.



setAreaOfInterest
void setAreaOfInterest(Envelope areaOfInterest, CoordinateReferenceSystem coordinateReferenceSystem) throws IllegalArgumentException(Code)
Set a new area of interest and trigger a BoundingBoxEvent .
Parameters:
  areaOfInterest - The new areaOfInterest.
Parameters:
  coordinateReferenceSystem - The coordinate system being using by this model.
throws:
  IllegalArgumentException - if an argument is null.



setAreaOfInterest
void setAreaOfInterest(Envelope areaOfInterest) throws IllegalArgumentException(Code)
Set a new area of interest and trigger an BoundingBoxEvent .
Parameters:
  areaOfInterest - The new area of interest.
throws:
  IllegalArgumentException - if an argument is null.MapContext.setAreaOfInterest(ReferencedEnvelope)MapContext.setAreaOfInterest(Envelope,CoordinateReferenceSystem)



setAreaOfInterest
void setAreaOfInterest(ReferencedEnvelope areaOfInterest)(Code)
Set a new area of interest and trigger an BoundingBoxEvent .
Parameters:
  areaOfInterest - The new area of interest.
throws:
  IllegalArgumentException - if an argument is null.



setContactInformation
void setContactInformation(String contactInformation)(Code)
Set contact inforation associated with this class.
Parameters:
  contactInformation - the ContactInformation.



setCoordinateReferenceSystem
void setCoordinateReferenceSystem(CoordinateReferenceSystem crs) throws TransformException, FactoryException(Code)
Set the CoordinateReferenceSystem for this map context.
Parameters:
  crs -
throws:
  FactoryException -
throws:
  TransformException -



setKeywords
void setKeywords(String[] keywords)(Code)
Set an array of keywords to associate with this context.
Parameters:
  keywords - the Keywords.



setTitle
void setTitle(String title)(Code)
Set the title of this context.
Parameters:
  title - the title.



transform
void transform(AffineTransform transform)(Code)
Transform the coordinates according to the provided transform. Useful for zooming and panning processes.
Parameters:
  transform - The transform to change area of interest.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.