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 :
- MouseEvent.SHIFT_MASK : This corresponds to the shift key being pressed.
- MouseEvent.CTRL_MASK : This corresponds to the CTRL key being pressed.
- MouseEvent.META_MASK : This corresponds to the right mouse key being pressed.
- MouseEvent.ALT_MASK : This corresponds to the ALT key being pressed.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the enable/disable status of mouse events for date/time based zooming operations.intReturns the mouse click count for jumping back from a hyperlink to the previous chart.intSets the mouse modifier for jumping back from a hyperlink to the previous chart.intReturns the mouse click count for dragging of chart, legend, etc.intReturns the mouse modifier for dragging of chart, legend, etc.intReturns the mouse click count for jumping to a hyperlink associated with a data point.intReturns the mouse modifier for jumping to a hyperlink associated with a data point.intReturns the mouse click count for resizing a canvasintReturns the mouse modifier for starting a canvas resize operation.intReturns the mouse click count for resizing a chartintReturns the mouse modifier for starting a chart resize operation.intReturns the mouse click count for undoing a zooming operationintReturns the mouse modifier for undoing a zooming operation.intReturns the mouse click count for starting a zooming operationintReturns the mouse modifier for starting a zooming operation.booleanReturns true if backward link is enabled.booleanReturns true if dragging of the chart,legend, etc.booleanReturns true if forward link is enabled.booleanReturns true if resizing of the canvas is enabled.booleanReturns true if resizing of the chart is enabled.voidsetBackLinkClickCount(int c) Sets the mouse click count for jumping back from a hyperlink to the previous chart.voidsetBackLinkEnabled(boolean b) Sets the status of the backward link depending on the value of parameter b.voidsetBackLinkModifier(int m) Sets the mouse modifier for jumping back from a hyperlink to the previous chart.voidsetDragClickCount(int c) Returns the mouse click count for dragging of chart, legend, etc.voidsetDragEnabled(boolean b) Sets the status of the dragging of the chart, legend, etc.voidsetDragModifier(int m) Sets the mouse modifier for dragging of chart, legend, etc.voidsetForwardLinkClickCount(int c) Sets the mouse click count for jumping to a hyperlink associated with a data point.voidsetForwardLinkEnabled(boolean b) Sets the status of the foward link depending on the value of parameter b.voidsetForwardLinkModifier(int m) Sets the mouse modifier for jumping to a hyperlink associated with a data point.voidsetResizeCanvasClickCount(int c) Returns the mouse click count for starting a canvas resize operation.voidsetResizeCanvasEnabled(boolean b) Sets the status of the resizing of the canvas depending on the value of parameter b.voidsetResizeCanvasModifier(int m) Sets the mouse modifier for starting a canvas resize operation.voidsetResizeClickCount(int c) Returns the mouse click count for starting a chart resize operation.voidsetResizeEnabled(boolean b) Sets the status of the resizing of the chart depending on the value of parameter b.voidsetResizeModifier(int m) Sets the mouse modifier for starting a chart resize operation.voidsetUndoZoomClickCount(int c) Returns the mouse click count for undoing a zooming operation.voidsetUndoZoomModifier(int m) Sets the mouse modifier for undoing a zoom operation.voidsetZoomClickCount(int c) Returns the mouse click count for starting a zooming operation.voidsetZoomEventsEnabled(boolean b) Enables/Disables handling of mouse events for date/time based zooming operations.voidsetZoomModifier(int m) 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.
-