![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Almost no field is copied when cloning descendants of Series | ||
|---|---|---|---|
| Product: | Java TeeChart | Reporter: | alex |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | marc, sandra, yeray |
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | Test case for Bar series | ||
|
Description
alex
2015-10-12 09:07:11 EDT
Created attachment 517 [details]
Test case for Bar series
This test case shows that a clonned serie doesn't copy settings from its original.
Please note that there is a lot of such fields which aren't copied and it is not limited to the Bar class. That's why fixing only these three won't help at all but writing a test case for all cases is too much. Because it's almost every field in almost every subclass of Series.
The simple code below reproduces the problem:
public static void initializeChart()
{
tChart1.getAspect().setView3D(false);
tChart1.getLegend().setVisible(false);
Bar bar = new Bar(tChart1.getChart());
Bar bar1 = new Bar(tChart1.getChart());
bar.setBarWidthPercent(100);
bar.add(77);
bar.add(66);
bar.add(33);
bar.setColor(Color.red);
bar1 = (Bar) bar.cloneSeries();
}
Extensive assign modifications made for next maintenance release |