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

All known Subclasses:   org.geotools.demo.mappane.WMSMapLayer,
DefaultMapLayer
public class DefaultMapLayer implements MapLayer(Code)
Default implementation of the MapLayer implementation
author:
   wolf


Field Summary
protected  FeatureSourcefeatureSource
     Holds value of property FeatureSource.
protected  javax.swing.event.EventListenerListlistenerList
     Utility field used by event firing mechanism.
protected  Queryquery
    
protected  FeatureListenersourceListener
    
protected  Stylestyle
    
protected  Stringtitle
     Holds value of property title.
protected  booleanvisible
     Whether this layer is visible or not.

Constructor Summary
public  DefaultMapLayer(FeatureSource featureSource, Style style, String title)
    
public  DefaultMapLayer(CollectionSource source, Style style, String title)
    
public  DefaultMapLayer(FeatureSource featureSource, Style style)
    
public  DefaultMapLayer(FeatureCollection collection, Style style, String title)
    
public  DefaultMapLayer(Collection collection, Style style, String title)
    
public  DefaultMapLayer(FeatureCollection collection, Style style)
    
public  DefaultMapLayer(Collection collection, Style style)
    
public  DefaultMapLayer(GridCoverage coverage, Style style)
     Add a new layer and trigger a LayerListEvent .
public  DefaultMapLayer(AbstractGridCoverage2DReader reader, Style style, String title)
     Constructor which adds a new layer and trigger a LayerListEvent .
public  DefaultMapLayer(AbstractGridCoverage2DReader reader, Style style)
     Constructor which adds a new layer and triggers a LayerListEvent .
public  DefaultMapLayer(GridCoverage coverage, Style style, String title)
     Add a new layer and trigger a LayerListEvent .

Method Summary
public synchronized  voidaddMapLayerListener(org.geotools.map.event.MapLayerListener listener)
     Registers MapLayerListener to receive events.
protected  voidfireMapLayerListenerLayerChanged(org.geotools.map.event.MapLayerEvent event)
     Notifies all registered listeners about the event.
protected  voidfireMapLayerListenerLayerHidden(org.geotools.map.event.MapLayerEvent event)
     Notifies all registered listeners about the event.
protected  voidfireMapLayerListenerLayerShown(org.geotools.map.event.MapLayerEvent event)
     Notifies all registered listeners about the event.
public  ReferencedEnvelopegetBounds()
    
public  FeatureSourcegetFeatureSource()
     Getter for property featureSource.
public  QuerygetQuery()
     Returns the definition query established for this layer. the definition query established for this layer.
public  CollectionSourcegetSource()
    
public  StylegetStyle()
     Getter for property style.
public  StringgetTitle()
     Getter for property title.
public  booleanisVisible()
     Getter for property visible.
public synchronized  voidremoveMapLayerListener(org.geotools.map.event.MapLayerListener listener)
     Removes MapLayerListener from the list of listeners.
public  voidsetQuery(Query query)
     Sets a definition query for this layer.

