|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.model.AbstractLayerable
com.vividsolutions.jump.workbench.model.Layer
public class Layer
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 | |
|---|---|
static java.lang.String |
FIRING_APPEARANCE_CHANGED_ON_ATTRIBUTE_CHANGE
|
| Constructor Summary | |
|---|---|
Layer()
Called by Java2XML |
|
Layer(java.lang.String name,
java.awt.Color fillColor,
FeatureCollection featureCollection,
LayerManager layerManager)
|
|
| Method Summary | |
|---|---|
void |
addStyle(Style style)
|
static UndoableCommand |
addUndo(java.lang.String layerName,
LayerManagerProxy proxy,
UndoableCommand wrappeeCommand)
Enables a layer to be changed undoably. |
java.util.Collection |
cloneStyles()
|
static java.awt.Color |
defaultLineColor(java.awt.Color fillColor)
|
void |
dispose()
Releases references to the data, to facilitate garbage collection. |
BasicStyle |
getBasicStyle()
|
Blackboard |
getBlackboard()
|
DataSourceQuery |
getDataSourceQuery()
|
java.lang.String |
getDescription()
|
FeatureCollectionWrapper |
getFeatureCollectionWrapper()
Returns a wrapper around the FeatureCollection which was added using #wrapFeatureCollection. |
LabelStyle |
getLabelStyle()
|
Style |
getStyle(java.lang.Class c)
Styles do not notify the Layer when their parameters change. |
java.util.List |
getStyles()
|
VertexStyle |
getVertexStyle()
|
boolean |
hasReadableDataSource()
|
boolean |
isDrawingLast()
|
boolean |
isEditable()
|
boolean |
isFeatureCollectionModified()
|
boolean |
isReadonly()
|
boolean |
isSelectable()
|
boolean |
isSynchronizingLineColor()
|
void |
removeStyle(Style p)
|
Layer |
setDataSourceQuery(DataSourceQuery dataSourceQuery)
|
void |
setDescription(java.lang.String description)
|
void |
setDrawingLast(boolean drawingLast)
Used for lightweight layers like the Vector layer. |
void |
setEditable(boolean editable)
Editability is not enforced; all parties are responsible for heeding this flag. |
void |
setFeatureCollection(FeatureCollection featureCollection)
|
Layer |
setFeatureCollectionModified(boolean featureCollectionModified)
|
protected void |
setFeatureCollectionWrapper(FeatureCollectionWrapper featureCollectionWrapper)
|
void |
setLayerManager(LayerManager layerManager)
Called by Java2XML |
void |
setReadonly(boolean value)
Set whether this layer can be made editable. |
void |
setSelectable(boolean value)
Set whether or not features in this layer can be selected. |
void |
setStyles(java.util.Collection newStyles)
|
void |
setSynchronizingLineColor(boolean synchronizingLineColor)
|
static void |
tryToInvalidateEnvelope(Layer layer)
Does nothing if the underlying feature collection is not a FeatureDataset. |
| Methods inherited from class com.vividsolutions.jump.workbench.model.AbstractLayerable |
|---|
fireAppearanceChanged, fireLayerChanged, getLayerManager, getMaxScale, getMinScale, getName, getTask, isScaleDependentRenderingEnabled, isVisible, setMaxScale, setMinScale, setName, setScaleDependentRenderingEnabled, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.vividsolutions.jump.workbench.model.LayerManagerProxy |
|---|
getLayerManager |
| Field Detail |
|---|
public static final java.lang.String FIRING_APPEARANCE_CHANGED_ON_ATTRIBUTE_CHANGE
| Constructor Detail |
|---|
public Layer()
public Layer(java.lang.String name,
java.awt.Color fillColor,
FeatureCollection featureCollection,
LayerManager layerManager)
| Method Detail |
|---|
public static java.awt.Color defaultLineColor(java.awt.Color fillColor)
public void setDescription(java.lang.String description)
public boolean isReadonly()
public void setReadonly(boolean value)
public boolean isSelectable()
public void setSelectable(boolean value)
value - true if features in this layer can be selectedpublic void setDrawingLast(boolean drawingLast)
drawingLast - true if the layer should be among those drawn lastpublic void setFeatureCollection(FeatureCollection featureCollection)
public void setEditable(boolean editable)
public boolean isEditable()
public void setSynchronizingLineColor(boolean synchronizingLineColor)
public BasicStyle getBasicStyle()
public VertexStyle getVertexStyle()
public LabelStyle getLabelStyle()
public java.lang.String getDescription()
public FeatureCollectionWrapper getFeatureCollectionWrapper()
protected void setFeatureCollectionWrapper(FeatureCollectionWrapper featureCollectionWrapper)
public Style getStyle(java.lang.Class c)
c - Can even be the desired Style's superclass or interface
public java.util.List getStyles()
public boolean hasReadableDataSource()
public boolean isDrawingLast()
public boolean isSynchronizingLineColor()
public void addStyle(Style style)
public void dispose()
public void removeStyle(Style p)
public java.util.Collection cloneStyles()
public void setStyles(java.util.Collection newStyles)
public void setLayerManager(LayerManager layerManager)
Layerable
setLayerManager in interface LayerablesetLayerManager in class AbstractLayerablepublic Blackboard getBlackboard()
getBlackboard in interface Layerable
public static UndoableCommand addUndo(java.lang.String layerName,
LayerManagerProxy proxy,
UndoableCommand wrappeeCommand)
public static void tryToInvalidateEnvelope(Layer layer)
public DataSourceQuery getDataSourceQuery()
public Layer setDataSourceQuery(DataSourceQuery dataSourceQuery)
public boolean isFeatureCollectionModified()
public Layer setFeatureCollectionModified(boolean featureCollectionModified)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||