public class ManagerContentAboutToChangeEvent extends ManagerEvent
ManagerContentAboutToChangeEvent
event is fired
by the manager before a graphic object is changed or deleted.ManagerContentMonitor
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
OBJECT_BBOX_CHANGE
The type of the event when the bounding rectangle of an object is about
to be changed.
|
static int |
OBJECT_REMOVE
The type of the event when an object is about to be removed from a manager.
|
source
Constructor and Description |
---|
ManagerContentAboutToChangeEvent(IlvManager manager,
IlvGraphic graphic,
int type)
Creates a instance of a
ManagerContentAboutToChangeEvent . |
Modifier and Type | Method and Description |
---|---|
IlvGraphic |
getGraphicObject()
Returns the graphic object about to be changed or about to be deleted.
|
int |
getType()
Returns the type of the event, either
OBJECT_REMOVE
or OBJECT_BBOX_CHANGE . |
boolean |
isAdjusting()
Returns
true if this
event is part of a series of modifications. |
void |
setAdjusting(boolean set)
Changes the adjustment flag of the event.
|
getManager
getSource, toString
public static final int OBJECT_REMOVE
public static final int OBJECT_BBOX_CHANGE
public ManagerContentAboutToChangeEvent(IlvManager manager, IlvGraphic graphic, int type)
ManagerContentAboutToChangeEvent
.manager
- The manager containing the specified graphic object.graphic
- The graphic object which is about to be changed or to be deleted.type
- The type of the event. It must be either OBJECT_REMOVE
or OBJECT_BBOX_CHANGE
.public IlvGraphic getGraphicObject()
public int getType()
OBJECT_REMOVE
or OBJECT_BBOX_CHANGE
.public final boolean isAdjusting()
true
if this
event is part of a series of modifications.
The method will return true
if the event is
fired by the manager while the manager is in adjustment mode.
Different to ManagerContentChangedEvent
, there is however
no event of type ADJUSTMENT_END
for
the ManagerContentAboutToChangeEvent
.
If a real change happened while adjusting was true
, there
will be an ManagerContentChangeEvent
of type
ADJUSTMENT_END
.public final void setAdjusting(boolean set)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.