Page 1 of 1

Chart with no Editor (print size)

Posted: Fri Nov 09, 2007 8:13 am
by 7662446
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.

Posted: Tue Nov 13, 2007 9:21 am
by Marc
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

Posted: Tue Nov 13, 2007 2:43 pm
by 7662446
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 :(

Posted: Wed Nov 14, 2007 10:45 am
by Marc
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

Posted: Wed Nov 14, 2007 3:51 pm
by 7662446
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.

Posted: Wed Nov 14, 2007 4:31 pm
by Marc
Hello,

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

Regards,
Marc