|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
net.refractions.udig.project.LayerEvent
public class LayerEvent
An event indicating a change in a layer.
Nested Class Summary | |
---|---|
static class |
LayerEvent.EventType
|
Field Summary | |
---|---|
static int |
ALL
Indicates something somewhere is different - make no assumptions |
static int |
FILTER
Indicate a change has occured the the filter (defines the selection) |
static int |
RESOURCE
Resource used by the layer has changed |
static int |
STYLE
The contents of the blackboard have changed. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
LayerEvent(ILayer layer)
Creates a new event for the given source, indicating that all labels provided by the source are no longer valid and should be updated. |
|
LayerEvent(ILayer layer,
LayerEvent.EventType type)
Creates a specific kind of layer event, FILTER, RESOURCE, ALL or STYLE |
|
LayerEvent(ILayer layer,
LayerEvent.EventType type,
java.lang.Object oldValue,
java.lang.Object newValue)
Creates a specific kind of layer event, FILTER, RESOURCE, ALL or STYLE |
Method Summary | |
---|---|
java.lang.Object |
getNewValue()
|
java.lang.Object |
getOldValue()
|
ILayer |
getSource()
The layer being modified. |
LayerEvent.EventType |
getType()
Type of event |
void |
setNewValue(java.lang.Object newValue)
|
void |
setOldValue(java.lang.Object oldValue)
|
void |
setType(LayerEvent.EventType type)
Type of event |
Methods inherited from class java.util.EventObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FILTER
public static final int RESOURCE
public static final int ALL
public static final int STYLE
Constructor Detail |
---|
public LayerEvent(ILayer layer)
source
- the label providerpublic LayerEvent(ILayer layer, LayerEvent.EventType type)
public LayerEvent(ILayer layer, LayerEvent.EventType type, java.lang.Object oldValue, java.lang.Object newValue)
Method Detail |
---|
public ILayer getSource()
getSource
in class java.util.EventObject
ILayer
public java.lang.Object getNewValue()
public void setNewValue(java.lang.Object newValue)
newValue
- The newValue to set.public java.lang.Object getOldValue()
public void setOldValue(java.lang.Object oldValue)
oldValue
- The oldValue to set.public LayerEvent.EventType getType()
public void setType(LayerEvent.EventType type)
type
- LayerEvent.EventType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |