Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Shadowing and lighting in FacetChart

    I am using SmartClient Version: v10.0p_2015-08-20/PowerEdition Deployment (built 2015-08-20) and FireFox ESR 24.3.0.

    I'm developing Pie chart and Column chart, and want to change shadowing and lighting of the charts.

    Following is a sample codes what I tried to test.

    ---------------------------------------------------
    FacetChart pieChart = new FacetChat();
    ...
    DrawSector pieSliceProperties = pieChart.getPieSliceProperties();

    /* Change shadowing */
    Shadow shadow = new Shadow();
    shadow.setBlur(10);
    pieSliceProperties.setShadow(shadow);

    /* Change lighting */
    SimpleGradient fillGradient = new SimpleGradient();
    fillGradient.setDirection(45.0f);
    fillGradient.setStartColor("#000000");
    fillGradient.setEndColor("#ffffff");
    pieSliceProperties.setFillGradient( fillGradient );

    pieChart.setPieSliceProperties( pieSliceProperties );
    ...
    pieChart.draw();
    ---------------------------------------------------

    However, above codes didn't work.
    Would you please advise me what I have to do?

    Regards,
    Ted.

    #2
    Shadowing doesn't change using 'setBlur()' function as I mentioned through above sample codes.
    Please take a look at the attachment.
    Attached Files

    Comment


      #3
      Lighting also doesn't change using 'SimpleGradient' class as I mentioned through above sample codes.
      Please take a look at the attachment.
      Attached Files

      Comment

      Working...
      X