MATLAB Answers

JFreeChart Pointer for Dialdemo

2 views (last 30 days)
Hi, I want to use JfreeChart in Matlab (http://undocumentedmatlab.com/blog/jfreechart-graphs-and-gauges/#comments). For reconstructing a Dialdemo, I need to construct a Pointer for the needle, Constructor-API is here (http://www.jfree.org/jfreechart/api/javadoc/index.html)
My try is: needle2 = org.jfree.chart.plot.dial.DialPointer.Pointer(java.lang.Integer(0));
The class org.jfree.chart.plot.dial.DialPointer has no property or method named 'Pointer'.
The Javapaath to JFreeChart is also embedded. How can I construct the Pointer without failure?

  0 Comments

Sign in to comment.

Accepted Answer

Yair Altman
Yair Altman on 14 Feb 2011
needle2 = javaObjectEDT('org.jfree.chart.plot.dial.DialPointer$Pointer',0);

  0 Comments

Sign in to comment.

More Answers (1)

Sven Koerner
Sven Koerner on 14 Feb 2011
It works! Many thanks to Altmany!

  0 Comments

Sign in to comment.

Sign in to answer this question.