public enum ChangeStatus extends Enum<ChangeStatus>
It provides more information about the type of a change.
This enum is for example used to indicate what kind of editing or creation changes are performed.
IGeometryEditCallback
,
IGeometryCreateCallback
Enum Constant and Description |
---|
Finished
Indicates that the change is finished.
|
InProgress
Indicates that a change is transitional.
|
InProgressKeyPoint
Indicates that the change represents an important key point.
|
Modifier and Type | Method and Description |
---|---|
static ChangeStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChangeStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChangeStatus InProgress
This means that more changes are coming. This is for example useful when a mouse button is being dragged. All operations resulting from mouse-dragged events are marked as InProgress, except the last one.
public static final ChangeStatus InProgressKeyPoint
This could for example be the case when a new point is added to a polyline, or the change when you stop dragging a point of a polyline. It for example indicates on which temporary change states undo and redo operations could be performed.
public static final ChangeStatus Finished
No more changes will follow. This change also represents an important key point, like ChangeStatus#InProgressKeyPoint
.
public static ChangeStatus[] values()
for (ChangeStatus c : ChangeStatus.values()) System.out.println(c);
public static ChangeStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null