public class ChartAxisCollection
extends java.lang.Object
implements java.lang.Iterable
Examples:
Shows how to work with axes collection.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.insertChart(ChartType.COLUMN, 500.0, 300.0);
Chart chart = shape.getChart();
// Hide the major grid lines on the primary and secondary Y axes.
for (ChartAxis axis : chart.getAxes())
{
if (axis.getType() == ChartAxisType.VALUE)
axis.hasMajorGridlines(false);
}
doc.save(getArtifactsDir() + "Charts.AxisCollection.docx");
| Modifier and Type | Method and Description |
|---|---|
ChartAxis |
get(int index)
Gets the axis at the specified index.
|
int |
getCount()
Gets the number of axes in this collection.
|
java.util.Iterator |
iterator()
Returns an enumerator object.
|
public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic ChartAxis get(int index)
public int getCount()