|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Inner Class Summary | |
static class |
IGraph.GraphImpl
|
static interface |
IGraph.GraphProxy
|
Field Summary | |
static int |
HALIGN_LEFT
Left align |
static int |
HALIGN_RIGHT
Left align |
static java.lang.String |
TYPE_DATE
Indicates the type of the coordinates are Dates Use in setXAxisType and setYAxisType. |
static java.lang.String |
TYPE_NUMERICAL
Indicates the type of the coordinates are Numerical. |
static int |
VALIGN_BOTTOM
Bottom align |
static int |
VALIGN_TOP
Top align |
Method Summary | |
void |
addAnnotation(GraphAnnotation a)
Adds an annotation to this Graph. |
void |
addPlot(PlotComponent plot)
Adds a plot to this Graph. |
int |
getLegendHorizontalAlignment()
Gets the horizontal alignment of the legend. |
int |
getLegendHorizontalMargin()
Gets the distance from the horizontal alignment position in pixels. |
int |
getLegendVerticalAlignment()
Gets the vertical alignment of the legend. |
int |
getLegendVerticalMargin()
Gets the distance from the vertical alignment position in pixels. |
boolean |
getLegendVisible()
Gets the visibility of the legend |
java.lang.String |
getXAxisDataType()
Gets the type of the x-axis and x coordinate of the data points. |
java.lang.String[] |
getXTickLabels()
Gets the x-tick labels |
java.lang.String |
getYAxisDataType()
Gets the type of the y-axis and y coordinate of the data points. |
boolean |
getZoomable()
Gets whether the graph is zoomable or not |
com.droplets.api.GraphAnnotation.AnnotationProxy |
makeAnnotationProxy(GraphAnnotation a,
int orientation)
Makes the appropriate PlotProxy class for this graph type. |
com.droplets.api.PlotComponent.PlotProxy |
makePlotProxy(PlotComponent plot,
java.lang.String type)
Makes the appropriate PlotProxy class for this graph type. |
void |
setAddedToWindow(boolean isAddedToWindow)
Window uses this to inform the component that it is added to a window |
void |
setLegendHorizontalPosition(int halign,
int margin)
Sets the Horizontal position of the legend. |
void |
setLegendHorizontalPosition(int halign,
int margin,
java.lang.String skinName)
Sets the Horizontal position of the legend. |
void |
setLegendVerticalPosition(int halign,
int margin)
Sets the Vertical position of the legend. |
void |
setLegendVerticalPosition(int halign,
int margin,
java.lang.String skinName)
Sets the Vertical position of the legend. |
void |
setLegendVisible(boolean visible)
Sets the visibility of the legend |
void |
setLegendVisible(boolean visible,
java.lang.String skinName)
Sets the visibility of the legend |
void |
setXAxisDataType(java.lang.String type)
Sets the type of the x-axis and x coordinate of the data points. |
void |
setXTickLabels(java.lang.String[] ticks)
Sets the x-tick labels |
void |
setXTickLabels(java.lang.String[] ticks,
java.lang.String skinName)
Sets the x-tick labels. |
void |
setYAxisDataType(java.lang.String type)
Sets the type of the x-axis and x coordinate of the data points. |
void |
setZoomable(boolean z)
Sets whether the graph is zoomable or not |
void |
setZoomable(boolean z,
java.lang.String skinName)
Sets whether the graph is zoomable or not |
Field Detail |
public static final java.lang.String TYPE_NUMERICAL
public static final java.lang.String TYPE_DATE
public static final int HALIGN_LEFT
public static final int HALIGN_RIGHT
public static final int VALIGN_TOP
public static final int VALIGN_BOTTOM
Method Detail |
public void addPlot(PlotComponent plot)
public void addAnnotation(GraphAnnotation a)
public void setAddedToWindow(boolean isAddedToWindow)
isAddedToWindow
- true if the component is in a windowpublic java.lang.String getXAxisDataType()
public void setXAxisDataType(java.lang.String type)
type
- the type of the x-axis, chosen from the TYPE_* fields in this classpublic java.lang.String getYAxisDataType()
public void setYAxisDataType(java.lang.String type)
type
- the type of the x-axis, chosen from the TYPE_* fields in this classpublic boolean getLegendVisible()
public void setLegendVisible(boolean visible, java.lang.String skinName)
visible
- true if the legend should be visibleskinName
- the skinName of this settingpublic void setLegendVisible(boolean visible)
visible
- true if the legend should be visiblepublic int getLegendHorizontalAlignment()
public int getLegendHorizontalMargin()
public void setLegendHorizontalPosition(int halign, int margin, java.lang.String skinName)
halign
- either HALIGN_LEFT or HALIGN_RIGHTmargin
- the distance from the base position given by halign.skinName
- the skinName of this settingpublic void setLegendHorizontalPosition(int halign, int margin)
halign
- either HALIGN_LEFT or HALIGN_RIGHTmargin
- the distance from the base position given by halign.public int getLegendVerticalAlignment()
public int getLegendVerticalMargin()
public void setLegendVerticalPosition(int halign, int margin, java.lang.String skinName)
halign
- either HALIGN_LEFT or HALIGN_RIGHTmargin
- the distance from the base position given by halign.
Use negative numbers to be left of that position and positive to be rightskinName
- the skinName of this settingpublic void setLegendVerticalPosition(int halign, int margin)
halign
- either HALIGN_LEFT or HALIGN_RIGHTmargin
- the distance from the base position given by halign.
Use negative numbers to be left of that position and positive to be rightpublic java.lang.String[] getXTickLabels()
public void setXTickLabels(java.lang.String[] ticks, java.lang.String skinName)
ticks
- labels to use on the x-axisskinName
- the skinName of this settingpublic void setXTickLabels(java.lang.String[] ticks)
ticks
- labels to use on the x-axissetXTickLabels(String[], String)
public boolean getZoomable()
public void setZoomable(boolean z, java.lang.String skinName)
z
- true if the graph is zoomable, false otherwiseskinName
- the skinName of this settingpublic void setZoomable(boolean z)
z
- true if the graph is zoomable, false otherwisepublic com.droplets.api.PlotComponent.PlotProxy makePlotProxy(PlotComponent plot, java.lang.String type)
plot
- the plot for which to make a proxytype
- the type of the plotpublic com.droplets.api.GraphAnnotation.AnnotationProxy makeAnnotationProxy(GraphAnnotation a, int orientation)
plot
- the plot for which to make a proxytype
- the type of the plot
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |