Package org.geotools.map
Class MapLayerEvent
- Object
- 
- EventObject
- 
- MapLayerEvent
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class MapLayerEvent extends EventObject Event fired when some Layer property changes.- Author:
- Andrea Aime, Ian Turton, Martin Desruisseaux
- See Also:
- Layer,- MapLayerListener, Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intDATA_CHANGEDFlag set when the data attached to this layer changed.static intFILTER_CHANGEDFlag set when the definition query attached to this layer changed.static intMETADATA_CHANGEDFlag set when the some metadata (like the title) changesstatic intPRE_DISPOSEFlag set when the layer is about to be disposed.static intSELECTION_CHANGEDFlag set when the layer selection status is changed.static intSTYLE_CHANGEDFlag set when the style attached to this layer changed.static intVISIBILITY_CHANGEDFlag set when the layer visibility changed.- 
Fields inherited from class EventObjectsource
 
- 
 - 
Constructor SummaryConstructors Constructor Description MapLayerEvent(Object source, int reason)Creates a new instance ofLayerEventwith the specified reason.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetReason()Returns the reason why this event is fired.- 
Methods inherited from class EventObjectgetSource, toString
 
- 
 
- 
- 
- 
Field Detail- 
VISIBILITY_CHANGEDpublic static final int VISIBILITY_CHANGED Flag set when the layer visibility changed.- See Also:
- getReason(), Constant Field Values
 
 - 
METADATA_CHANGEDpublic static final int METADATA_CHANGED Flag set when the some metadata (like the title) changes- See Also:
- getReason(), Constant Field Values
 
 - 
DATA_CHANGEDpublic static final int DATA_CHANGED Flag set when the data attached to this layer changed.- See Also:
- getReason(), Constant Field Values
 
 - 
STYLE_CHANGEDpublic static final int STYLE_CHANGED Flag set when the style attached to this layer changed.- See Also:
- getReason(), Constant Field Values
 
 - 
FILTER_CHANGEDpublic static final int FILTER_CHANGED Flag set when the definition query attached to this layer changed.- See Also:
- getReason(), Constant Field Values
 
 - 
SELECTION_CHANGEDpublic static final int SELECTION_CHANGED Flag set when the layer selection status is changed.- See Also:
- getReason(), Constant Field Values
 
 - 
PRE_DISPOSEpublic static final int PRE_DISPOSE Flag set when the layer is about to be disposed.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
MapLayerEventpublic MapLayerEvent(Object source, int reason) throws IllegalArgumentException Creates a new instance ofLayerEventwith the specified reason.- Parameters:
- source- The source of the event change.
- reason- Why the event was fired.
- Throws:
- IllegalArgumentException- If the- reasonis not a valid enum.
 
 
- 
 - 
Method Detail- 
getReasonpublic int getReason() Returns the reason why this event is fired. It is one ofVISIBILITY_CHANGEDor#TITLE_CHANGEDconstants.
 
- 
 
-