Page 1 of 1

Programmatic control of Editor Components

Posted: Tue Oct 30, 2007 10:01 am
by 7665742
Hi:

We are trying to do the following programmatically. How can we access these parameters? Thanks.

From Editor panel -

1. Go to edit and select General under chart
2. Select zoom
3. set border to visible, width 0 and select color as blue
4. Now select pattern and set visible and select lightblue from swatches

Can we set these parameters?

best regards,

Posted: Tue Oct 30, 2007 11:40 am
by narcis
Hi cdn,

Yes, you can do something like this:

Code: Select all

                tChart.getZoom().getPen().setVisible(true);
                tChart.getZoom().getPen().setWidth(0);
                tChart.getZoom().getPen().setColor(Color.BLUE);
                
                tChart.getZoom().getBrush().setVisible(true);
                tChart.getZoom().getBrush().setColor(Color.CYAN);

Posted: Tue Nov 13, 2007 8:32 am
by 7665742
Hi:

Associated question -

How can we disable orthogonal property, programmatically? We are using the following snippet to set the property to "false". But, when we check the editor it always shows it as "checked".

Code: Select all

        Aspect asp = new Aspect(tChart2.getChart());
        asp.setOrthogonal(false);
Any input is welcome. Thanks.

best regards,

Posted: Tue Nov 13, 2007 10:58 am
by narcis
Hi cdn,

Works fine here using this:

Code: Select all

                tChart.getAspect().setOrthogonal(false);

Posted: Tue Nov 13, 2007 11:21 am
by 7665742
Hi:

Hmm... interesting. Your code works.... But, the way we tried to set the orthogonal to "false" does not work. Is that the proper behavior? Anyways, we changed the code along your example. Thanks.

best regards,