#235 CategoryItemRenderers and invisible series, extension

open
None
8
2009-01-23
2009-01-15
Peter Kolb
No

Extension to patch 2497611.
Changes to StackedAreaRender, BoxAndWhiskerRenderer and StackedBarRenderer: invisible series are not drawn and are not taken into account for the calculation of the "size per row".
Change to StatisticalBarRenderer: now draws its bars using a BarPainter
Change to DataUtilities: new method calculateColumnTotal(Values2D data, int column,int[] validRows) (required for proper treatment of hidden series in StackedBarRenderer if it renders as percentage).
Change to CategoryItemRendererState: new method public int[] getVisibleRowsArray(): returns an array with the indices of the visible series.
Also included are the following changes:
Additional CategoryAnchor.BETWEEN to draw grid lines centered between columns.
Changed to CategoryAxis. getCategoryJava2DCoordinate( CategoryAnchor anchor,int category,int categoryCount,Rectangle2D area,RectangleEdge edge): can handle CategoryAnchor.BETWEEN.

Discussion

  • Peter Kolb

    Peter Kolb - 2009-01-21

    Extended patch.
    Change to LevelRenderer: now handles invisible series as the others.
    Changes to LayeredBarRenderer: handles invisible series, draws bars using the BarPainter and has an additional flag useAutoBarWidths that calculates reasonable bar widths based on the visible series (LayeredBarRenderer w/o setting any bar widths manually didn´t give good results).
    Change to BarRenderer: additional private static flag defaultShadowsVisible that is used to set the non-static shadowsVisible flag in the constructor. If this static flag is set to false, all BarRenderer instances will be created w/o shadows (pre 1.0.11 behaviour is much easier to restore)
    Change to StatisticalLineAndShapeRenderer: corrected bug for drawing shapes (drawing of filled and outlined shapes was mutually exclusive)
    File Added: CategorySeriesVisibility.diff

     
  • David Gilbert

    David Gilbert - 2009-01-23
    • priority: 5 --> 8
    • assigned_to: nobody --> mungady
     
  • David Gilbert

    David Gilbert - 2009-01-23

    Thanks for your contribution! I'm going to work through this one piece by piece and I'll post updates as I go.

     
  • David Gilbert

    David Gilbert - 2009-01-23

    First piece done: I committed the changes to LevelRenderer for inclusion in the 1.0.13 release. I noticed that the width of the level lines wasn't updating when some series are hidden, but I made a small change to fix that. On to the next bit...

     
  • David Gilbert

    David Gilbert - 2009-01-23

    I've now applied the bug fix for the StatisticalLineAndShapeRenderer. While looking at that, I noticed a separate bug - the renderer makes two passes (inherited from LineAndShapeRenderer) but draws everything in both passes. I'll put together a fix for that.

     
  • David Gilbert

    David Gilbert - 2009-02-03

    I've now added the defaultShadowsVisible flag to the BarRenderer class. I also added the same to the XYBarRenderer class.

     
  • David Gilbert

    David Gilbert - 2009-02-04

    StackedAreaRenderer is done now.

     
  • David Gilbert

    David Gilbert - 2009-02-04

    StackedBarRenderer is done...for this one, I also added your new method in the DataUtilities class.

     
  • David Gilbert

    David Gilbert - 2009-02-04

    StackedBarRenderer3D is done (this one wasn't in the patch).

     

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