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= 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