public abstract class GraphModelEvent extends IlEventObject
IlpGraphModel
.GraphModelListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
GraphModelEvent.Type
Event type
|
source
Modifier | Constructor and Description |
---|---|
protected |
GraphModelEvent(IlpGraphModel source,
GraphModelEvent.Type type,
Collection objects)
Creates an event.
|
protected |
GraphModelEvent(IlpGraphModel source,
GraphModelEvent.Type type,
IlpRepresentationObject object)
Creates an event.
|
protected |
GraphModelEvent(IlpGraphModel source,
GraphModelEvent.Type type,
IlpRepresentationObject link,
boolean origin,
IlpRepresentationObject oldEnd,
IlpRepresentationObject newEnd)
Creates an event.
|
protected |
GraphModelEvent(IlpGraphModel source,
GraphModelEvent.Type type,
IlpRepresentationObject object,
int[] indices,
IlpRepresentationObject[] children)
Creates an event.
|
Modifier and Type | Method and Description |
---|---|
IlpRepresentationObject[] |
getChildren()
Returns the child objects themselves.
|
int[] |
getIndices()
Returns the indices of the children (after addition, before removal).
|
IlpRepresentationObject |
getNewEnd()
Returns the link's new end object.
|
IlpRepresentationObject |
getObject()
Returns the object the event is about.
|
Collection |
getObjects()
Returns the objects the event is about.
|
IlpRepresentationObject |
getOldEnd()
Returns the link's previous end object.
|
boolean |
getOrigin()
Returns
true if the event is about the from end of the
link, false if it is about the to end of the link. |
getType
getSource, toString
protected GraphModelEvent(IlpGraphModel source, GraphModelEvent.Type type, IlpRepresentationObject object)
source
- The model.type
- The event type (add/remove).object
- The object (that has been added/removed).protected GraphModelEvent(IlpGraphModel source, GraphModelEvent.Type type, Collection objects)
source
- The model.type
- The event type (roots added/removed).objects
- The roots (that have been added/removed).protected GraphModelEvent(IlpGraphModel source, GraphModelEvent.Type type, IlpRepresentationObject object, int[] indices, IlpRepresentationObject[] children)
source
- The model.type
- The event type (children added/removed).object
- The parent object.indices
- The indices of the children (where the indices are taken
after addition but before removal), in ascending order.children
- The children, in the same order as described in indices.protected GraphModelEvent(IlpGraphModel source, GraphModelEvent.Type type, IlpRepresentationObject link, boolean origin, IlpRepresentationObject oldEnd, IlpRepresentationObject newEnd)
source
- The model.type
- The event type (link end changed).link
- The link.origin
- If this parameter is true
, the from
end is changed, otherwise the to end.oldEnd
- The previous link end object.newEnd
- The new link end object.public IlpRepresentationObject getObject()
public Collection getObjects()
Collection
of IlpRepresentationObject
spublic int[] getIndices()
public IlpRepresentationObject[] getChildren()
public boolean getOrigin()
true
if the event is about the from end of the
link, false
if it is about the to end of the link.public IlpRepresentationObject getOldEnd()
public IlpRepresentationObject getNewEnd()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.