Java Doc for Layer.java in  » GIS » openjump » com » vividsolutions » jump » workbench » model » 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 » openjump » com.vividsolutions.jump.workbench.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.vividsolutions.jump.workbench.model.AbstractLayerable
      com.vividsolutions.jump.workbench.model.Layer

Layer
public class Layer extends AbstractLayerable implements LayerManagerProxy(Code)
Adds colour, line-width, and other stylistic information to a Feature Collection.

When adding or removing multiple features to this Layer's FeatureCollection, prefer #addAll and #removeAll to #add and #remove -- fewer events will be fired.



Field Summary
final public static  StringFIRING_APPEARANCE_CHANGED_ON_ATTRIBUTE_CHANGE
    

Constructor Summary
public  Layer()
    
public  Layer(String name, Color fillColor, FeatureCollection featureCollection, LayerManager layerManager)
    

Method Summary
public  voidaddStyle(Style style)
    
public static  UndoableCommandaddUndo(String layerName, LayerManagerProxy proxy, UndoableCommand wrappeeCommand)
     Enables a layer to be changed undoably.
public  CollectioncloneStyles()
    
public static  ColordefaultLineColor(Color fillColor)
    
public  voiddispose()
     Releases references to the data, to facilitate garbage collection. Important for MDI apps like the JUMP Workbench.
public  BasicStylegetBasicStyle()
    
public  BlackboardgetBlackboard()
    
public  DataSourceQuerygetDataSourceQuery()
    
public  StringgetDescription()
    
public  FeatureCollectionWrappergetFeatureCollectionWrapper()
     Returns a wrapper around the FeatureCollection which was added using #wrapFeatureCollection.
public  LabelStylegetLabelStyle()
    
public  StylegetStyle(Class c)
     Styles do not notify the Layer when their parameters change.
public  ListgetStyles()
    
public  VertexStylegetVertexStyle()
    
public  booleanhasReadableDataSource()
    
public  booleanisDrawingLast()
    
public  booleanisEditable()
    
public  booleanisFeatureCollectionModified()
    
public  booleanisReadonly()
    
public  booleanisSelectable()
    
public  booleanisSynchronizingLineColor()
    
public  voidremoveStyle(Style p)
    
public  LayersetDataSourceQuery(DataSourceQuery dataSourceQuery)
    
public  voidsetDescription(String description)
    
public  voidsetDrawingLast(boolean drawingLast)
     Used for lightweight layers like the Vector layer.
public  voidsetEditable(boolean editable)
     Editability is not enforced; all parties are responsible for heeding this flag.
public  voidsetFeatureCollection(FeatureCollection featureCollection)
    
public  LayersetFeatureCollectionModified(boolean featureCollectionModified)
    
protected  voidsetFeatureCollectionWrapper(FeatureCollectionWrapper featureCollectionWrapper)
    
public  voidsetLayerManager(LayerManager layerManager)
    
public  voidsetReadonly(boolean value)
    
public  voidsetSelectable(boolean value)
     Set whether or not features in this layer can be selected.
public  voidsetStyles(Collection newStyles)
    
public  voidsetSynchronizingLineColor(boolean synchronizingLineColor)
    
public static  voidtryToInvalidateEnvelope(Layer layer)
     Does nothing if the underlying feature collection is not a FeatureDataset.

Field Detail
FIRING_APPEARANCE_CHANGED_ON_ATTRIBUTE_CHANGE
final public static String FIRING_APPEARANCE_CHANGED_ON_ATTRIBUTE_CHANGE(Code)




Constructor Detail
Layer
public Layer()(Code)
Called by Java2XML



Layer
public Layer(String name, Color fillColor, FeatureCollection featureCollection, LayerManager layerManager)(Code)




Method Detail
addStyle
public void addStyle(Style style)(Code)



addUndo
public static UndoableCommand addUndo(String layerName, LayerManagerProxy proxy, UndoableCommand wrappeeCommand)(Code)
Enables a layer to be changed undoably. Since the layer's features are saved, only use this method for layers with few features.



cloneStyles
public Collection cloneStyles()(Code)



defaultLineColor
public static Color defaultLineColor(Color fillColor)(Code)
a darker version of the given fill colour, for use as the linecolour



