--- old/application/org.openjdk.jmc.ui/src/main/java/org/openjdk/jmc/ui/charts/IChartInfoVisitor.java 2019-04-17 12:21:12.244422083 -0400 +++ new/application/org.openjdk.jmc.ui/src/main/java/org/openjdk/jmc/ui/charts/IChartInfoVisitor.java 2019-04-17 12:21:12.172421280 -0400 @@ -40,7 +40,7 @@ /** * Visitor interface to gather information about values displayed in charts, typically in the - * vicinity of some coordinates. Suitable for tooltips, highlighting or snapping. + * vicinity of some coordinates. Suitable for tooltips, highlighting, hovering or snapping. */ public interface IChartInfoVisitor { public abstract class Adapter implements IChartInfoVisitor { @@ -55,6 +55,10 @@ } @Override + public void hover(Object data) { + } + + @Override public void visit(IBucket bucket) { } @@ -174,6 +178,16 @@ void leaveScope(); /** + * Deliver supplementary information about the hovered rendered item to the Visitor. + *

+ * To be used in conjunction with an rendered item's {@code infoAt()} to + * deliver supplementary information about the currently hovered object to the Visitor. + * + * @param data + */ + void hover(Object data); + + /** * Visit a bucket in a histogram. *

* Note that the provided {@link IBucket} instance may be reused and thus cannot be directly