If present (other than Query.ALL, a renderer or consumer must use it to limit the number of returned features based on the filter it holds and the value of the maxFeatures attributes, and also can use it as a performance hto limit the number of requested attributes


Parameters:
  query - the full filter for this layer.
throws:
  NullPointerException - if no query is passed on.
public  voidsetStyle(Style style)
     Setter for property style.
public  voidsetTitle(String title)
     Setter for property title.
public  voidsetVisible(boolean visible)
     Setter for property visible.
public  StringtoString()
    

Field Detail
featureSource
protected FeatureSource featureSource(Code)
Holds value of property FeatureSource.



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



query
protected Query query(Code)
The query to limit the number of rendered features based on its filter



sourceListener
protected FeatureListener sourceListener(Code)
Listener to forward feature source events as layer events



style
protected Style style(Code)
The style to symbolize the features of this layer



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



visible
protected boolean visible(Code)
Whether this layer is visible or not.




Constructor Detail
DefaultMapLayer
public DefaultMapLayer(FeatureSource featureSource, Style style, String title)(Code)
Creates a new instance of DefaultMapLayer
Parameters:
  featureSource - the data source for this layer
Parameters:
  style - the style used to represent this layer
Parameters:
  title - the layer title
throws:
  NullPointerException - DOCUMENT ME!



DefaultMapLayer
public DefaultMapLayer(CollectionSource source, Style style, String title)(Code)



DefaultMapLayer
public DefaultMapLayer(FeatureSource featureSource, Style style)(Code)
Creates a new instance of DefaultMapLayer
Parameters:
  featureSource - the data source for this layer
Parameters:
  style - the style used to represent this layer



DefaultMapLayer
public DefaultMapLayer(FeatureCollection collection, Style style, String title)(Code)
Creates a new instance of DefaultMapLayer using a non-emtpy feature collection as a parameter
Parameters:
  collection - the source feature collection
Parameters:
  style - the style used to represent this layer
Parameters:
  title - DOCUMENT ME!



DefaultMapLayer
public DefaultMapLayer(Collection collection, Style style, String title)(Code)



DefaultMapLayer
public DefaultMapLayer(FeatureCollection collection, Style style)(Code)
Creates a new instance of DefaultMapLayer using a non-emtpy feature collection as a parameter
Parameters:
  collection - the source feature collection
Parameters:
  style - the style used to represent this layer



DefaultMapLayer
public DefaultMapLayer(Collection collection, Style style)(Code)



DefaultMapLayer
public DefaultMapLayer(GridCoverage coverage, Style style) throws TransformException, FactoryConfigurationError, SchemaException, IllegalAttributeException(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  coverage - The new layer that has been added.
Parameters:
  style -
throws:
  IllegalAttributeException -
throws:
  SchemaException -
throws:
  FactoryConfigurationError -
throws:
  TransformException -



DefaultMapLayer
public DefaultMapLayer(AbstractGridCoverage2DReader reader, Style style, String title) throws TransformException, FactoryConfigurationError, SchemaException, IllegalAttributeException(Code)
Constructor which adds a new layer and trigger a LayerListEvent .
Parameters:
  reader - a reader with the new layer that will be added.
Parameters:
  style -
Parameters:
  title -
throws:
  IllegalAttributeException -
throws:
  SchemaException -
throws:
  FactoryConfigurationError -
throws:
  TransformException -



DefaultMapLayer
public DefaultMapLayer(AbstractGridCoverage2DReader reader, Style style) throws TransformException, FactoryConfigurationError, SchemaException, IllegalAttributeException(Code)
Constructor which adds a new layer and triggers a LayerListEvent .
Parameters:
  reader - a reader with the new layer that will be added
Parameters:
  style -
throws:
  IllegalAttributeException -
throws:
  SchemaException -
throws:
  FactoryConfigurationError -
throws:
  TransformException -



DefaultMapLayer
public DefaultMapLayer(GridCoverage coverage, Style style, String title) throws TransformException, FactoryConfigurationError, SchemaException, IllegalAttributeException(Code)
Add a new layer and trigger a LayerListEvent .
Parameters:
  coverage - The new layer that has been added.
Parameters:
  style -
Parameters:
  title -
throws:
  IllegalAttributeException -
throws:
  SchemaException -
throws:
  FactoryConfigurationError -
throws:
  TransformException -




Method Detail
addMapLayerListener
public synchronized void addMapLayerListener(org.geotools.map.event.MapLayerListener listener)(Code)
Registers MapLayerListener to receive events.
Parameters:
  listener - The listener to register.



fireMapLayerListenerLayerChanged
protected void fireMapLayerListenerLayerChanged(org.geotools.map.event.MapLayerEvent event)(Code)
Notifies all registered listeners about the event.
Parameters:
  event - The event to be fired



fireMapLayerListenerLayerHidden
protected void fireMapLayerListenerLayerHidden(org.geotools.map.event.MapLayerEvent event)(Code)
Notifies all registered listeners about the event.
Parameters:
  event - The event to be fired



fireMapLayerListenerLayerShown
protected void fireMapLayerListenerLayerShown(org.geotools.map.event.MapLayerEvent event)(Code)
Notifies all registered listeners about the event.
Parameters:
  event - The event to be fired



getBounds
public ReferencedEnvelope getBounds()(Code)



getFeatureSource
public FeatureSource getFeatureSource()(Code)
Getter for property featureSource. Value of property featureSource.



getQuery
public Query getQuery()(Code)
Returns the definition query established for this layer. the definition query established for this layer. If not set, justreturns Query.ALL, if set, returns a copy of the actualquery object to avoid external modification
See Also:   org.geotools.map.MapLayer.getQuery



getSource
public CollectionSource getSource()(Code)



getStyle
public Style getStyle()(Code)
Getter for property style. Value of property style.



getTitle
public String getTitle()(Code)
Getter for property title. Value of property title.



isVisible
public boolean isVisible()(Code)
Getter for property visible. Value of property visible.



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



setQuery
public void setQuery(Query query)(Code)
Sets a definition query for this layer.

If present (other than Query.ALL, a renderer or consumer must use it to limit the number of returned features based on the filter it holds and the value of the maxFeatures attributes, and also can use it as a performance hto limit the number of requested attributes


Parameters:
  query - the full filter for this layer.
throws:
  NullPointerException - if no query is passed on. If you want to reset a definitionquery, pass it Query.ALL instead of null
See Also:   org.geotools.map.MapLayer.setQuery(org.geotools.data.Query)



setStyle
public void setStyle(Style style)(Code)
Setter for property style.
Parameters:
  style - New value of property style.
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!



setVisible
public void setVisible(boolean visible)(Code)
Setter for property visible.
Parameters:
  visible - New value of property visible.



toString
public String toString()(Code)



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.