NetCharts Pro

netcharts.pro.charts.diagram
Class NFPolyExpr

java.lang.Object
  |
  +--netcharts.pro.common.NFBaseClass
        |
        +--netcharts.pro.charts.diagram.NFPolyExpr
All Implemented Interfaces:
java.lang.Cloneable

public class NFPolyExpr
extends NFBaseClass

This class is used to define an expression for coloring polygons in a diagram chart. An expression consists of the operator, the compare value(s), and the fillColor. When the expression is true, the diagram will color the polygon with the given fillColor.


Field Summary
static int BETWEEN
           
static java.lang.String BETWEEN_STRING
           
static int EQUAL
           
static java.lang.String EQUAL_STRING
           
static int EQUAL_TEXT
           
static java.lang.String EQUAL_TEXT_STRING
           
static java.util.Hashtable expressionOpMap
          expression operation hashtable
static java.lang.String[] expressions
           
static int GREATER_THAN
           
static int GREATER_THAN_OR_EQUAL
           
static java.lang.String GREATER_THAN_STRING
           
static java.lang.String GREATER_THEN_OR_EQUAL_STRING
           
static int LESS_THAN
           
static int LESS_THAN_OR_EQUAL
           
static java.lang.String LESS_THAN_STRING
           
static java.lang.String LESS_THEN_OR_EQUAL_STRING
           
static int NOT_EQUAL
           
static java.lang.String NOT_EQUAL_STRING
           
static int NOT_EQUAL_TEXT
           
static java.lang.String NOT_EQUAL_TEXT_STRING
           
 
Constructor Summary
NFPolyExpr()
          Constructs a default poly expression
NFPolyExpr(int operator, java.lang.Object value1, java.lang.Object value2, java.awt.Color fillColor)
          Constructs a default poly expression
 
Method Summary
 java.lang.String getCDL()
           
 java.awt.Color getFillColor()
          Gets the fill color to be used if the expression is true
static int getIntOperator(java.lang.String operator)
           
 int getOperator()
          Gets expression operator
static java.lang.String getStringOperator(int operator)
           
 java.lang.Object getValue1()
          Gets the expression value
 java.lang.Object getValue2()
          Gets the second value.
 void setCDL(java.lang.String s)
          Configures this object from a CDL parameter representation.
 void setFillColor(java.awt.Color fillColor)
          Sets the fill color to be used if the expression is true
 void setOperator(int operator)
          Sets expression operator
 void setValue1(java.lang.Object value1)
          Sets the expression value
 void setValue2(java.lang.Object value2)
          Sets the second value.
 java.lang.String toString()
          Returns a new String object representing this poly expr.
 
Methods inherited from class netcharts.pro.common.NFBaseClass
clone, getModified, getUserObject, setModified, setUserObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GREATER_THAN

public static final int GREATER_THAN

LESS_THAN

public static final int LESS_THAN

EQUAL

public static final int EQUAL

GREATER_THAN_OR_EQUAL

public static final int GREATER_THAN_OR_EQUAL

LESS_THAN_OR_EQUAL

public static final int LESS_THAN_OR_EQUAL

NOT_EQUAL

public static final int NOT_EQUAL

BETWEEN

public static final int BETWEEN

EQUAL_TEXT

public static final int EQUAL_TEXT

NOT_EQUAL_TEXT

public static final int NOT_EQUAL_TEXT

GREATER_THAN_STRING

public static java.lang.String GREATER_THAN_STRING

LESS_THAN_STRING

public static java.lang.String LESS_THAN_STRING

EQUAL_STRING

public static java.lang.String EQUAL_STRING

GREATER_THEN_OR_EQUAL_STRING

public static java.lang.String GREATER_THEN_OR_EQUAL_STRING

LESS_THEN_OR_EQUAL_STRING

public static java.lang.String LESS_THEN_OR_EQUAL_STRING

NOT_EQUAL_STRING

public static java.lang.String NOT_EQUAL_STRING

BETWEEN_STRING

public static java.lang.String BETWEEN_STRING

EQUAL_TEXT_STRING

public static java.lang.String EQUAL_TEXT_STRING

NOT_EQUAL_TEXT_STRING

public static java.lang.String NOT_EQUAL_TEXT_STRING

expressions

public static java.lang.String[] expressions

expressionOpMap

public static java.util.Hashtable expressionOpMap
expression operation hashtable
Constructor Detail

NFPolyExpr

public NFPolyExpr()
Constructs a default poly expression

NFPolyExpr

public NFPolyExpr(int operator,
                  java.lang.Object value1,
                  java.lang.Object value2,
                  java.awt.Color fillColor)
Constructs a default poly expression
Parameters:
operator - Expression operator
value1 - Object to compare with
value2 - Only used if expression is BETWEEN
Method Detail

setOperator

public void setOperator(int operator)
Sets expression operator
Parameters:
operator -  

getOperator

public int getOperator()
Gets expression operator
Returns:
operator

setValue1

public void setValue1(java.lang.Object value1)
Sets the expression value
Parameters:
value1 - The expression value to compare with.

getValue1

public java.lang.Object getValue1()
Gets the expression value
Returns:
The expression value to compare with.

setValue2

public void setValue2(java.lang.Object value2)
Sets the second value. Only used if operator is BETWEEN
Parameters:
value2 - The second value in the between statement

getValue2

public java.lang.Object getValue2()
Gets the second value. Only valid if operator is BETWEEN
Returns:
value2 The second value in the between statement

setFillColor

public void setFillColor(java.awt.Color fillColor)
Sets the fill color to be used if the expression is true
Parameters:
fillColor - The color to fill the polygon with if the expression is true

getFillColor

public java.awt.Color getFillColor()
Gets the fill color to be used if the expression is true
Returns:
The color to fill the polygon with if the expression is true

toString

public java.lang.String toString()
Returns a new String object representing this poly expr.
Overrides:
toString in class java.lang.Object
Returns:
A new String object in the same form as that given by getCDL().

setCDL

public void setCDL(java.lang.String s)
Configures this object from a CDL parameter representation.
Parameters:
cdl - CDL in the form: ("operator",value1,value2,color)

getCDL

public java.lang.String getCDL()

getIntOperator

public static int getIntOperator(java.lang.String operator)

getStringOperator

public static java.lang.String getStringOperator(int operator)

NetCharts Pro


Visual Mining, Inc.
15825 Shady Grove Rd.
Suite 20
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2004
All Rights Reserved.

NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Apr 1, 2004