Search this API

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.
 boolean acceptRetention(Edge model)
          Returns true, iff a representative of the specified model edge should be retained in an associated view graph; false otherwise.
 boolean acceptRetention(Node model)
          Returns true, iff a representative of the specified model node should be retained in 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.

acceptRetention

boolean acceptRetention(Node model)
Returns true, iff a representative of the specified model node should be retained in an associated view graph; false otherwise. This method is queried for model nodes that have an existing view representative when synchronizing a model graph to one or more of its view graphs or when synchronizing a view graph to its model graph.

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

acceptRetention

boolean acceptRetention(Edge model)
Returns true, iff a representative of the specified model edge should be retained in an associated view graph; false otherwise. This method is queried for model edges that have an existing view representative when synchronizing a model graph to one or more of its view graphs or when synchronizing a view graph to its model graph.

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

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