public class Pane
extends java.lang.Object
Provides access to the Pane object.
The Panes feature of Chart FX allows the developer to display multiple panes of data in a single chart window. This data analysis feature allows developers to separate or combine several series allowing for improved analysis experience. This could be used for many applications, the most obvious being to improve readability by simplifying the display of a chart.
PopulateCompanyDataBubble_Strength_Rank_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getPanes().add(new Pane());
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
chart1.getSeries().get(2).setPane(chart1.getPanes().get(2));
chart1.getSeries().get(2).setGallery(Gallery.AREA);
Pane pane;
pane = chart1.getPanes().get(0);
pane.getTitle().setText("Strength");
pane.getTitle().setAlignment(StringAlignment.NEAR);
pane = chart1.getPanes().get(1);
pane.getTitle().setText("Rank");
pane.getTitle().setAlignment(StringAlignment.NEAR);
pane = chart1.getPanes().get(2);
pane.getTitle().setText("PE");
pane.getTitle().setAlignment(StringAlignment.NEAR);
chart1.getLegendBox().setVisible(false);
public static void PopulateCompanyDataBubble_Strength_Rank_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(3);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldRank = new NumericDataField();
numericFieldRank.setDataPath("Rank");
chart1.getDataSourceSettings().getDataFields().add(numericFieldRank);
chart1.getSeries().get(1).getBindings().setY(numericFieldRank);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(2).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
In the chart above, three series are each assigned to an individual pane. As you can see, each pane has several attributes unique to that pane instance, such as the setBackColor, setProportion, setSeparation, setTitle, etc. Also observe how each of the panes have an independent axis.
The first indexed pane of the collection is referred to the main pane of the chart. It can be accessed by the setMainPanemethod of the Chart class.
| Constructor and Description |
|---|
Pane()
Constructs a newly allocated Pane object
|
Pane(int index)
Constructs a newly allocated Pane object
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AxisY> |
getAxes()
Provides access to the Y Axis Collection for the selected Pane.
|
AxisY |
getAxisY()
Provides access to the members of the main Y Axis for the selected Pane.
|
java.awt.Color |
getBackColor()
Gets or sets the inside color for the selected pane.
|
IBackgroundAdornment |
getBackground()
Gets or sets an ImageBackground or GradientBackground object for a pane.
|
java.awt.Rectangle |
getBoundingRectangle()
Returns a rectangle object that contains attributes for the selected pane.
|
double |
getProportion()
Gets or sets a value indicating the proportional size of the selected pane.
|
int |
getSeparation()
Gets or sets a value indicating the space between panes.
|
Title |
getTitle()
Gets the Title object for a selected pane.
|
boolean |
isVisible()
Gets or sets a value indicating if the Pane object should be shown or not.
|
void |
resetBackColor()
Set the property BackColor to its default value.
|
void |
resetProportion()
Set the property Proportion to its default value.
|
void |
resetSeparation()
Set the property Separation to its default value.
|
void |
resetVisible()
Set the property Visible to its default value.
|
void |
setBackColor(java.awt.Color value)
Gets or sets the inside color for the selected pane.
|
void |
setBackground(IBackgroundAdornment value)
Gets or sets an ImageBackground or GradientBackground object for a pane.
|
void |
setProportion(double value)
Gets or sets a value indicating the proportional size of the selected pane.
|
void |
setSeparation(int value)
Gets or sets a value indicating the space between panes.
|
void |
setTitle(Title value)
Gets the Title object for a selected pane.
|
void |
setVisible(boolean value)
Gets or sets a value indicating if the Pane object should be shown or not.
|
public Pane()
public Pane(int index)
index - public java.util.List<AxisY> getAxes()
AxisY y; y = new AxisY(); chart1.getPanes().get(1).getAxes().add(y);
public AxisY getAxisY()
Provides access to the members of the main Y Axis for the selected Pane.
Pane pane; pane = chart1.getPanes().get(0); pane.getAxisY().setStep(0.25);
chart1.getAxisY().setStep(0.25);
PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getLegendBox().setVisible(false);
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
pane.getTitle().setText("Strength");
pane.getTitle().setAlignment(StringAlignment.NEAR);
pane = chart1.getPanes().get(1);
pane.getTitle().setText("PE");
pane.getTitle().setAlignment(StringAlignment.NEAR);
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getLegendBox().setVisible(false);
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
pane.getTitle().setText("Strength");
pane.getTitle().setAlignment(StringAlignment.NEAR);
pane = chart1.getPanes().get(1);
pane.getTitle().setText("PE");
pane.getTitle().setAlignment(StringAlignment.NEAR);
pane.getAxisY().setInverted(true);
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
public java.awt.Color getBackColor()
Gets or sets the inside color for the selected pane.
setBackground.PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
pane = chart1.getPanes().get(1);
pane.setBackColor(new java.awt.Color(0,0,139,255));
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
resetBackColorpublic void setBackColor(java.awt.Color value)
Gets or sets the inside color for the selected pane.
setBackground.PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
pane = chart1.getPanes().get(1);
pane.setBackColor(new java.awt.Color(0,0,139,255));
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
value - resetBackColorpublic IBackgroundAdornment getBackground()
GradientBackground gb; gb = new GradientBackground(); gb.setType(GradientType.ANGLED); gb.setColorFrom(new java.awt.Color(0,0,255,255)); gb.setColorTo(new java.awt.Color(255,255,0,255)); chart1.getPanes().get(0).setChartBackground(gb);
public void setBackground(IBackgroundAdornment value)
GradientBackground gb; gb = new GradientBackground(); gb.setType(GradientType.ANGLED); gb.setColorFrom(new java.awt.Color(0,0,255,255)); gb.setColorTo(new java.awt.Color(255,255,0,255)); chart1.getPanes().get(0).setChartBackground(gb);
value - public java.awt.Rectangle getBoundingRectangle()
java.awt.Rectangle myRect = new java.awt.Rectangle; myRect = chart1.getPanes().get(0).getBoundingRectangle();
public double getProportion()
Gets or sets a value indicating the proportional size of the selected pane.
PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.setProportion(1);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
pane = chart1.getPanes().get(1);
pane.setProportion(3);
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
resetProportionpublic void setProportion(double value)
Gets or sets a value indicating the proportional size of the selected pane.
PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.setProportion(1);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
pane = chart1.getPanes().get(1);
pane.setProportion(3);
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
value - resetProportionpublic int getSeparation()
Gets or sets a value indicating the space between panes.
PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
chart1.getPanes().get(1).setSeparation(40);
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
resetSeparationpublic void setSeparation(int value)
Gets or sets a value indicating the space between panes.
PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
chart1.getPanes().get(1).setSeparation(40);
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
value - resetSeparationpublic Title getTitle()
Gets the Title object for a selected pane.
Pane class members you will be able to control attributes such as: Alignment, Color, Font,Text, etc.setSeparation method may be used to control the space between panes. This may be useful to developers trying a change the font for a pane's title.PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getLegendBox().setVisible(false);
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
pane.getTitle().setAlignment(StringAlignment.NEAR);
pane = chart1.getPanes().get(1);
pane.getTitle().setText("Second Pane");
pane.getTitle().setAlignment(StringAlignment.NEAR);
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
public void setTitle(Title value)
Gets the Title object for a selected pane.
Pane class members you will be able to control attributes such as: Alignment, Color, Font,Text, etc.setSeparation method may be used to control the space between panes. This may be useful to developers trying a change the font for a pane's title.PopulateCompanyDataBubble_Strength_PE(chart1);
chart1.getTitles().add(new TitleDockable("Companies Fundamentals"));
chart1.getLegendBox().setVisible(false);
chart1.getPanes().add(new Pane());
chart1.getSeries().get(0).setPane(chart1.getPanes().get(0));
chart1.getSeries().get(0).setGallery(Gallery.LINES);
chart1.getSeries().get(1).setPane(chart1.getPanes().get(1));
Pane pane;
pane = chart1.getPanes().get(0);
pane.getAxisY().setStep(0.25);
pane.getAxisY().getLabelsFormat().setDecimals(2);
pane.getTitle().setAlignment(StringAlignment.NEAR);
pane = chart1.getPanes().get(1);
pane.getTitle().setText("Second Pane");
pane.getTitle().setAlignment(StringAlignment.NEAR);
public static void PopulateCompanyDataBubble_Strength_PE(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
// Since not all the fields in the DataSource are required, we must specify the number
// of series that will be contained in the chart and perform the corresponding bindings
chart1.getData().setSeries(2);
NumericDataField numericFieldStrength = new NumericDataField();
numericFieldStrength.setDataPath("Strength");
chart1.getDataSourceSettings().getDataFields().add(numericFieldStrength);
chart1.getSeries().get(0).getBindings().setY(numericFieldStrength);
NumericDataField numericFieldPE = new NumericDataField();
numericFieldPE.setDataPath("PE");
chart1.getDataSourceSettings().getDataFields().add(numericFieldPE);
chart1.getSeries().get(1).getBindings().setY(numericFieldPE);
StringDataField stringFieldMonth = new StringDataField();
stringFieldMonth.setDataPath("Symbol");
chart1.getDataSourceSettings().getDataFields().add(stringFieldMonth);
chart1.getAxisX().getBindings().setLabel(stringFieldMonth);
}
public static void PopulateCompanyDataBubble(Chart chart1) {
CompanyDataBubble[] companyData = new CompanyDataBubble[]{
new CompanyDataBubble("DODC", 0.97, 85, 39),
new CompanyDataBubble("HPLA", 0.75, 74, 54),
new CompanyDataBubble("FSTW", 0.73, 74, 23),
new CompanyDataBubble("HYSL", 0.83, 72, 55),
new CompanyDataBubble("COOG", 0.82, 68, 52),
new CompanyDataBubble("JDEC", 0.64, 68, 37),
new CompanyDataBubble("OTEX", 0.65, 65, 22),
new CompanyDataBubble("NTIQ", 0.52, 60, 24),
new CompanyDataBubble("OOGN", 0.59, 58, 39),
new CompanyDataBubble("ORCL", 0.54, 58, 65),
new CompanyDataBubble("SY", 0.71, 58, 7),
new CompanyDataBubble("PRGS", 0.69, 57, 19),
new CompanyDataBubble("TALX", 0.34, 54, 16),
new CompanyDataBubble("TTS", 0.38, 54, 4),
new CompanyDataBubble("PRSE", 0.44, 50, 6),
new CompanyDataBubble("BCBJ", 0.37, 48, 0),
new CompanyDataBubble("DCTM", 0.53, 46, 67),
new CompanyDataBubble("ULCM", 0.31, 44, 71),
new CompanyDataBubble("MERQ", 0.56, 43, 38),
new CompanyDataBubble("ATRS", 0.78, 42, 0),
new CompanyDataBubble("JDAS", 0.34, 41, 32),
new CompanyDataBubble("SAP", 0.48, 40, 11),
new CompanyDataBubble("VRTY", 0.49, 39, 80),
new CompanyDataBubble("PSFT", 0.38, 38, 42),
new CompanyDataBubble("SRNA", 0.35, 36, 39),
new CompanyDataBubble("SPSS", 0.58, 36, 18),
new CompanyDataBubble("QSFT", 0.32, 35, 68),
new CompanyDataBubble("PTEC", 0.51, 34, 10),
new CompanyDataBubble("BMC", 0.58, 32, 37),
new CompanyDataBubble("CTXS", 0.16, 32, 9),
new CompanyDataBubble("PDFS", 0.22, 31, 18),
new CompanyDataBubble("MRCL", 0.3, 30, 22),
new CompanyDataBubble("CA", 0.24, 30, 33),
new CompanyDataBubble("VRTS", 0.36, 29, 12),
new CompanyDataBubble("TIBX", 0.31, 28, 6),
new CompanyDataBubble("LTBG", 0.47, 23, 18),
new CompanyDataBubble("RATL", 0.26, 23, 23),
new CompanyDataBubble("SEBL", 0.23, 19, 15),
new CompanyDataBubble("LWSN", 0.27, 16, 13)
};
ObjectProvider objProvider = new ObjectProvider(companyData);
chart1.getDataSourceSettings().setDataSource(objProvider);
DataFieldCollection dataFieldCollection = chart1.getDataSourceSettings().getDataFields();
StringDataField dfSymbol = new StringDataField();
dfSymbol.setDataPath("Symbol");
NumericDataField dfStrength = new NumericDataField();
dfStrength.setDataPath("Strength");
NumericDataField dfRank = new NumericDataField();
dfRank.setDataPath("Rank");
NumericDataField dfPE = new NumericDataField();
dfPE.setDataPath("PE");
dataFieldCollection.add(dfSymbol);
dataFieldCollection.add(dfStrength);
dataFieldCollection.add(dfRank);
dataFieldCollection.add(dfPE);
chart1.getData().setSeries(2);
SeriesBindings series0Bindings = chart1.getSeries().get(0).getBindings();
SeriesBindings series1Bindings = chart1.getSeries().get(1).getBindings();
series0Bindings.setX(dfStrength);
series1Bindings.setX(dfStrength);
series0Bindings.setY(dfRank);
series1Bindings.setY(dfPE);
chart1.getDataSourceSettings().readData();
}
public static class CompanyDataBubble {
public CompanyDataBubble(String symbol, double strengh, double rank, double pe) {
this.setSymbol(symbol);
this.setStrength(strengh);
this.setRank(rank);
this.setPE(pe);
}
private String privateSymbol;
public final String getSymbol() {
return privateSymbol;
}
public final void setSymbol(String value) {
privateSymbol = value;
}
private double privateStrength;
public final double getStrength() {
return privateStrength;
}
public final void setStrength(double value) {
privateStrength = value;
}
private double privateRank;
public final double getRank() {
return privateRank;
}
public final void setRank(double value) {
privateRank = value;
}
private double privatePE;
public final double getPE() {
return privatePE;
}
public final void setPE(double value) {
privatePE = value;
}
}
value - public boolean isVisible()
chart1.getPanes().get(1).setVisible(false);
resetVisiblepublic void setVisible(boolean value)
chart1.getPanes().get(1).setVisible(false);
value - resetVisiblepublic void resetBackColor()
setBackColorpublic void resetProportion()
setProportionpublic void resetSeparation()
setSeparationpublic void resetVisible()
isVisible2014 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.