Java Doc for DefaultMapContext.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) 


java.lang.Object
   org.geotools.map.DefaultMapContext

All known Subclasses:   org.geotools.map.GraphicEnhancedMapContext,
DefaultMapContext
public class DefaultMapContext implements MapContext(Code)
The default implementation of the interface
author:
   Andrea Aime


Field Summary
final public static  LoggerLOGGER
     The logger for the map module.
protected  Stringabstracts
     Holds value of property abstracts.
 ReferencedEnvelopeareaOfInterest
    
protected  StringcontactInformation
     Holds value of property contactInformation.
 CoordinateReferenceSystemcrs
    
protected  String[]keywords
     Holds value of property keywords.
 ListlayerList
    
protected  MapLayerListenerlayerListener
    
protected  javax.swing.event.EventListenerListlistenerList
     Utility field used by event firing mechanism.
protected  java.beans.PropertyChangeSupportpropertyChangeSupport
     Utility field used by bound properties.
protected  Stringtitle
     Holds value of property title.

Constructor Summary
public  DefaultMapContext()
    
public  DefaultMapContext(CoordinateReferenceSystem crs)
    
public  DefaultMapContext(MapLayer[] layers)
    
public  DefaultMapContext(MapLayer[] layers, CoordinateReferenceSystem crs)
    
public  DefaultMapContext(MapLayer[] layers, String title, String contextAbstract, String contactInformation, String[] keywords)
    
public  DefaultMapContext(MapLayer[] layers, String title, String contextAbstract, String contactInformation, String[] keywords, CoordinateReferenceSystem crs)
    

Method Summary
public  booleanaddLayer(int index, MapLayer layer)
     Add a new layer if not already present and trigger a LayerListEvent .
Parameters:
  index - DOCUMENT ME!
Parameters:
  layer - Then new layer that has been added.
public  booleanaddLayer(MapLayer layer)
     Add a new layer and trigger a LayerListEvent .
Parameters:
  layer - Then new layer that has been added.
public  voidaddLayer(FeatureSource featureSource, Style style)
     Add a new layer and trigger a LayerListEvent .
public  voidaddLayer(CollectionSource source, Style style)
    
public  voidaddLayer(GridCoverage gc, Style style)
     Add a new layer and trigger a LayerListEvent .
public  voidaddLayer(AbstractGridCoverage2DReader reader, Style style)
     Add a new layer and trigger a LayerListEvent .
public  voidaddLayer(FeatureCollection collection, Style style)
     Add a new layer and trigger a LayerListEvent .
public  voidaddLayer(Collection collection, Style style)
    
public  intaddLayers(MapLayer[] layers)
     Add an array of new layers and trigger a LayerListEvent .
Parameters:
  layers - The new layers that are to be added.
public synchronized  voidaddMapBoundsListener(org.geotools.map.event.MapBoundsListener listener)
     Registers MapBoundsListener to receive events.
public synchronized  voidaddMapLayerListListener(org.geotools.map.event.MapLayerListListener listener)
     Registers MapLayerListListener to receive events.
public synchronized  voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)
     Registers PropertyChangeListener to receive events.
public  voidclearLayerList()
    
public  StringgetAbstract()
     Getter for property abstracts.
public  ReferencedEnvelopegetAreaOfInterest()
     Gets the current area of interest.
public  StringgetContactInformation()
     Getter for property contactInformation.
public  CoordinateReferenceSystemgetCoordinateReferenceSystem()
     Get the current coordinate system.
public  String[]getKeywords()
     Getter for property keywords.
public  MapLayergetLayer(int index)
     Return the requested layer.
Parameters:
  index - index of layer to return.
public  ReferencedEnvelopegetLayerBounds()
     Get the bounding box of all the layers in this MapContext.
public  intgetLayerCount()
    
public  MapLayer[]getLayers()
     Return this model's list of layers.
public  StringgetTitle()
     Getter for property title.
public  intindexOf(MapLayer layer)
    
public  Iteratoriterator()
     Returns an iterator over the layers in this context in proper sequence.
public  voidmoveLayer(int sourcePosition, int destPosition)
    
public  booleanremoveLayer(MapLayer layer)
     Remove a layer and trigger a LayerListEvent .
Parameters:
  layer - Then new layer that has been removed.
public  MapLayerremoveLayer(int index)
    
public  voidremoveLayers(MapLayer[] layers)
     Remove an array of layers and trigger a LayerListEvent .
