Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: Coloured stripes

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default Coloured stripes

    I see that it is possible to define a background color for a whole band.
    Is it also possilbe to create the kind of coloured stripes as background as is done in this forum, and if so, how do you do it?

    Thanks in advance,
    Marc

  2. #2
    Join Date
    Mar 2003
    Posts
    4,947

    Default Re: Coloured stripes

    Hi,

    a very simple form of such stripes can be created using the ElementVisibilitySwitchFunction to trigger the painting of the background every other line. The effect of this function is limited to switch an element on or off, but using this functions sources as example, it should not be difficult to create any desired effect.

    For an example of this function have a look at the demo applications Report1.xml (in the demo "Example 1").

    Have more fun,
    said Thomas

  3. #3
    Join Date
    Mar 2003
    Posts
    4,947

    Default Re: Coloured stripes

    Without wanting to be pedantic, but the classname has a typo
    (didn't see why I got that ClassNotFound exception for some time :-)

  4. #4
    Join Date
    Mar 2003
    Posts
    4,947

    Default Re: Coloured stripes

    Hi,

    you are right (almost). The classname is misspelled in previous versions, there you have to use ElementVisiblitySwitchFunction, but the current version has this corrected, and in the cvs the function is now called ElementVisibilitySwitchFunction.

    Sorry for that inconvinience, but better to chop the tree while it is small instead of letting it grow and having a hard time later.

    Have more fun,
    said Thomas

  5. #5
    Join Date
    Mar 2003
    Posts
    4,947

    Default Re: Coloured stripes

    Totally agreed

  6. #6

    Default

    Hi Thomas

    You have mentioned earlier in one of your post about the demo application

    "For an example of this function have a look at the demo applications Report1.xml (in the demo "Example 1")."""""

    where are these demo files???????????

    I am using the report designer v1.6

    Thanks
    ilikepentaho

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.