Class GraphStructureListener.Stub
java.lang.Object
org.eclipse.zest.layouts.interfaces.GraphStructureListener.Stub
- All Implemented Interfaces:
GraphStructureListener
- Enclosing interface:
GraphStructureListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.zest.layouts.interfaces.GraphStructureListener
GraphStructureListener.Stub
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
connectionAdded
(LayoutContext context, ConnectionLayout connection) This method is called whenever a connection is added to a context.boolean
connectionRemoved
(LayoutContext context, ConnectionLayout connection) This method is called whenever a connection is removed from a context.boolean
nodeAdded
(LayoutContext context, NodeLayout node) This method is called whenever a node is added to a context.boolean
nodeRemoved
(LayoutContext context, NodeLayout node) This method is called whenever a node is removed from a context.
-
Constructor Details
-
Stub
public Stub()
-
-
Method Details
-
nodeAdded
Description copied from interface:GraphStructureListener
This method is called whenever a node is added to a context. No separate events will be fired for eventual connections adjacent to the added node. If true is returned, it means that the receiving listener has intercepted this event. Intercepted events will not be passed to the rest of the listeners. If the event is not intercepted by any listener,applyLayout(boolean)
will be called on the context's main algorithm.- Specified by:
nodeAdded
in interfaceGraphStructureListener
- Parameters:
context
- the layout context that fired the eventnode
- the added node- Returns:
- true if no further operations after this event are required
-
nodeRemoved
Description copied from interface:GraphStructureListener
This method is called whenever a node is removed from a context. No separate events will be fired for eventual connections adjacent to the removed node. If true is returned, it means that the receiving listener has intercepted this event. Intercepted events will not be passed to the rest of the listeners. If the event is not intercepted by any listener,applyLayout(boolean)
will be called on the context's main algorithm.- Specified by:
nodeRemoved
in interfaceGraphStructureListener
- Parameters:
context
- the context that fired the eventnode
- the removed node- Returns:
- true if no further operations after this event are required
-
connectionAdded
Description copied from interface:GraphStructureListener
This method is called whenever a connection is added to a context. It can be assumed that both source and target nodes of the added connection already exist in the context. This method will be called only if both nodes connected by added connection lay directly in the node container owned by the notifying layout context. If true is returned, it means that the receiving listener has intercepted this event. Intercepted events will not be passed to the rest of the listeners. If the event is not intercepted by any listener,applyLayout(boolean)
will be called on the context's main algorithm.- Specified by:
connectionAdded
in interfaceGraphStructureListener
- Parameters:
context
- the context that fired the eventconnection
- the added connection- Returns:
- true if no further operations after this event are required
-
connectionRemoved
Description copied from interface:GraphStructureListener
This method is called whenever a connection is removed from a context. It can be assumed that both source and target nodes of the removed connection still exist in the context and will not be removed along with it. This method will be called only if both nodes connected by removed connection lay directly in the node container owned by the notifying layout context. If true is returned, it means that the receiving listener has intercepted this event. Intercepted events will not be passed to the rest of the listeners. If the event is not intercepted by any listener,applyLayout(boolean)
will be called on the context's main algorithm.- Specified by:
connectionRemoved
in interfaceGraphStructureListener
- Parameters:
context
- the context that fired the eventconnection
- the added connection- Returns:
- true if no further operations after this event are required
-