ilog.views.event
Class ManagerContentAboutToChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.views.event.ManagerEvent
          extended by ilog.views.event.ManagerContentAboutToChangeEvent
All Implemented Interfaces:
Serializable

public class ManagerContentAboutToChangeEvent
extends ManagerEvent

A ManagerContentAboutToChangeEvent event is fired by the manager before a graphic object is changed or deleted.

Since:
JViews 8.1
See Also:
ManagerContentMonitor, Serialized Form

Field Summary
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.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ManagerContentAboutToChangeEvent(IlvManager manager, IlvGraphic graphic, int type)
          Creates a instance of a ManagerContentAboutToChangeEvent.
 
Method Summary
 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.
 
Methods inherited from class ilog.views.event.ManagerEvent
getManager
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT_REMOVE

public static final int OBJECT_REMOVE
The type of the event when an object is about to be removed from a manager.

See Also:
Constant Field Values

OBJECT_BBOX_CHANGE

public static final int OBJECT_BBOX_CHANGE
The type of the event when the bounding rectangle of an object is about to be changed.

See Also:
Constant Field Values
Constructor Detail

ManagerContentAboutToChangeEvent

public ManagerContentAboutToChangeEvent(IlvManager manager,
                                        IlvGraphic graphic,
                                        int type)
Creates a instance of a ManagerContentAboutToChangeEvent.

Parameters:
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.
Method Detail

getGraphicObject

public IlvGraphic getGraphicObject()
Returns the graphic object about to be changed or about to be deleted.

Returns:
The graphic object about to be changed or about to be deleted.

getType

public int getType()
Returns the type of the event, either OBJECT_REMOVE or OBJECT_BBOX_CHANGE.

Returns:
The type of the event.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.