|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.elegantj.graphx.ValueFormat
Class provided value formating according its object type(i.e Date, Number, String)
| Field Summary | |
static int |
ABSOLUTE_NEG_VALUE
Specifies the Constant for Absolute Negative value representation i.e: if value -1234 then value representation 1234 |
static int |
DEFAULT_NEG_VALUE
Specifies the Constant for Default Negative value representation i.e: if value -1234 then value representation -1234 |
static int |
PARA_NEG_VALUE
Specifies the Constant for Parenthesis Negative value representation i.e: if value -1234 then value representation (1234) |
| Constructor Summary | |
ValueFormat(java.lang.String formatStr)
Create instance of ValueFormat class |
|
ValueFormat(java.lang.String formatStr,
int no)
Create instance of ValueFormat class |
|
| Method Summary | |
java.lang.String |
getNegValRepString(int repType,
java.lang.String inString)
This method gets -ve value rep |
java.lang.String |
getString(java.lang.Object obj)
Return Format string according to its object type and formatting text |
java.lang.String |
getValueFormat()
get Graph Value Format |
void |
setCommaFormat(boolean isComma)
set Value as comma Formatted |
void |
setMaximumChar(int no)
set Maximum Number of character while formatting String type |
void |
setMaximumFractionDigit(int no)
set Maximum Number of Fraction digit after decimal |
void |
setNegativeValRep(int no)
set Maximum Number of Fraction digit after decimal |
void |
setSuffixUnit(boolean isSuffix)
set unit at suffix to value |
void |
setUnitText(java.lang.String text)
set unit text |
void |
setValueFormat(java.lang.String text)
set Graph Value Format |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_NEG_VALUE
public static final int ABSOLUTE_NEG_VALUE
public static final int PARA_NEG_VALUE
| Constructor Detail |
public ValueFormat(java.lang.String formatStr)
public ValueFormat(java.lang.String formatStr,
int no)
| Method Detail |
public void setValueFormat(java.lang.String text)
text - Specifies the Value Formatting stringpublic java.lang.String getValueFormat()
public void setMaximumChar(int no)
no - Specifies the Number of characterpublic void setMaximumFractionDigit(int no)
no - Specifies the Number of Fraction digit after decimalpublic void setCommaFormat(boolean isComma)
isComma - boolean specifies Value as comma Formattedpublic void setSuffixUnit(boolean isSuffix)
isSuffix - boolean specifies unit at suffix to valuepublic void setUnitText(java.lang.String text)
text - string specifies unit textpublic void setNegativeValRep(int no)
no - Specifies the Number of Fraction digit after decimalpublic java.lang.String getString(java.lang.Object obj)
public java.lang.String getNegValRepString(int repType,
java.lang.String inString)
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||