| 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.
|
FIRING_APPEARANCE_CHANGED_ON_ATTRIBUTE_CHANGE | final public static String FIRING_APPEARANCE_CHANGED_ON_ATTRIBUTE_CHANGE(Code) | | |
Layer | public Layer()(Code) | | Called by Java2XML
|
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.
|
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).
|
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 |
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) | | |
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.
|
setFeatureCollectionModified | public Layer setFeatureCollectionModified(boolean featureCollectionModified)(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 |
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.
|
|
|