|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.charts4j.AbstractGraphChart
com.googlecode.charts4j.AbstractAxisChart
public abstract class AbstractAxisChart
Abstract type that is common to all charts with axes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.googlecode.charts4j.TitledChart |
---|
TitledChart.ChartTitle |
Method Summary | |
---|---|
void |
addRightAxisLabels(AxisLabels axisLabels)
Add Right axis information. |
void |
addTopAxisLabels(AxisLabels axisLabels)
Add Top axis information. |
void |
addXAxisLabels(AxisLabels axisLabels)
Add X axis labels. |
void |
addYAxisLabels(AxisLabels axisLabels)
Add Y axis information. |
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 |
setSize(int width,
int height)
Set the chart size. |
void |
setTransparency(int opacity)
Specify the chart transparency. |
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 com.googlecode.charts4j.AbstractGraphChart |
---|
setAreaFill, setLegendPosition, setTitle, setTitle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final void addXAxisLabels(AxisLabels axisLabels)
axisLabels
- x axis labels. Cannot be null. axisLabels parameter is
defensively copied.AxisLabelsFactory
public final void addYAxisLabels(AxisLabels axisLabels)
axisLabels
- y axis information. Cannot be null. axisLabel parameter is
defensively copied.AxisLabelsFactory
public final void addTopAxisLabels(AxisLabels axisLabels)
axisLabels
- top axis information. Cannot be null. axisLabel parameter is
defensively copied.AxisLabelsFactory
public final void addRightAxisLabels(AxisLabels axisLabels)
axisLabels
- right axis information. Cannot be null. axisLabels parameter
is defensively copied.AxisLabelsFactory
public final 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 void setSize(int width, int height)
setSize
in interface GChart
width
- chart width. Must be > 0 and <= 1000.height
- chart height. Must be > 0 and <= 1000.public final 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 final String toURLForHTML()
toURLForHTML
in interface GChart
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 final void setDataEncoding(DataEncoding dataEncoding)
setDataEncoding
in interface GChart
dataEncoding
- Supply the data encoding, either simple or extended. Cannot be
null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |