|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFBaseClass
netcharts.pro.charts.diagram.NFPolyExpr
public class NFPolyExpr
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
BETWEEN expression identifier (between) |
static java.lang.String |
BETWEEN_STRING
EQUAL_TEXT expression String (=) |
static int |
EQUAL
EQUAL expression identifier (==) |
static java.lang.String |
EQUAL_STRING
EQUAL expression String (==) |
static int |
EQUAL_TEXT
EQUAL_TEXT expression identifier (=) |
static java.lang.String |
EQUAL_TEXT_STRING
NOT_EQUAL_TEXT expression String (<>) |
static java.util.Hashtable |
expressionOpMap
The set of allowed expressions. |
static java.lang.String[] |
expressions
The set of allowed expressions. |
static int |
GREATER_THAN
GREATER_THAN expression identifier (>) |
static int |
GREATER_THAN_OR_EQUAL
GREATER_THAN_OR_EQUAL expression identifier (>=) |
static java.lang.String |
GREATER_THAN_STRING
GREATER_THAN expression String (>) |
static java.lang.String |
GREATER_THEN_OR_EQUAL_STRING
GREATER_THAN_OR_EQUAL expression String (>=) |
static int |
LESS_THAN
LESS_THAN expression identifier (<) |
static int |
LESS_THAN_OR_EQUAL
LESS_THAN_OR_EQUAL expression identifier (<=) |
static java.lang.String |
LESS_THAN_STRING
LESS_THAN expression String (<) |
static java.lang.String |
LESS_THEN_OR_EQUAL_STRING
LESS_THAN_OR_EQUAL expression String (<=) |
static int |
NOT_EQUAL
NOT_EQUAL expression identifier (!=) |
static java.lang.String |
NOT_EQUAL_STRING
NOT_EQUAL expression String (!=) |
static int |
NOT_EQUAL_TEXT
NOT_EQUAL_TEXT expression identifier (<>) |
static java.lang.String |
NOT_EQUAL_TEXT_STRING
NOT_EQUAL_TEXT expression 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()
Generate CDL parameters representing this polygon expression. |
java.awt.Color |
getFillColor()
Gets the fill color to be used if the expression is true |
static int |
getIntOperator(java.lang.String operator)
Returns the int associated with the string based expression operator |
int |
getOperator()
Gets expression operator |
static java.lang.String |
getStringOperator(int operator)
Returns the expression operator string associated with the int based expression 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 |
---|
public static final int GREATER_THAN
public static final int LESS_THAN
public static final int EQUAL
public static final int GREATER_THAN_OR_EQUAL
public static final int LESS_THAN_OR_EQUAL
public static final int NOT_EQUAL
public static final int BETWEEN
public static final int EQUAL_TEXT
public static final int NOT_EQUAL_TEXT
public static java.lang.String GREATER_THAN_STRING
public static java.lang.String LESS_THAN_STRING
public static java.lang.String EQUAL_STRING
public static java.lang.String GREATER_THEN_OR_EQUAL_STRING
public static java.lang.String LESS_THEN_OR_EQUAL_STRING
public static java.lang.String NOT_EQUAL_STRING
public static java.lang.String BETWEEN_STRING
public static java.lang.String EQUAL_TEXT_STRING
public static java.lang.String NOT_EQUAL_TEXT_STRING
public static java.lang.String[] expressions
GREATER_THAN_STRING, LESS_THAN_STRING, EQUAL_STRING,
GREATER_THEN_OR_EQUAL_STRING, LESS_THEN_OR_EQUAL_STRING,
NOT_EQUAL_STRING, BETWEEN_STRING, EQUAL_TEXT_STRING, NOT_EQUAL_TEXT_STRING
public static java.util.Hashtable expressionOpMap
GREATER_THAN_STRING, LESS_THAN_STRING, EQUAL_STRING,
GREATER_THEN_OR_EQUAL_STRING, LESS_THEN_OR_EQUAL_STRING,
NOT_EQUAL_STRING, BETWEEN_STRING, EQUAL_TEXT_STRING, NOT_EQUAL_TEXT_STRING
Constructor Detail |
---|
public NFPolyExpr()
public NFPolyExpr(int operator, java.lang.Object value1, java.lang.Object value2, java.awt.Color fillColor)
operator
- Expression operatorvalue1
- Object to compare withvalue2
- Only used if expression is BETWEEN
Method Detail |
---|
public void setOperator(int operator)
operator
- public int getOperator()
public void setValue1(java.lang.Object value1)
value1
- The expression value to compare with.public java.lang.Object getValue1()
public void setValue2(java.lang.Object value2)
BETWEEN
value2
- The second value in the between statementpublic java.lang.Object getValue2()
BETWEEN
public void setFillColor(java.awt.Color fillColor)
fillColor
- The color to fill the polygon with if the expression is truepublic java.awt.Color getFillColor()
public java.lang.String toString()
toString
in class java.lang.Object
public void setCDL(java.lang.String s)
cdl
- CDL in the form: ("operator",value1,value2,color)
public java.lang.String getCDL()
("operator",value1,value2,color)
public static int getIntOperator(java.lang.String operator)
operator
- The expression operator
public static java.lang.String getStringOperator(int operator)
operator
- The expression operator
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |