public final class Pyramid extends java.lang.Object implements IExtension, IGallery
Provides access to the Pyramid gallery object.
Pyramid charts are intended to visualize hierarchical structure and quantity of the data.
The methods of the Pyramid
class allow you to customize the visual attributes of a Pyramid chart. In order to make the supported members available, you must first set the gallery of the chart to Pyramid, and cast the setGalleryAttributes
method of the Chart to the Pyramid
class:
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
chart1.getAllSeries().getPointLabels().setVisible(true);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().get("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
Constructor and Description |
---|
Pyramid()
Constructs a newly allocated Pyramid object
|
Modifier and Type | Method and Description |
---|---|
int |
getFaces()
Gets or sets the number of faces of a 3D-enabled pyramidal chart.
|
int |
getSeparation()
Gets or sets the separation of the points in a pyramidal chart.
|
PyramidStyle |
getStyle()
Allows you to set the pyramidal style of the chart.
|
VectorPyramidValue |
getTemplate()
Gets or sets the template for Pyramid charts.
|
java.lang.String |
getTemplateString()
Gets or sets the template for Pyramid charts.
|
VectorPyramidTemplate |
getTemplateVectorPyramidTemplate()
Gets or sets the template for Pyramid charts.
|
boolean |
isInverted()
Description goes here
|
boolean |
isShadow2D()
Gets or sets the shadow of the pyramid chart.
|
void |
resetDistributeHeight()
Set the property DistributeHeight to its default value.
|
void |
resetFaces()
Set the property Faces to its default value.
|
void |
resetSeparation()
Set the property Separation to its default value.
|
void |
resetShadow2D()
Set the property Shadow2D to its default value.
|
void |
resetStyle()
Set the property Style to its default value.
|
void |
setFaces(int value)
Gets or sets the number of faces of a 3D-enabled pyramidal chart.
|
void |
setInverted(boolean value)
Description goes here
|
void |
setSeparation(int value)
Gets or sets the separation of the points in a pyramidal chart.
|
void |
setShadow2D(boolean value)
Gets or sets the shadow of the pyramid chart.
|
void |
setStyle(PyramidStyle value)
Allows you to set the pyramidal style of the chart.
|
void |
setTemplate(java.lang.String value)
Gets or sets the template for Pyramid charts.
|
void |
setTemplate(VectorPyramidTemplate value)
Gets or sets the template for Pyramid charts.
|
void |
setTemplate(VectorPyramidValue value)
Gets or sets the template for Pyramid charts.
|
public int getFaces()
Gets or sets the number of faces of a 3D-enabled pyramidal chart.
The setView3D
method of the Pyramid
class must be set to true, otherwise faces will not be seen.
A minimum of three (3) faces are required. Anything less than this value will result on a pyramid with 3 faces.
Below, a pyramidal chart with 8 faces:
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setFaces(8);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(55);
chart1.getView3D().setAngleY(5);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
resetFaces
public void setFaces(int value)
Gets or sets the number of faces of a 3D-enabled pyramidal chart.
The setView3D
method of the Pyramid
class must be set to true, otherwise faces will not be seen.
A minimum of three (3) faces are required. Anything less than this value will result on a pyramid with 3 faces.
Below, a pyramidal chart with 8 faces:
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setFaces(8);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(55);
chart1.getView3D().setAngleY(5);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
value
- resetFaces
public boolean isInverted()
public void setInverted(boolean value)
value
- public int getSeparation()
Gets or sets the separation of the points in a pyramidal chart.
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setSeparation(5);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
chart1.getAllSeries().getPointLabels().setVisible(true);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().get("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setSeparation(20);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
chart1.getAllSeries().getPointLabels().setVisible(true);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().get("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
resetSeparation
public void setSeparation(int value)
Gets or sets the separation of the points in a pyramidal chart.
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setSeparation(5);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
chart1.getAllSeries().getPointLabels().setVisible(true);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().get("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setSeparation(20);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
chart1.getAllSeries().getPointLabels().setVisible(true);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().get("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
value
- resetSeparation
public boolean isShadow2D()
Gets or sets the shadow of the pyramid chart.
The Pyramid chart should not use any templates in order to make the shadow visible.
Please refer to the setTemplateString
method to see how to change the template of the Pyramid chart.
Below, the isShadow2D
method is set to true:
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
Pyramid pyramid;
pyramid = ((Pyramid)chart1.getGalleryAttributes());
pyramid.setTemplate(VectorPyramidTemplate.NONE);
pyramid.setShadow2D(true);
chart1.getDataSourceSettings().fillFromSchema();
AnalysisDataTransformer adt1;
adt1 = new AnalysisDataTransformer();
adt1.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt1));
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
resetShadow2D
public void setShadow2D(boolean value)
Gets or sets the shadow of the pyramid chart.
The Pyramid chart should not use any templates in order to make the shadow visible.
Please refer to the setTemplateString
method to see how to change the template of the Pyramid chart.
Below, the isShadow2D
method is set to true:
PopulateSouthAmericaPopulation(chart1);
chart1.setGallery(Gallery.PYRAMID);
Pyramid pyramid;
pyramid = ((Pyramid)chart1.getGalleryAttributes());
pyramid.setTemplate(VectorPyramidTemplate.NONE);
pyramid.setShadow2D(true);
chart1.getDataSourceSettings().fillFromSchema();
AnalysisDataTransformer adt1;
adt1 = new AnalysisDataTransformer();
adt1.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt1));
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
value
- resetShadow2D
public PyramidStyle getStyle()
Allows you to set the pyramidal style of the chart.
Pyramid and Cone charts, are used to show proportional, interconnected, or hierarchical relationships with the largest component on the bottom and the smallest at the top. Cone charts have a circular base and segments joining the apex to the perimeter of the base. Pyramid charts are the same but with a polygonal base.
Funnel charts are often used to represent stages in a sales process and show the amount of potential revenue for each stage. This type of chart can also be useful in identifying potential problem areas in an organization’s sales processes.
Below, a representation of the 3 types of pyramids: Pyramid, Cone, and Funnel:
PopulateSouthAmericaPopulation(chart1);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
chart1.setGallery(Gallery.PYRAMID);
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setStyle(PyramidStyle.UPRIGHT_PYRAMID);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
PopulateSouthAmericaPopulation(chart1);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
chart1.setGallery(Gallery.PYRAMID);
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setStyle(PyramidStyle.UPRIGHT_CONE);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
PopulateSouthAmericaPopulation(chart1);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
chart1.setGallery(Gallery.PYRAMID);
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setStyle(PyramidStyle.FUNNEL);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
public void setStyle(PyramidStyle value)
Allows you to set the pyramidal style of the chart.
Pyramid and Cone charts, are used to show proportional, interconnected, or hierarchical relationships with the largest component on the bottom and the smallest at the top. Cone charts have a circular base and segments joining the apex to the perimeter of the base. Pyramid charts are the same but with a polygonal base.
Funnel charts are often used to represent stages in a sales process and show the amount of potential revenue for each stage. This type of chart can also be useful in identifying potential problem areas in an organization’s sales processes.
Below, a representation of the 3 types of pyramids: Pyramid, Cone, and Funnel:
PopulateSouthAmericaPopulation(chart1);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
chart1.setGallery(Gallery.PYRAMID);
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setStyle(PyramidStyle.UPRIGHT_PYRAMID);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
PopulateSouthAmericaPopulation(chart1);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
chart1.setGallery(Gallery.PYRAMID);
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setStyle(PyramidStyle.UPRIGHT_CONE);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
PopulateSouthAmericaPopulation(chart1);
chart1.getTitles().add(new TitleDockable("South American Countries Population"));
chart1.setPalette("ChartFX6.Windows");
chart1.setGallery(Gallery.PYRAMID);
Pyramid myPyramid;
myPyramid = ((Pyramid)chart1.getGalleryAttributes());
myPyramid.setStyle(PyramidStyle.FUNNEL);
chart1.getView3D().setEnabled(true);
chart1.getView3D().setAngleX(5);
chart1.getView3D().setAngleY(20);
chart1.getLegendBox().setContentLayout(ContentLayout.CENTER);
NumericDataField dfPopulation;
dfPopulation = new NumericDataField();
StringDataField dfCountry;
dfCountry = new StringDataField();
dfPopulation.setDataPath("Population");
dfCountry.setDataPath("Country");
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfPopulation));
chart1.getDataSourceSettings().getDataFields().add(((DataField)dfCountry));
AnalysisDataTransformer adt;
adt = new AnalysisDataTransformer();
adt.getSorting().add(chart1.getDataSourceSettings().getDataFields().getItem("Population"));
chart1.getDataSourceSettings().getTransformers().add(((IDataTransformer)adt));
public static void PopulateSouthAmericaPopulation(Chart chart1) { SouthAmericaPopulation[] data = new SouthAmericaPopulation[]{ new SouthAmericaPopulation("Brazil", 201033000), new SouthAmericaPopulation("Colombia", 47130000), new SouthAmericaPopulation("Argentina", 41350000), new SouthAmericaPopulation("Peru", 30476000), new SouthAmericaPopulation("Venezuela", 29760000), new SouthAmericaPopulation("Chile", 16841000), new SouthAmericaPopulation("Ecuador", 15779000), new SouthAmericaPopulation("Bolivia", 10517000) }; ObjectProvider objProvider = new ObjectProvider(data); chart1.getDataSourceSettings().setDataSource(objProvider); }
public static class SouthAmericaPopulation { public SouthAmericaPopulation(String country, double population) { this.setCountry(country); this.setPopulation(population); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privatePopulation; public final double getPopulation() { return privatePopulation; } public final void setPopulation(double value) { privatePopulation = value; } }
public static class Countries { public Countries(String country, double lei, double gdppc, java.awt.Image flag) { this.setCountry(country); this.setLEI(lei); this.setGDPPC(gdppc); this.setFlag(flag); } private String privateCountry; public final String getCountry() { return privateCountry; } public final void setCountry(String value) { privateCountry = value; } private double privateLEI; public final double getLEI() { return privateLEI; } public final void setLEI(double value) { privateLEI = value; } private double privateGDPPC; public final double getGDPPC() { return privateGDPPC; } public final void setGDPPC(double value) { privateGDPPC = value; } private java.awt.Image privateFlag; public final java.awt.Image getFlag() { return privateFlag; } public final void setFlag(java.awt.Image value) { privateFlag = value; } }
value
- public VectorPyramidTemplate getTemplateVectorPyramidTemplate()
Gets or sets the template for Pyramid charts.
You can choose one of the predefined templates for the Pyramid charts.
The available templates are: Basic, Default, and None. Find a description for each below:
Template | Description |
---|---|
Basic | The Basic template paints the sections of the Pyramid chart using solid colors. |
Default | The Default template paints the sections using gradients, which gives a light effect from top to bottom. |
None | Indicates that the chart will not use any vector template. |
Below, the Default and Basic templates (the template None has the same aspect as the Basic template):
chart1.setGallery(Gallery.PYRAMID); Pyramid pyramid; pyramid = ((Pyramid)chart1.getGalleryAttributes()); pyramid.setTemplate(VectorPyramidTemplate.Default);
public void setTemplate(VectorPyramidTemplate value)
Gets or sets the template for Pyramid charts.
You can choose one of the predefined templates for the Pyramid charts.
The available templates are: Basic, Default, and None. Find a description for each below:
Template | Description |
---|---|
Basic | The Basic template paints the sections of the Pyramid chart using solid colors. |
Default | The Default template paints the sections using gradients, which gives a light effect from top to bottom. |
None | Indicates that the chart will not use any vector template. |
Below, the Default and Basic templates (the template None has the same aspect as the Basic template):
chart1.setGallery(Gallery.PYRAMID); Pyramid pyramid; pyramid = ((Pyramid)chart1.getGalleryAttributes()); pyramid.setTemplate(VectorPyramidTemplate.Default);
value
- public VectorPyramidValue getTemplate()
Gets or sets the template for Pyramid charts.
You can choose one of the predefined templates for the Pyramid charts.
The available templates are: Basic, Default, and None. Find a description for each below:
Template | Description |
---|---|
Basic | The Basic template paints the sections of the Pyramid chart using solid colors. |
Default | The Default template paints the sections using gradients, which gives a light effect from top to bottom. |
None | Indicates that the chart will not use any vector template. |
Below, the Default and Basic templates (the template None has the same aspect as the Basic template):
chart1.setGallery(Gallery.PYRAMID); Pyramid pyramid; pyramid = ((Pyramid)chart1.getGalleryAttributes()); pyramid.setTemplate(VectorPyramidTemplate.Default);
public void setTemplate(VectorPyramidValue value)
Gets or sets the template for Pyramid charts.
You can choose one of the predefined templates for the Pyramid charts.
The available templates are: Basic, Default, and None. Find a description for each below:
Template | Description |
---|---|
Basic | The Basic template paints the sections of the Pyramid chart using solid colors. |
Default | The Default template paints the sections using gradients, which gives a light effect from top to bottom. |
None | Indicates that the chart will not use any vector template. |
Below, the Default and Basic templates (the template None has the same aspect as the Basic template):
chart1.setGallery(Gallery.PYRAMID); Pyramid pyramid; pyramid = ((Pyramid)chart1.getGalleryAttributes()); pyramid.setTemplate(VectorPyramidTemplate.Default);
value
- public java.lang.String getTemplateString()
Gets or sets the template for Pyramid charts.
You can choose one of the predefined templates for the Pyramid charts.
The available templates are: Basic, Default, and None. Find a description for each below:
Template | Description |
---|---|
Basic | The Basic template paints the sections of the Pyramid chart using solid colors. |
Default | The Default template paints the sections using gradients, which gives a light effect from top to bottom. |
None | Indicates that the chart will not use any vector template. |
Below, the Default and Basic templates (the template None has the same aspect as the Basic template):
chart1.setGallery(Gallery.PYRAMID); Pyramid pyramid; pyramid = ((Pyramid)chart1.getGalleryAttributes()); pyramid.setTemplate(VectorPyramidTemplate.Default);
public void setTemplate(java.lang.String value)
Gets or sets the template for Pyramid charts.
You can choose one of the predefined templates for the Pyramid charts.
The available templates are: Basic, Default, and None. Find a description for each below:
Template | Description |
---|---|
Basic | The Basic template paints the sections of the Pyramid chart using solid colors. |
Default | The Default template paints the sections using gradients, which gives a light effect from top to bottom. |
None | Indicates that the chart will not use any vector template. |
Below, the Default and Basic templates (the template None has the same aspect as the Basic template):
chart1.setGallery(Gallery.PYRAMID); Pyramid pyramid; pyramid = ((Pyramid)chart1.getGalleryAttributes()); pyramid.setTemplate(VectorPyramidTemplate.Default);
value
- public void resetDistributeHeight()
public void resetFaces()
setFaces
public void resetSeparation()
setSeparation
public void resetShadow2D()
isShadow2D
public void resetStyle()
2014 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.