public synchronized  voidremoveMapBoundsListener(org.geotools.map.event.MapBoundsListener listener)
     Removes MapBoundsListener from the list of listeners.
public synchronized  voidremoveMapLayerListListener(org.geotools.map.event.MapLayerListListener listener)
     Removes MapLayerListListener from the list of listeners.
public synchronized  voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)
     Removes PropertyChangeListener from the list of listeners.
public  voidsetAbstract(String abstractValue)
     Setter for property abstracts.
public  voidsetAreaOfInterest(Envelope areaOfInterest, CoordinateReferenceSystem coordinateReferenceSystem)
     Set a new area of interest and trigger a BoundingBoxEvent .
public  voidsetAreaOfInterest(Envelope areaOfInterest)
     Set a new area of interest and trigger an BoundingBoxEvent .
public  voidsetAreaOfInterest(ReferencedEnvelope areaOfInterest)
     Set a new area of interest and trigger an BoundingBoxEvent .
public  voidsetContactInformation(String contactInformation)
     Setter for property contactInformation.
public  voidsetCoordinateReferenceSystem(CoordinateReferenceSystem crs)
    
public  voidsetKeywords(String[] keywords)
     Setter for property keywords.
public  voidsetTitle(String title)
     Setter for property title.
public  voidtransform(AffineTransform transform)
     Transform the coordinates according to the provided transform.

Field Detail
LOGGER
final public static Logger LOGGER(Code)
The logger for the map module.



abstracts
protected String abstracts(Code)
Holds value of property abstracts.



areaOfInterest
ReferencedEnvelope areaOfInterest(Code)



contactInformation
protected String contactInformation(Code)
Holds value of property contactInformation.



crs
CoordinateReferenceSystem crs(Code)



keywords
protected String[] keywords(Code)
Holds value of property keywords.



layerList
List layerList(Code)



layerListener
protected MapLayerListener layerListener(Code)



listenerList
protected javax.swing.event.EventListenerList listenerList(Code)
Utility field used by event firing mechanism.



propertyChangeSupport
protected java.beans.PropertyChangeSupport propertyChangeSupport(Code)
Utility field used by bound properties.



title
protected String title(Code)
Holds value of property title.




Constructor Detail
DefaultMapContext
public DefaultMapContext()(Code)
Creates a default empty map context



DefaultMapContext
public DefaultMapContext(CoordinateReferenceSystem crs)(Code)
Creates a default empty map context



DefaultMapContext
public DefaultMapContext(MapLayer[] layers)(Code)
Creates a map context with the provided layers and title
Parameters:
  layers - DOCUMENT ME!



DefaultMapContext
public DefaultMapContext(MapLayer[] layers, CoordinateReferenceSystem crs)(Code)
Creates a map context with the provided layers and title
Parameters:
  layers - DOCUMENT ME!



DefaultMapContext
public DefaultMapContext(MapLayer[] layers, String title, String contextAbstract, String contactInformation, String[] keywords)(Code)
Creates a map context
Parameters:
  layers - DOCUMENT ME!
Parameters:
  title - DOCUMENT ME!
Parameters:
  contextAbstract - DOCUMENT ME!
Parameters:
  contactInformation - DOCUMENT ME!
Parameters:
  keywords - DOCUMENT ME!



DefaultMapContext
public DefaultMapContext(MapLayer[] layers, String title, String contextAbstract, String contactInformation, String[] keywords, CoordinateReferenceSystem crs)(Code)
Creates a map context
Parameters:
  layers - DOCUMENT ME!
Parameters:
  title - DOCUMENT ME!
Parameters:
  contextAbstract - DOCUMENT ME!
Parameters:
  contactInformation - DOCUMENT ME!
Parameters:
  keywords - DOCUMENT ME!




Method Detail
addLayer
public boolean addLayer(int index, MapLayer layer)(Code)
Add a new layer if not already present and trigger a LayerListEvent .
Parameters:
  index - DOCUMENT ME!
Parameters:
  layer - Then new layer that has been added. DOCUMENT ME!



