y.view
Interface ModelViewManager.Filter

Enclosing class:
ModelViewManager

public static interface ModelViewManager.Filter

Specifies the contract of graph element filters for views handled by ModelViewManager instances. Filters are always applied to elements of the model graph of a ModelViewManager to determine whether or not corresponding representatives should be inserted into or removed from an associated view graph.

 
Your browser does not support SVG content.

Method Summary
 boolean acceptInsertion(Edge model)
          Returns true, iff a representative of the specified model edge should be inserted into an associated view graph; false otherwise.
 boolean acceptInsertion(Node model)
          Returns true, iff a representative of the specified model node should be inserted into an associated view graph; false otherwise.
 boolean acceptRemoval(Edge model)
          Returns true, iff a representative of the specified model edge should be removed from an associated view graph; false otherwise.
 boolean acceptRemoval(Node model)
          Returns true, iff a representative of the specified model node should be removed from an associated view graph; false otherwise.
 

Method Detail

acceptInsertion

boolean acceptInsertion(Node model)
Returns true, iff a representative of the specified model node should be inserted into an associated view graph; false otherwise.

Parameters:
model - a node in the model graph of a ModelViewManager.
Returns:
true, iff a representative of the specified model node should be inserted into an associated view graph; false otherwise.

acceptInsertion

boolean acceptInsertion(Edge model)
Returns true, iff a representative of the specified model edge should be inserted into an associated view graph; false otherwise.

Parameters:
model - an edge in the model graph of a ModelViewManager.
Returns:
true, iff a representative of the specified model edge should be inserted into an associated view graph; false otherwise.

acceptRemoval

boolean acceptRemoval(Node model)
Returns true, iff a representative of the specified model node should be removed from an associated view graph; false otherwise.

Parameters:
model - a node in the model graph of a ModelViewManager.
Returns:
true, iff a representative of the specified model node should be removed from an associated view graph; false otherwise.

acceptRemoval

boolean acceptRemoval(Edge model)
Returns true, iff a representative of the specified model edge should be removed from an associated view graph; false otherwise.

Parameters:
model - an edge in the model graph of a ModelViewManager.
Returns:
true, iff a representative of the specified model edge should be removed from an associated view graph; false otherwise.

© Copyright 2000-2008,
yWorks GmbH.
All rights reserved.