net.sf.mpxj
Class GraphicalIndicatorCriteria

java.lang.Object
  extended by net.sf.mpxj.GenericCriteria
      extended by net.sf.mpxj.GraphicalIndicatorCriteria

public final class GraphicalIndicatorCriteria
extends GenericCriteria

This class represents the criteria used to determine if a graphical indicator is displayed in place of an attribute value.


Constructor Summary
GraphicalIndicatorCriteria(ProjectFile projectFile)
          Constructor.
 
Method Summary
 int evaluate(FieldContainer container)
          Evaluate this criteria to determine if a graphical indicator should be displayed.
 int getIndicator()
          Retrieve the number of the indicator to be displayed.
 void setIndicator(int indicator)
          Set the number of the indicator to be displayed.
 String toString()
          
 
Methods inherited from class net.sf.mpxj.GenericCriteria
addCriteria, evaluate, getCriteriaList, getLeftValue, getOperator, getValue, setLeftValue, setOperator, setRightValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphicalIndicatorCriteria

public GraphicalIndicatorCriteria(ProjectFile projectFile)
Constructor.

Parameters:
projectFile - parent project file
Method Detail

getIndicator

public int getIndicator()
Retrieve the number of the indicator to be displayed.

Returns:
indicator number

setIndicator

public void setIndicator(int indicator)
Set the number of the indicator to be displayed.

Parameters:
indicator - indicator number

evaluate

public int evaluate(FieldContainer container)
Evaluate this criteria to determine if a graphical indicator should be displayed. This method will return -1 if no indicator should be displayed, or it will return a positive integer identifying the required indicator.

Parameters:
container - field container
Returns:
boolean flag

toString

public String toString()

Overrides:
toString in class GenericCriteria


Copyright © 2012. All Rights Reserved.