public class EditionEvent extends JMapEvent
Modifier and Type | Field and Description |
---|---|
static int |
ELEMENTS_ADDED |
static int |
ELEMENTS_ADDED_BATCH |
static int |
ELEMENTS_MODIFIED |
static int |
ELEMENTS_MOVED |
static int |
ELEMENTS_REMOVED |
static int |
ELEMENTS_REMOVED_BATCH |
Constructor and Description |
---|
EditionEvent(int type,
VectorLayer layer,
K2DElement[] elements) |
EditionEvent(int type,
VectorLayer layer,
K2DElement[] elements,
FormEditionResult editionResult) |
EditionEvent(K2DElement[] elements,
VectorLayer layer,
int type)
Deprecated.
use
EditionEvent(int, VectorLayer, K2DElement[])
instead |
Modifier and Type | Method and Description |
---|---|
void |
accept(EditionEventDispatcher visitor) |
FormEditionResult |
getEditionResult() |
K2DElement[] |
getElements() |
long |
getEventGroupId() |
VectorLayer |
getLayer() |
Point |
getTranslation()
Get the translation of this moved event
|
int |
getType() |
void |
setEventGroupId(long eventGroupId) |
void |
setTranslation(Point translation)
Set the translation for this moved event
|
isCancelled, setCancelled, toString
public static final int ELEMENTS_ADDED
public static final int ELEMENTS_MODIFIED
public static final int ELEMENTS_MOVED
public static final int ELEMENTS_REMOVED
public static final int ELEMENTS_ADDED_BATCH
public static final int ELEMENTS_REMOVED_BATCH
public EditionEvent(int type, VectorLayer layer, K2DElement[] elements)
type
- the type of this eventlayer
- the layer of this eventelements
- the elements of this eventpublic EditionEvent(int type, VectorLayer layer, K2DElement[] elements, FormEditionResult editionResult)
type
- the type of this eventlayer
- the layer of this eventelements
- the elements of this event@Deprecated public EditionEvent(K2DElement[] elements, VectorLayer layer, int type)
EditionEvent(int, VectorLayer, K2DElement[])
insteadelements
- the elements of this eventlayer
- the layer of this eventtype
- the type of this eventpublic long getEventGroupId()
public void setEventGroupId(long eventGroupId)
eventGroupId
- the eventGroupId to setpublic K2DElement[] getElements()
public VectorLayer getLayer()
public int getType()
public void setTranslation(Point translation)
translation
- public Point getTranslation()
public void accept(EditionEventDispatcher visitor)
public FormEditionResult getEditionResult()