addLayer
public boolean addLayer(MapLayer layer)(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  layer - Then new layer that has been added. DOCUMENT ME!



addLayer
public void addLayer(FeatureSource featureSource, Style style)(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  featureSource - Then new layer that has been added.
Parameters:
  style - DOCUMENT ME!



addLayer
public void addLayer(CollectionSource source, Style style)(Code)



addLayer
public void addLayer(GridCoverage gc, Style style)(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  gc - Then new layer that has been added.
Parameters:
  style - DOCUMENT ME!



addLayer
public void addLayer(AbstractGridCoverage2DReader reader, Style style)(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  reader - a reader with the new layer to be added.
Parameters:
  style - DOCUMENT ME!



addLayer
public void addLayer(FeatureCollection collection, Style style)(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  collection - Then new layer that has been added.
Parameters:
  style - DOCUMENT ME!



addLayer
public void addLayer(Collection collection, Style style)(Code)



addLayers
public 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. DOCUMENT ME!



addMapBoundsListener
public synchronized void addMapBoundsListener(org.geotools.map.event.MapBoundsListener listener)(Code)
Registers MapBoundsListener to receive events.
Parameters:
  listener - The listener to register.



addMapLayerListListener
public synchronized void addMapLayerListListener(org.geotools.map.event.MapLayerListListener listener)(Code)
Registers MapLayerListListener to receive events.
Parameters:
  listener - The listener to register.



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



clearLayerList
public void clearLayerList()(Code)
DOCUMENT ME!



getAbstract
public String getAbstract()(Code)
Getter for property abstracts. Value of property abstracts.



getAreaOfInterest
public ReferencedEnvelope getAreaOfInterest()(Code)
Gets the current area of interest. If no area of interest is the, the default is to fall back on the layer bounds Current area of interest



getContactInformation
public String getContactInformation()(Code)
Getter for property contactInformation. Value of property contactInformation.



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



getKeywords
public String[] getKeywords()(Code)
Getter for property keywords. Value of property keywords.



getLayer
public 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
public 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. TODO: when coordinatesystem information will be added reproject the bounds accordingto the current coordinate system
throws:
  IOException - DOCUMENT ME!



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



getLayers
public 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
public String getTitle()(Code)
Getter for property title. Value of property title.



indexOf
public int indexOf(MapLayer layer)(Code)

See Also:   org.geotools.map.MapContext.indexOf(org.geotools.map.MapLayer)



iterator
public 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
public void moveLayer(int sourcePosition, int destPosition)(Code)
DOCUMENT ME!
Parameters:
  sourcePosition - DOCUMENT ME!
Parameters:
  destPosition - DOCUMENT ME!
throws:
  IndexOutOfBoundsException - DOCUMENT ME!



removeLayer
public boolean removeLayer(MapLayer layer)(Code)
Remove a layer and trigger a LayerListEvent .
Parameters:
  layer - Then new layer that has been removed. DOCUMENT ME!



removeLayer
public MapLayer removeLayer(int index)(Code)
DOCUMENT ME!
Parameters:
  index - DOCUMENT ME! DOCUMENT ME!



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



removeMapBoundsListener
public synchronized void removeMapBoundsListener(org.geotools.map.event.MapBoundsListener listener)(Code)
Removes MapBoundsListener from the list of listeners.
Parameters:
  listener - The listener to remove.



removeMapLayerListListener
public synchronized void removeMapLayerListListener(org.geotools.map.event.MapLayerListListener listener)(Code)
Removes MapLayerListListener from the list of listeners.
Parameters:
  listener - The listener to remove.



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



setAbstract
public void setAbstract(String abstractValue)(Code)
Setter for property abstracts.
Parameters:
  abstractValue - New value of property abstracts.
throws:
  NullPointerException - DOCUMENT ME!



setAreaOfInterest
public 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
public void setAreaOfInterest(Envelope 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.



setAreaOfInterest
public void setAreaOfInterest(ReferencedEnvelope areaOfInterest)(Code)
Set a new area of interest and trigger an BoundingBoxEvent .
Parameters:
  areaOfInterest - The new area of interest.
throws:
  NullPointerException - DOCUMENT ME!



setContactInformation
public void setContactInformation(String contactInformation)(Code)
Setter for property contactInformation.
Parameters:
  contactInformation - New value of property contactInformation.
throws:
  NullPointerException - DOCUMENT ME!



setCoordinateReferenceSystem
public void setCoordinateReferenceSystem(CoordinateReferenceSystem crs) throws TransformException, FactoryException(Code)

throws:
  FactoryException -
throws:
  TransformException -



setKeywords
public void setKeywords(String[] keywords)(Code)
Setter for property keywords.
Parameters:
  keywords - New value of property keywords.
throws:
  NullPointerException - DOCUMENT ME!



setTitle
public void setTitle(String title)(Code)
Setter for property title.
Parameters:
  title - New value of property title.
throws:
  NullPointerException - DOCUMENT ME!



transform
public 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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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