Programmatic control of Editor Components

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
cdn
Newbie
Newbie
Posts: 29
Joined: Wed Sep 19, 2007 12:00 am

Programmatic control of Editor Components

Post by cdn » Tue Oct 30, 2007 10:01 am

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,

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Oct 30, 2007 11:40 am

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);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

cdn
Newbie
Newbie
Posts: 29
Joined: Wed Sep 19, 2007 12:00 am

Post by cdn » Tue Nov 13, 2007 8:32 am

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,

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 13, 2007 10:58 am

Hi cdn,

Works fine here using this:

Code: Select all

                tChart.getAspect().setOrthogonal(false);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

cdn
Newbie
Newbie
Posts: 29
Joined: Wed Sep 19, 2007 12:00 am

Post by cdn » Tue Nov 13, 2007 11:21 am

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,

Post Reply