|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.marker.LabelFormatter
public class LabelFormatter extends java.lang.Object implements java.io.Serializable
LabelFormatter specifies label format for the marker labels. If the format holds
formula or data from data model, then you must specify as following: "You label text
$your_formula$ your text again" your_formula - can be any formula, as well as the variable value,
just type in x0, x1, x2 and etc. e.g. "$x0$ km/h" In the label you can use index, but it cannot
be used in formula, e.g. "Label $index$". The same is with the rows and columns, e.g. "Label
$row$,$column$ If you want the expression to display $ symbol, make it double, e.g. "Market
$$$$$$" will be displayed as Market $$$.
| Constructor and Description |
|---|
LabelFormatter(DataModel model)
Label formatter constructor. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.lang.Object expression,
int index)
Formats String or Date according to the model. |
java.lang.String |
format(java.lang.String expression,
int row,
int column)
Formats specified row and column value from the data model |
void |
setDateFormat(java.lang.String dateFormat)
Sets date format pattern. |
void |
setNumberFormat(java.lang.String numberFormat)
Sets number format pattern |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LabelFormatter(DataModel model)
model - data model| Method Detail |
|---|
public java.lang.String format(java.lang.Object expression,
int index)
expression - expression what has to be shown: number, date or formatted formulaindex - data model index
public java.lang.String format(java.lang.String expression,
int row,
int column)
expression - expression what has to be shown: number,date or formatted formularow - row of the matrixcolumn - column of the matrixpublic void setDateFormat(java.lang.String dateFormat)
dateFormat - the date format patternpublic void setNumberFormat(java.lang.String numberFormat)
numberFormat - number format pattern
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||