Package quadbase.util

Interface IMouseEventSet


public interface IMouseEventSet
This interface is used to customize modifiers and clicks for performing common mouse operations like dragging and resizing of a chart, hyperlinks, zooming, etc.

The mouse modifier is an integer comprising one or more of the following masks :

  1. MouseEvent.SHIFT_MASK : This corresponds to the shift key being pressed.
  2. MouseEvent.CTRL_MASK : This corresponds to the CTRL key being pressed.
  3. MouseEvent.META_MASK : This corresponds to the right mouse key being pressed.
  4. MouseEvent.ALT_MASK : This corresponds to the ALT key being pressed.
Note : The mouse event customization is not persistent, and must be set each time a chart is loaded.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the enable/disable status of mouse events for date/time based zooming operations.
    int
    Returns the mouse click count for jumping back from a hyperlink to the previous chart.
    int
    Sets the mouse modifier for jumping back from a hyperlink to the previous chart.
    int
    Returns the mouse click count for dragging of chart, legend, etc.
    int
    Returns the mouse modifier for dragging of chart, legend, etc.
    int
    Returns the mouse click count for jumping to a hyperlink associated with a data point.
    int
    Returns the mouse modifier for jumping to a hyperlink associated with a data point.
    int
    Returns the mouse click count for resizing a canvas
    int
    Returns the mouse modifier for starting a canvas resize operation.
    int
    Returns the mouse click count for resizing a chart
    int
    Returns the mouse modifier for starting a chart resize operation.
    int
    Returns the mouse click count for undoing a zooming operation
    int
    Returns the mouse modifier for undoing a zooming operation.
    int
    Returns the mouse click count for starting a zooming operation
    int
    Returns the mouse modifier for starting a zooming operation.
    boolean
    Returns true if backward link is enabled.
    boolean
    Returns true if dragging of the chart,legend, etc.
    boolean
    Returns true if forward link is enabled.
    boolean
    Returns true if resizing of the canvas is enabled.
    boolean
    Returns true if resizing of the chart is enabled.
    void
    Sets the mouse click count for jumping back from a hyperlink to the previous chart.
    void
    setBackLinkEnabled(boolean b)
    Sets the status of the backward link depending on the value of parameter b.
    void
    Sets the mouse modifier for jumping back from a hyperlink to the previous chart.
    void
    Returns the mouse click count for dragging of chart, legend, etc.
    void
    setDragEnabled(boolean b)
    Sets the status of the dragging of the chart, legend, etc.
    void
    Sets the mouse modifier for dragging of chart, legend, etc.
    void
    Sets the mouse click count for jumping to a hyperlink associated with a data point.
    void
    Sets the status of the foward link depending on the value of parameter b.
    void
    Sets the mouse modifier for jumping to a hyperlink associated with a data point.
    void
    Returns the mouse click count for starting a canvas resize operation.
    void
    Sets the status of the resizing of the canvas depending on the value of parameter b.
    void
    Sets the mouse modifier for starting a canvas resize operation.
    void
    Returns the mouse click count for starting a chart resize operation.
    void
    setResizeEnabled(boolean b)
    Sets the status of the resizing of the chart depending on the value of parameter b.
    void
    Sets the mouse modifier for starting a chart resize operation.
    void
    Returns the mouse click count for undoing a zooming operation.
    void
    Sets the mouse modifier for undoing a zoom operation.
    void
    Returns the mouse click count for starting a zooming operation.
    void
    Enables/Disables handling of mouse events for date/time based zooming operations.
    void
    Sets the mouse modifier for starting a zooming operation.
  • Method Details

    • isDragEnabled

      boolean isDragEnabled()
      Returns true if dragging of the chart,legend, etc. is enabled.
    • setDragEnabled

      void setDragEnabled(boolean b)
      Sets the status of the dragging of the chart, legend, etc. depending on the value of parameter b.
      See Also:
    • getDragModifier

      int getDragModifier()
      Returns the mouse modifier for dragging of chart, legend, etc.
    • setDragModifier

      void setDragModifier(int m)
      Sets the mouse modifier for dragging of chart, legend, etc. The default modifier is 0 (left mouse button).
    • getDragClickCount

      int getDragClickCount()
      Returns the mouse click count for dragging of chart, legend, etc.
    • setDragClickCount

      void setDragClickCount(int c)
      Returns the mouse click count for dragging of chart, legend, etc. Setting the click count to 0 disables the operation.
    • isResizeEnabled

      boolean isResizeEnabled()
      Returns true if resizing of the chart is enabled.
    • setResizeEnabled

      void setResizeEnabled(boolean b)
      Sets the status of the resizing of the chart depending on the value of parameter b.
      See Also:
    • getResizeModifier

      int getResizeModifier()
      Returns the mouse modifier for starting a chart resize operation.
    • setResizeModifier

      void setResizeModifier(int m)
      Sets the mouse modifier for starting a chart resize operation. The default modifier is MouseEvent.META_MASK (right mouse button).
    • getResizeClickCount

      int getResizeClickCount()
      Returns the mouse click count for resizing a chart
    • setResizeClickCount

      void setResizeClickCount(int c)
      Returns the mouse click count for starting a chart resize operation. The default click count is 1. Setting the value to 0 disables the operation.
    • isResizeCanvasEnabled

      boolean isResizeCanvasEnabled()
      Returns true if resizing of the canvas is enabled.
    • setResizeCanvasEnabled

      void setResizeCanvasEnabled(boolean b)
      Sets the status of the resizing of the canvas depending on the value of parameter b.
      See Also:
    • getResizeCanvasModifier

      int getResizeCanvasModifier()
      Returns the mouse modifier for starting a canvas resize operation.
    • setResizeCanvasModifier

      void setResizeCanvasModifier(int m)
      Sets the mouse modifier for starting a canvas resize operation. Sets the mouse modifier for starting a chart resize operation. The default modifier is MouseEvent.META_MASK | MouseEvent.ALT_MASK
    • getResizeCanvasClickCount

      int getResizeCanvasClickCount()
      Returns the mouse click count for resizing a canvas
    • setResizeCanvasClickCount

      void setResizeCanvasClickCount(int c)
      Returns the mouse click count for starting a canvas resize operation. The default click count is 1. Setting the value to 0 disables the operation.
    • isForwardLinkEnabled

      boolean isForwardLinkEnabled()
      Returns true if forward link is enabled.
    • setForwardLinkEnabled

      void setForwardLinkEnabled(boolean b)
      Sets the status of the foward link depending on the value of parameter b.
    • getForwardLinkModifier

      int getForwardLinkModifier()
      Returns the mouse modifier for jumping to a hyperlink associated with a data point.
    • setForwardLinkModifier

      void setForwardLinkModifier(int m)
      Sets the mouse modifier for jumping to a hyperlink associated with a data point. The default modifier is 0 (left mouse button).
    • getForwardLinkClickCount

      int getForwardLinkClickCount()
      Returns the mouse click count for jumping to a hyperlink associated with a data point.
    • setForwardLinkClickCount

      void setForwardLinkClickCount(int c)
      Sets the mouse click count for jumping to a hyperlink associated with a data point. The default click count is 2. Setting the value to 0 disables the operation.
    • isBackLinkEnabled

      boolean isBackLinkEnabled()
      Returns true if backward link is enabled.
    • setBackLinkEnabled

      void setBackLinkEnabled(boolean b)
      Sets the status of the backward link depending on the value of parameter b.
    • getBackLinkModifier

      int getBackLinkModifier()
      Sets the mouse modifier for jumping back from a hyperlink to the previous chart. The default modifier is 0 (left mouse button).
    • setBackLinkModifier

      void setBackLinkModifier(int m)
      Sets the mouse modifier for jumping back from a hyperlink to the previous chart. The default modifier is MouseEvent.META_MASK (right mouse button).
    • getBackLinkClickCount

      int getBackLinkClickCount()
      Returns the mouse click count for jumping back from a hyperlink to the previous chart.
    • setBackLinkClickCount

      void setBackLinkClickCount(int c)
      Sets the mouse click count for jumping back from a hyperlink to the previous chart. The default click count is 2. Setting the value to 0 disables the operation.
    • areZoomEventsEnabled

      boolean areZoomEventsEnabled()
      Returns the enable/disable status of mouse events for date/time based zooming operations.
      Returns:
      true if handling of user mouse/key events for date/time based zooming is enabled, false otherwise.
    • setZoomEventsEnabled

      void setZoomEventsEnabled(boolean b)
      Enables/Disables handling of mouse events for date/time based zooming operations.
      Parameters:
      b - set to true to enable handling of user mouse/key events for date/time based zooming.
    • getZoomModifier

      int getZoomModifier()
      Returns the mouse modifier for starting a zooming operation.
    • setZoomModifier

      void setZoomModifier(int m)
      Sets the mouse modifier for starting a zooming operation. The default modifier is MouseEvent.CTRL_MASK.
    • getZoomClickCount

      int getZoomClickCount()
      Returns the mouse click count for starting a zooming operation
    • setZoomClickCount

      void setZoomClickCount(int c)
      Returns the mouse click count for starting a zooming operation. Setting the click count to 0 disables the operation.
    • getUndoZoomModifier

      int getUndoZoomModifier()
      Returns the mouse modifier for undoing a zooming operation.
    • setUndoZoomModifier

      void setUndoZoomModifier(int m)
      Sets the mouse modifier for undoing a zoom operation. The default modifier is MouseEvent.CTRL_MASK.
    • getUndoZoomClickCount

      int getUndoZoomClickCount()
      Returns the mouse click count for undoing a zooming operation
    • setUndoZoomClickCount

      void setUndoZoomClickCount(int c)
      Returns the mouse click count for undoing a zooming operation. Setting the click count to 0 disables the operation.