|
MakeLogic Wireless - microGraphs API v1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.makeLogic.mg.BarGraph
| Field Summary | |
static int |
ALL_VALUES
Specifies that all the values should be marked on the axis including the end values |
static int |
DOTTED
Set the drawing stroke style to DOTTED line |
static int |
END_VALUES
Specifies that only the end values should be marked on X or Y axis. |
static int |
HORIZONTAL
Sets the bars to show in horizontal position, that is parallel to X-axis |
static int |
NONE
An option that specifies nothing should be drawn |
static int |
SOLID
Set the drawing stroke style to SOLID line |
static int |
VERTICAL
Sets the bars to show in vertical position, that is parallel to Y-axis |
static int |
X_AND_Y
An option that specifies that the grid lines be drawn in both X and Y directions |
static int |
X_ONLY
An option that specifies that the grid lines be drawn parallel to X-axis only |
static int |
Y_ONLY
An option that specifies that the grid lines be drawn parallel to Y-axis only |
static int |
ZOOM_IN
Shows the graph in a more detailed manner. |
static int |
ZOOM_OUT
Shows the graph completely. |
| Constructor Summary | |
BarGraph(int[] x,
int[] y,
java.lang.String xLabel,
java.lang.String yLabel,
int ALIGNMENT,
int DETAIL,
java.lang.String title)
Takes the values of x and y cooridnates in the form of an integer array. |
|
| Method Summary | |
void |
paint(javax.microedition.lcdui.Graphics g)
|
void |
refresh()
Once the graph is displayed on the device, you should call refresh() method if you have made anychanges to the properties using the set methods. |
void |
run()
|
void |
setBorder(boolean value)
Sets the border for the graph. |
void |
setBorderStyle(int type)
Border Style can be set to DOTTED or SOLID. |
void |
setGridStyle(int type)
Sets the style of the grid. |
void |
setTitle(java.lang.String title)
Sets a title for this graph.In most cases refresh() should be called for the changes to take effect |
void |
setViewType(int value)
Sets the view type to one of the following predefined values. |
void |
setXGridStyle(int type)
X - grid lines style can be set to either DOTTED or SOLID.This function takes affect only when the X-Grid is turned on. |
void |
setXLabel(java.lang.String label)
The x-axis values can be labeled using this function. |
void |
setXValuesDisplayType(int type)
The values displayed on the x-axis can be set to one of the following ways. |
void |
setYGridStyle(int type)
Y - grid lines style can be set to either DOTTED or SOLID.This function takes affect only when the Y-Grid is turned on. |
void |
setYLabel(java.lang.String label)
The y-axis values can be labeled using this function.In most cases refresh() should be called for the changes to take effect. |
void |
setYValuesDisplayType(int type)
The values displayed on the y-axis can be set to one of the following ways. |
void |
showTitle(boolean value)
Sets if the title for this graph should be displayed or not.In most cases refresh() should be called for the changes to take effect |
void |
showXAxis(boolean value)
Sets if the X-Axis should be displayed or not.In most cases refresh() should be called for the changes to take effect |
void |
showXLabel(boolean value)
Sets if the X-Label should be displayed or not.In most cases refresh() should be called for the changes to take effect |
void |
showYAxis(boolean value)
Sets if the Y-Axis should be displayed or not.In most cases refresh() should be called for the changes to take effect |
void |
showYLabel(boolean value)
Sets if the Y-Label should be displayed or not.In most cases refresh() should be called for the changes to take effect |
| Field Detail |
public static final int X_ONLY
public static final int Y_ONLY
public static final int X_AND_Y
public static final int NONE
public static final int DOTTED
public static final int SOLID
public static final int END_VALUES
public static final int ALL_VALUES
public static final int ZOOM_IN
public static final int ZOOM_OUT
public static final int VERTICAL
public static final int HORIZONTAL
| Constructor Detail |
public BarGraph(int[] x,
int[] y,
java.lang.String xLabel,
java.lang.String yLabel,
int ALIGNMENT,
int DETAIL,
java.lang.String title)
int - x[]
int - y[]
String - xLabel
String - yLabel
int - ALIGNMENT
int - DETAIL
String - title
| Method Detail |
public void paint(javax.microedition.lcdui.Graphics g)
public void run()
run in interface java.lang.Runnablepublic void setGridStyle(int type)
int - type type should be one of the following values only, otherwise the results are unpredictable
refresh()public void setBorder(boolean value)
boolean - valuerefresh(),
setBorderStyle(int type)public void setXGridStyle(int type)
int - type . Type should be set to one of the following only
refresh(),
setGridStyle(int type)public void setYGridStyle(int type)
int - type . Type should be set to one of the following only
refresh(),
setGridStyle(int type)public void setBorderStyle(int type)
int - type . Type should be set to one of the following only
refresh(),
setBorder(boolean value)public void setXLabel(java.lang.String label)
String - label Label of the x-axispublic void setYLabel(java.lang.String label)
String - label Label of the y-axispublic void setXValuesDisplayType(int type)
int - type. Type can be one of the following
public void setYValuesDisplayType(int type)
int - type. Type can be one of the following
public void refresh()
public void setTitle(java.lang.String title)
String - title Title for this graphpublic void showTitle(boolean value)
String - title Title for this graphpublic void showXAxis(boolean value)
public void showYAxis(boolean value)
public void showXLabel(boolean value)
public void showYLabel(boolean value)
public void setViewType(int value)
|
MakeLogic Wireless - microGraphs API v1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||