Hi,
You can use
JSNI and use almost the same code you paste.
The "p" variable is the plot. You can obtain it via SimplePlot.getPlot().
The "$" variable is not directly accessible. You can obtain it in JSNI with $wnd.jQuery.
Your code will then look similar to :
public final native void showLabels( Plot p )
/*-{
$wnd.jQuery.each(p.getData()[0].data, function(i, el){
I didn't tested it but it should work.
You can also do the same in Java. Since you have access to the plot through the Plot class, you can also retrieve the data with Plot.getData() and iterate over them.
The placeholder is the SimplePlot.getElement(). The only thing missing in Java is the pointOffset method but you can call it with JSNI.