This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


May 4, 2016, 2:51 PM
2 Posts
topic has been resolvedResolved

Overriding a Java Class in an Imported Jar

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 1

I am using JFreeChart in a java agent to create charts in my code but one of the limitations of this chart is that the labels that it generates are cut off if they are longer than the width bounds of the chart itself.

Looking at the below post, someone has created an override function for the drawLabel which detects the bounds and creates wrapped labels.

http://www.jfree.org/phpBB2/viewtopic.php?p=69579&highlight=

My question to you Java guys is how do I go about adding this override function to my code in order to get it to work.

Basically I am unsure where to place this function in order for it to be included and recognised as the function to use when running.

@Override
   protected void drawLabel(Graphics2D g2, Rectangle2D plotArea, double value, int cat, double startAngle, double extent) {}

etc....

My code takes the form of a standard Notes Java agent with the usual public void NotesMain() {

Are there any tutorials or articles that show how to override an imported Jar's function whilst using a standard Domino Java Agent.

Any help is appreciated.

Cheers

 

Aug 31, 2016, 8:44 PM
19 Posts
Generate chart by calling Print Merge Reporter developer tool from an agent

Well, I know this is not a direct answer, but an alternative solution... You can dowload the developer tool below which can be called from a Notes agent to generate a chart for a Notes client or web client user.  The latest 2015 version has a new interface and the chart reports generate over 90% faster for Notes and web client users than the previous version.

 

Print Merge Reporter for IBM Notes - Mail merge, printing and reporting tool

        • Mail merge Excel, contacts, barcodes and Notes app data to email or printer using Notes, iNotes, web
        • Generate charts and reports to Word, Excel, and PDF format using Notes, web
        • Export Notes app and Contacts data to Excel

 

Web client charting:  It supports all web browser clients on Windows and Mac desktops.  It requires a Domino Windows server with an Excel installation.

 

Requirements:  Charting

Desktop platforms:        Windows 10/8/7/Vista/XP, Mac OS X/9
Desktop software:         Notes 9/8/7 and Excel 2016/2013/2010/2007/2004/2003 [or]

Web client and Excel 2016/2013/2010/2007/2004/2003 [or]

Web client and Excel Viewer (free)
Server platforms:           Windows 2016/2012/2008/2003/2000, Linux, IBM i, AIX, Solaris

* Windows server required for web client access
Server software:            Domino 9/8/7, Excel 2016/2013/2010/2007/2003 required for web client access

 

Tags: chart, charting, graph, graphing


Crucial tools for IBM Lotus Notes and Domino administration and development...

Find the "crucial tools you need to succeed" including product descriptions, downloads, demos and testimonials.
Speed up IBM Lotus Notes and Domino administration and development with these crucial software tools.
Better, stronger, faster productivity for administrators and developers.
Download and try the lite (free) version

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal