uk.ac.ebi.intact.application.hierarchView.highlightment.behaviour
Class VisibleHighlightmentBehaviour

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.hierarchView.highlightment.behaviour.HighlightmentBehaviour
        |
        +--uk.ac.ebi.intact.application.hierarchView.highlightment.behaviour.VisibleHighlightmentBehaviour

public class VisibleHighlightmentBehaviour
extends HighlightmentBehaviour

Behaviour allowing to display only highlighted protein and hide all others.

Version:
$Id: VisibleHighlightmentBehaviour.java,v 1.7 2003/03/18 10:38:38 skerrien Exp $
Author:
Samuel Kerrien (skerrien@ebi.ac.uk)

Constructor Summary
VisibleHighlightmentBehaviour()
           
 
Method Summary
 void applyBehaviour(Node aProtein)
          Apply the implemented behaviour to the specific Node of the graph.
 java.util.Collection modifyCollection(java.util.Collection proteins, InteractionNetwork aGraph)
          Select all the graph's protein which are not in the given collection.
The aim of that behaviour is to display only se selected protein, so we have to set the VISIBLE flag of all other proteins to false.
 
Methods inherited from class uk.ac.ebi.intact.application.hierarchView.highlightment.behaviour.HighlightmentBehaviour
apply, getHighlightmentBehaviour
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibleHighlightmentBehaviour

public VisibleHighlightmentBehaviour()
Method Detail

modifyCollection

public java.util.Collection modifyCollection(java.util.Collection proteins,
                                             InteractionNetwork aGraph)
Select all the graph's protein which are not in the given collection.
The aim of that behaviour is to display only se selected protein, so we have to set the VISIBLE flag of all other proteins to false.

Overrides:
modifyCollection in class HighlightmentBehaviour
Parameters:
proteins - the list of protein to highlight
aGraph - the current interaction network
Returns:
the new collection of protein to highlight

applyBehaviour

public void applyBehaviour(Node aProtein)
Apply the implemented behaviour to the specific Node of the graph. Here, we change the visibility to false for the given node.

Specified by:
applyBehaviour in class HighlightmentBehaviour
Parameters:
aProtein - the node on which we want to apply the behaviour


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk