#336 DrawingSupplier in combined plot

open
nobody
None
6
2007-10-30
2007-09-14
DeMarco17
No

Hi itogether,

if you have a combined chart then the drawing supplier of the combined plot is used in every subplot.
I think there should be a possibility to change this behaviour.
One possibility is to grant the subplot drawing supplier a higher priority (if exists subplot drawing suppiers sre preferred), the other setting the combined plot drawing supplier to null should then consider the drawing supplier of the subplots.

Here is an implementation of the first proposal in class plot.java:
public DrawingSupplier getDrawingSupplier() {
if (this.drawingSupplier!=null)
return this.drawingSupplier;
Plot p = getParent();
if (p != null) {
return p.getDrawingSupplier();
return null;
}

Second one:
public DrawingSupplier getDrawingSupplier() {
DrawingSupplier result = null;
Plot p = getParent();
if (p != null) {
result = p.getDrawingSupplier();
if (result == null)
result = this.drawingSupplier;
return result;
}

I think the first one is a better design approach.
Best regards,
Marco

Discussion

  • DeMarco17

    DeMarco17 - 2007-10-30
    • priority: 5 --> 6
     
  • DeMarco17

    DeMarco17 - 2007-10-30

    Logged In: YES
    user_id=1109919
    Originator: YES

    I change the priority to 6 because without such an implementation there is no easy possibility to have a subplot defined supplier in a combined chart.

     
  • DeMarco17

    DeMarco17 - 2007-10-31

    Logged In: YES
    user_id=1109919
    Originator: YES

    I change the priority to 6 because without such an implementation there is no easy possibility to have a subplot defined supplier in a combined chart.

     
  • DeMarco17

    DeMarco17 - 2007-10-31

    Logged In: YES
    user_id=1109919
    Originator: YES

    sorry! duplicate post because of a browser reload.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks