Chart with no Editor (print size)

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
stepand76
Newbie
Newbie
Posts: 6
Joined: Thu Dec 21, 2006 12:00 am

Chart with no Editor (print size)

Post by stepand76 » Fri Nov 09, 2007 8:13 am

Hi there, we are using TeeChart For Java in a Java Web Start Application. It is working perfectly, but problem is the print size of the library. 2MB is too much. My question is how to reduce th e size? For example how to remove the Editor (we doesn't use it)? Thank you.

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Nov 13, 2007 9:21 am

Hello,

You could remove the Editor folder and sub folders from the TeeChart Java sources and recompile the Jar. It should function correctly, with no active calls to the Editors.

Regards,
Marc Meumann
Steema Support

stepand76
Newbie
Newbie
Posts: 6
Joined: Thu Dec 21, 2006 12:00 am

Post by stepand76 » Tue Nov 13, 2007 2:43 pm

Marc wrote:Hello,

You could remove the Editor folder and sub folders from the TeeChart Java sources and recompile the Jar. It should function correctly, with no active calls to the Editors.

Regards,
Marc Meumann
Hi Marc, thank you for answer. Have you tried this? I cannot compile teechart package without "editors" folder :(

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Wed Nov 14, 2007 10:45 am

Hello,

Yes sorry, my reply was too simplistic. There are other areas of the code where removal of the Editor code will have a knock-on effect requiring more attention to detail on removal of the folder. It's not a lengthy task though as the places affected are limited.
  • When removing the editors folder, if you wish to continue to use the Commander Component (without Editor facilities) leave the editors\images folder in place.

    Main units affected are Series units (teechart\styles).
    In all Series units where editors.gallery.Gallery is referenced:
    Remove/comment references to:
    import com.steema.teechart.editors.gallery.Gallery;
    Remove/comment the method: createSubGallery

    Other files:
    DataExportFormat.java
    Remove/comment reference to:
    import com.steema.teechart.editors.Utils
    and subsequent call to Utils.YesNo

    For:
    Commander.java
    TChartApplet.java
    TChart.java
    Remove/comment reference to:
    import com.steema.teechart.editors.(..etc..)
    In each unit remove/comment calls to open Editors

    TChartBeanInfo.java
    Remove/comment reference to:
    import com.steema.teechart.editors.(..etc..)
    Remove/comment _tools.setPropertyEditorClass(ToolsPropertyEditor.class);
    Remove/comment method: getBeanDescriptor()
    Remove/comment entire class: ToolsPropertyEditor
That's it! That will enable use of TeeChart without Editors. It's tested here to confirm correct functioning. Although these modifications should be considered as non-supported we would not expect them to cause any problem beyond the non-availability of the Editor dialogues (caveat on non-availability too of BeanDescriptor).

Regards,
Marc
Steema Support

stepand76
Newbie
Newbie
Posts: 6
Joined: Thu Dec 21, 2006 12:00 am

Post by stepand76 » Wed Nov 14, 2007 3:51 pm

Hi Marc, thank you for detlailed instructions provided. I don't know if I use it, because of it require repeat these steps on each TeeChart update...
Are you (steema) planning to make some lite version of TeeChart For Java (no editor, no comander, no more languages)? Thanks.

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Wed Nov 14, 2007 4:31 pm

Hello,

There are no current plans for a light version but we'll add it as a wish for discussion here.

Regards,
Marc
Steema Support

Post Reply