ccvisu
Class MarkerScript

java.lang.Object
  extended by ccvisu.Marker
      extended by ccvisu.MarkerScript

public class MarkerScript
extends Marker

Parse conditions from a file and marks a vertices verifing these conditions.

Version:
$Revision: 1.3 $; $Date: 2006/11/25 10:41:07 $
Author:
Damien Zufferey

Nested Class Summary
protected  class MarkerScript.ColorCondition
          Objects containing a color and a list of conditions
 
Field Summary
private  java.util.Vector<MarkerScript.ColorCondition> conditions
           
private static int contains
           
protected static java.lang.Integer CONTAINS
          used as mode for pattern interpretation
private  boolean def
           
private  java.awt.Color defaultColor
           
private static int ends
           
protected static java.lang.Integer ENDS
          used as mode for pattern interpretation
private static int equals
           
protected static java.lang.Integer EQUALS
          used as mode for pattern interpretation
protected static java.lang.Integer NOT_CONTAINS
          used as mode for pattern interpretation
protected static java.lang.Integer NOT_ENDS
          used as mode for pattern interpretation
protected static java.lang.Integer NOT_EQUALS
          used as mode for pattern interpretation
protected static java.lang.Integer NOT_STARTS
          used as mode for pattern interpretation
private static int starts
           
protected static java.lang.Integer STARTS
          used as mode for pattern interpretation
 
Constructor Summary
MarkerScript(java.io.BufferedReader in)
          Constructor
 
Method Summary
 void mark(GraphVertex vertex)
          Special marking for certain vertices by setting attributes of the vertex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

equals

private static final int equals
See Also:
Constant Field Values

contains

private static final int contains
See Also:
Constant Field Values

starts

private static final int starts
See Also:
Constant Field Values

ends

private static final int ends
See Also:
Constant Field Values

EQUALS

protected static final java.lang.Integer EQUALS
used as mode for pattern interpretation


CONTAINS

protected static final java.lang.Integer CONTAINS
used as mode for pattern interpretation


STARTS

protected static final java.lang.Integer STARTS
used as mode for pattern interpretation


ENDS

protected static final java.lang.Integer ENDS
used as mode for pattern interpretation


NOT_EQUALS

protected static final java.lang.Integer NOT_EQUALS
used as mode for pattern interpretation


NOT_CONTAINS

protected static final java.lang.Integer NOT_CONTAINS
used as mode for pattern interpretation


NOT_STARTS

protected static final java.lang.Integer NOT_STARTS
used as mode for pattern interpretation


NOT_ENDS

protected static final java.lang.Integer NOT_ENDS
used as mode for pattern interpretation


conditions

private java.util.Vector<MarkerScript.ColorCondition> conditions

def

private boolean def

defaultColor

private java.awt.Color defaultColor
Constructor Detail

MarkerScript

public MarkerScript(java.io.BufferedReader in)
Constructor

Parameters:
in - BufferedReader from a file containing the informations
Method Detail

mark

public void mark(GraphVertex vertex)
Special marking for certain vertices by setting attributes of the vertex

Overrides:
mark in class Marker
Parameters:
vertex - Vertex of the graph representation.