Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.data
Class FlagEvent

java.lang.Object
  extended by cytoscape.data.FlagEvent

Deprecated. As of 2.3, replaced with SelectEvent

public class FlagEvent
extends Object

Events that are fired when the flagged state of a Node or Edge, or a group of Nodes or Edges, is changed.


Field Summary
static int EDGE_SET
          Deprecated. Static constant indicating a change to a group of Edges.
static int NODE_SET
          Deprecated. Static constant indicating a change to a group of Nodes.
static int SINGLE_EDGE
          Deprecated. Static constant indicating a change to a single Edge.
static int SINGLE_NODE
          Deprecated. Static constant indicating a change to a single Node.
 
Constructor Summary
FlagEvent(FlagFilter source, Object target, boolean selectOn)
          Deprecated. Standard constructor.
 
Method Summary
 boolean getEventType()
          Deprecated. Returns a boolean identifying the type of event, true if the change is setting the flag for these objects, or false if the change is removing the flag.
 FlagFilter getSource()
          Deprecated. Returns the source of this event.
 Object getTarget()
          Deprecated. Returns an object references the target that was changed.
 int getTargetType()
          Deprecated. Returns a static constant identifying the type of object; either SINGLE_NODE for a Node, SINGLE_EDGE for an Edge, NODE_SET for a Set of Nodes, or EDGE_SET for a Set of Edges.
 String toString()
          Deprecated. Returns a String representation of this object's data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SINGLE_NODE

public static final int SINGLE_NODE
Deprecated. 
Static constant indicating a change to a single Node.

See Also:
Constant Field Values

SINGLE_EDGE

public static final int SINGLE_EDGE
Deprecated. 
Static constant indicating a change to a single Edge.

See Also:
Constant Field Values

NODE_SET

public static final int NODE_SET
Deprecated. 
Static constant indicating a change to a group of Nodes.

See Also:
Constant Field Values

EDGE_SET

public static final int EDGE_SET
Deprecated. 
Static constant indicating a change to a group of Edges.

See Also:
Constant Field Values
Constructor Detail

FlagEvent

public FlagEvent(FlagFilter source,
                 Object target,
                 boolean selectOn)
Deprecated. 
Standard constructor.

The first argument is the object that fired this event.

The second argument decribes what objects were affected; it should be of type Node, Edge, a Set of Nodes, or a Set of Edges. If the argument is a Set, it should contain at least one element. The third argument is a boolean indicating the type of event. It should be true if the change is setting the flag on for the target objects, or false if the change is removing the flag.

Throws:
IllegalArgumentException - if the target is null or an invalid type,
Method Detail

getSource

public FlagFilter getSource()
Deprecated. 
Returns the source of this event.


getTarget

public Object getTarget()
Deprecated. 
Returns an object references the target that was changed. This should be a Node, an Edge, a Set of Nodes, or a Set of Edges. The return value of getTargetType determines which of the four cases applies.


getTargetType

public int getTargetType()
Deprecated. 
Returns a static constant identifying the type of object; either SINGLE_NODE for a Node, SINGLE_EDGE for an Edge, NODE_SET for a Set of Nodes, or EDGE_SET for a Set of Edges.


getEventType

public boolean getEventType()
Deprecated. 
Returns a boolean identifying the type of event, true if the change is setting the flag for these objects, or false if the change is removing the flag.


toString

public String toString()
Deprecated. 
Returns a String representation of this object's data.

Overrides:
toString in class Object

www.cytoscape.org