dispose
public void dispose()(Code)
Releases references to the data, to facilitate garbage collection. Important for MDI apps like the JUMP Workbench. Called when the last JInternalFrame viewing the LayerManager is closed (i.e. internal frame's responsibility). To conserve memory, if layers are frequently added and removed from the LayerManager, parties may want to call #dispose themselves rather than waiting for the internal frame to be closed.



getBasicStyle
public BasicStyle getBasicStyle()(Code)



getBlackboard
public Blackboard getBlackboard()(Code)



getDataSourceQuery
public DataSourceQuery getDataSourceQuery()(Code)



getDescription
public String getDescription()(Code)



getFeatureCollectionWrapper
public FeatureCollectionWrapper getFeatureCollectionWrapper()(Code)
Returns a wrapper around the FeatureCollection which was added using #wrapFeatureCollection. The original FeatureCollection can be retrieved using FeatureCollectionWrapper#getWrappee. However, parties are encouraged to use the FeatureCollectionWrapper instead, so that feature additions and removals cause FeatureEvents to be fired (by the Layer).



getLabelStyle
public LabelStyle getLabelStyle()(Code)



getStyle
public Style getStyle(Class c)(Code)
Styles do not notify the Layer when their parameters change. Therefore, after you modify a Style's parameters (for example, the fill colour of BasicStyle), be sure to call #fireAppearanceChanged
Parameters:
  c - Can even be the desired Style's superclass or interface The style value



getStyles
public List getStyles()(Code)



getVertexStyle
public VertexStyle getVertexStyle()(Code)



hasReadableDataSource
public boolean hasReadableDataSource()(Code)



isDrawingLast
public boolean isDrawingLast()(Code)



isEditable
public boolean isEditable()(Code)



isFeatureCollectionModified
public boolean isFeatureCollectionModified()(Code)



isReadonly
public boolean isReadonly()(Code)
true if this layer should always be 'readonly' I.e.: The layershould never have the editable field set to true.



isSelectable
public boolean isSelectable()(Code)
true if features in this layer can be selected.



isSynchronizingLineColor
public boolean isSynchronizingLineColor()(Code)



removeStyle
public void removeStyle(Style p)(Code)



setDataSourceQuery
public Layer setDataSourceQuery(DataSourceQuery dataSourceQuery)(Code)



setDescription
public void setDescription(String description)(Code)



setDrawingLast
public void setDrawingLast(boolean drawingLast)(Code)
Used for lightweight layers like the Vector layer.
Parameters:
  drawingLast - true if the layer should be among those drawn last



setEditable
public void setEditable(boolean editable)(Code)
Editability is not enforced; all parties are responsible for heeding this flag.



setFeatureCollection
public void setFeatureCollection(FeatureCollection featureCollection)(Code)



setFeatureCollectionModified
public Layer setFeatureCollectionModified(boolean featureCollectionModified)(Code)



setFeatureCollectionWrapper
protected void setFeatureCollectionWrapper(FeatureCollectionWrapper featureCollectionWrapper)(Code)



setLayerManager
public void setLayerManager(LayerManager layerManager)(Code)



setReadonly
public void setReadonly(boolean value)(Code)



setSelectable
public void setSelectable(boolean value)(Code)
Set whether or not features in this layer can be selected.
Parameters:
  value - true if features in this layer can be selected



setStyles
public void setStyles(Collection newStyles)(Code)



setSynchronizingLineColor
public void setSynchronizingLineColor(boolean synchronizingLineColor)(Code)



tryToInvalidateEnvelope
public static void tryToInvalidateEnvelope(Layer layer)(Code)
Does nothing if the underlying feature collection is not a FeatureDataset.



Methods inherited from com.vividsolutions.jump.workbench.model.AbstractLayerable
public void fireAppearanceChanged()(Code)(Java Doc)
public void fireLayerChanged(LayerEventType type)(Code)(Java Doc)
public LayerManager getLayerManager()(Code)(Java Doc)
public Double getMaxScale()(Code)(Java Doc)
public Double getMinScale()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public boolean isScaleDependentRenderingEnabled()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
public void setLayerManager(LayerManager layerManager)(Code)(Java Doc)
public Layerable setMaxScale(Double maxScale)(Code)(Java Doc)
public Layerable setMinScale(Double minScale)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public Layerable setScaleDependentRenderingEnabled(boolean scaleDependentRenderingEnabled)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.