Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public interface LegendListener

Notified when the user taps a legend entry, whether or not the tap toggled the series (see Chart#setLegendToggles(boolean)).

Methods

public abstract void legendTapped(Chart chart, Series series, int entry)Called on the EDT after a legend tap, once any toggle has been applied.

Method details

legendTapped

public abstract void legendTapped(Chart chart, Series series, int entry)
Called on the EDT after a legend tap, once any toggle has been applied.

Parameters

chart Chart
the chart
series Series
the series the entry belongs to
entry int
the entry within the series; a pie or funnel lists one per slice, other series list one, entry 0