|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.charts4j.RadarChart
public final class RadarChart
Radar chart constructed with the GCharts
static factory class.
RadarPlot
,
GCharts
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.googlecode.charts4j.TitledChart |
---|
TitledChart.ChartTitle |
Method Summary | |
---|---|
void |
addConcentricAxisLabels(AxisLabels axisLabels)
Add "bull's eye" labels to radar plot. |
void |
addConcentricAxisRangeMarker(double startPoint,
double endPoint,
Color color)
Add a concentric axis range marker. |
void |
addRadialAxisLabels(RadialAxisLabels radialAxisLabels)
Add "spoke" labels to radar plot. |
void |
addRadialAxisRangeMarker(double startPoint,
double endPoint,
Color color)
Add a radial axis range marker. |
Map<String,String> |
getParameters()
Get a map of all the parameters necessary to generate a Google Chart API request. |
void |
setAreaFill(Fill fill)
Specify chart area fill. |
void |
setBackgroundFill(Fill fill)
Specify background fill. |
void |
setDataEncoding(DataEncoding dataEncoding)
Set the data encoding scheme. |
void |
setGrid(double xAxisStepSize,
double yAxisStepSize,
int lengthOfLineSegment,
int lengthOfBlankSegment)
Define a grid for this chart. |
void |
setLegendMargins(int legendWidth,
int legendHeight)
Specify the legend margins. |
void |
setLegendPosition(LegendPosition legendPosition)
Specify where the chart legends will appear. |
void |
setMargins(int leftMargin,
int rightMargin,
int topMargin,
int bottomMargin)
Specify the chart margins. |
void |
setSize(int x,
int y)
Set the chart size. |
void |
setSpline(boolean isSpline)
If true, points are connected with splines. |
void |
setTitle(String title)
Specify a chart title. |
void |
setTitle(String title,
Color color,
int fontSize)
Specify a chart title with color and font size. |
void |
setTransparency(int opacity)
Specify the chart transparency. |
void |
setURLEndpoint(String urlEndpoint)
Sets the chart URL endpoint. |
String |
toURLForHTML()
Create a URL with the ampersand character entity reference (&) in place of an ampersand. |
String |
toURLString()
Create a URL string given the information supplied to this chart. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final Map<String,String> getParameters()
getParameters
in interface GChart
public String toURLForHTML()
toURLForHTML
in interface GChart
public String toURLString()
GChart.toURLForHTML()
into your Internet application to dynamically
generate charts. URLs beyond 2000 characters are not recommended. You can
sometimes get away with the simple encoding scheme if URL length is a
problem. See GChart.setDataEncoding(DataEncoding dataEncoding)
toURLString
in interface GChart
DataEncoding
,
WWW
FAQs: What is the maximum length of a URL?public void setAreaFill(Fill fill)
setAreaFill
in interface GraphChart
fill
- Chart area fill. Cannot be null. This mutable parameter is
defensively copied upon entry.public void setBackgroundFill(Fill fill)
setBackgroundFill
in interface GChart
fill
- Background fill. Cannot be null.Fill
public void setTransparency(int opacity)
setTransparency
in interface GChart
opacity
- Supply a number between 0 and 100. 0 is completely
transparent, and 100 is completely opaque.public void setSize(int x, int y)
setSize
in interface GChart
x
- chart width. Must be > 0 and <= 1000.y
- chart height. Must be > 0 and <= 1000.public void setTitle(String title)
setTitle
in interface TitledChart
title
- Chart title. Cannot be null.public void setTitle(String title, Color color, int fontSize)
setTitle
in interface TitledChart
title
- Chart title. Cannot be null.color
- Chart title color. Cannot be null.fontSize
- Chart title font size. Must be > 0.public void setLegendPosition(LegendPosition legendPosition)
setLegendPosition
in interface GraphChart
legendPosition
- The legend position. Cannot be null.public void addRadialAxisLabels(RadialAxisLabels radialAxisLabels)
radialAxisLabels
- Axis label information containing "spoke" labels.AxisLabelsFactory
public void addConcentricAxisLabels(AxisLabels axisLabels)
axisLabels
- Axis label information containing "bull's eye" labels.AxisLabels
public void setSpline(boolean isSpline)
isSpline
- Are the points connected by splines.public void setGrid(double xAxisStepSize, double yAxisStepSize, int lengthOfLineSegment, int lengthOfBlankSegment)
setGrid
in interface GridChart
xAxisStepSize
- x step size. must be > 0.yAxisStepSize
- y step size. must be > 0.lengthOfLineSegment
- length of line segment. must be >= 0.lengthOfBlankSegment
- length of blank segment. must be >= 0.public final void addRadialAxisRangeMarker(double startPoint, double endPoint, Color color)
startPoint
- the 0 position is at 12 o'clock, 50 is 6 o'clock, and 100 is at 12 o'clock.endPoint
- the 0 position is at 12 o'clock, 50 is 6 o'clock, and 100 is at 12 o'clock.color
- color of range marker. Cannot be null.public final void addConcentricAxisRangeMarker(double startPoint, double endPoint, Color color)
startPoint
- the 0 position is at the center of the radar chart and 100 is
at the outside limit.endPoint
- the 0 position is at the center of the radar chart and 100 is
at the outside limit.color
- color of range marker. Cannot be null.public void setDataEncoding(DataEncoding dataEncoding)
setDataEncoding
in interface GChart
dataEncoding
- Supply the data encoding, either simple or extended. Cannot be
null.public void setMargins(int leftMargin, int rightMargin, int topMargin, int bottomMargin)
GChart.setSize(int, int)
method will not change. The margin moves
inward. It is similar to a CSS padding.
setMargins
in interface GChart
leftMargin
- the left marginrightMargin
- the right margintopMargin
- the top marginbottomMargin
- the bottom marginpublic void setLegendMargins(int legendWidth, int legendHeight)
setLegendMargins
in interface GraphChart
legendWidth
- the legend widthlegendHeight
- the legend heightpublic void setURLEndpoint(String urlEndpoint)
http://chart.apis.google.com/chart
. This method is useful in
situations where other Internet services support the Google Chart API.
For instance, JFreeChart has a Google Chart API emulation called Eastwood. API users can supply
the Eastwood servlet address as the end point URL (e.g.
http://localhost:8080/eastwood-1.1.0/chart
). Note that
Eastwood is not a 100% emulation of the Google Chart API so
"your mileage may vary" in terms of what charts are supported by
Eastwood.
setURLEndpoint
in interface GChart
urlEndpoint
- the new chart url endpoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |