public class CanvasLayerEvent extends java.lang.Object implements CollapsibleEvent
Modifier and Type | Class and Description |
---|---|
static class |
CanvasLayerEvent.LayersEventType |
Constructor and Description |
---|
CanvasLayerEvent(Layer source,
CanvasLayerEvent.LayersEventType type) |
CanvasLayerEvent(Layer source,
CanvasLayerEvent.LayersEventType type,
java.lang.String property) |
Modifier and Type | Method and Description |
---|---|
boolean |
collapse(CollapsibleEvent event)
Collapse current object/event with specified one.
|
boolean |
equals(java.lang.Object obj)
Returns
true if the current event is equivalent to the specified one. |
java.lang.String |
getProperty()
Return the property name which has changed.
|
Layer |
getSource() |
CanvasLayerEvent.LayersEventType |
getType() |
int |
hashCode()
Returns hash code for current event.
|
public CanvasLayerEvent(Layer source, CanvasLayerEvent.LayersEventType type, java.lang.String property)
public CanvasLayerEvent(Layer source, CanvasLayerEvent.LayersEventType type)
public CanvasLayerEvent.LayersEventType getType()
public java.lang.String getProperty()
null
or one of the following :
Layer.PROPERTY_NAME
Layer.PROPERTY_PRIORITY
Layer.PROPERTY_ALPHA
Layer.PROPERTY_VISIBLE
public boolean collapse(CollapsibleEvent event)
CollapsibleEvent
collapse
in interface CollapsibleEvent
false
if collapse operation failed (object are not 'equals')public int hashCode()
CollapsibleEvent
Object.hashCode()
contract.hashCode
in interface CollapsibleEvent
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
CollapsibleEvent
true
if the current event is equivalent to the specified one.Object.equals(Object)
method as we use an HashMap to store
these event
in the UpdateEventHandler
class.equals
in interface CollapsibleEvent
equals
in class java.lang.Object