Class ZoomContext


  • public final class ZoomContext
    extends ChartContext
    The callback or handler context, created and passed by ZoomPlugin.ID which contains the link to the native chart and the event.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getPoint

        public EventPoint getPoint()
        Returns the position of the event when pan or zoom are about to start.
        Returns:
        the position of the event when pan or zoom are about to start
      • isConsistent

        protected boolean isConsistent()
        Description copied from class: ChartContext
        Returns true if the context is consistent.
        Custom context (the plugin ones) should extend it and check if the context is consistent before invoking the callback.
        Overrides:
        isConsistent in class ChartContext
        Returns:
        true if the context is consistent
      • checkIfPropertyIsValid

        protected boolean checkIfPropertyIsValid​(Key property)
        Description copied from class: ChartContext
        Checks if the key passed as argument is a key already used for other context properties.
        Overrides:
        checkIfPropertyIsValid in class ChartContext
        Parameters:
        property - property to use to store a custom attribute
        Returns:
        true if the property can be used to store an attribute.