MouseModuleScore
Package: velox.api.layer1.layers.strategies.interfaces
Type: Enum
Inheritance:
java.lang.Objectjava.lang.Enum<MouseModuleScore>MouseModuleScore
All Implemented Interfaces: Serializable, Comparable<MouseModuleScore>, Constable
Description​
Helper scores for values returned from CanvasMouseListener.getEventScore(velox.api.layer1.layers.strategies.interfaces.CanvasMouseEvent) and CanvasContextMenuProvider.getRightClickEventScore(velox.api.layer1.layers.strategies.interfaces.CanvasMouseEvent). These scores allow your module to have higher priority than a certain part of Bookmap.
See Also:
CanvasMouseListener.getEventScore(velox.api.layer1.layers.strategies.interfaces.CanvasMouseEvent)CanvasContextMenuProvider.getRightClickEventScore(velox.api.layer1.layers.strategies.interfaces.CanvasMouseEvent)
Enum Constants​
MAX​
public static final MouseModuleScore MAX
Max possible score for 3-rd party modules
TRADING_CLICK​
public static final MouseModuleScore TRADING_CLICK
Max score for click in trading area (right of timeline)
GRAPH_LAYERS_MODULES_MAX​
public static final MouseModuleScore GRAPH_LAYERS_MODULES_MAX
Max score for Bookmap-rendered layers on chart, such as trade circles, candlesticks, indicator lines, icons, BBO, vwap
GRAPH_LAYERS_MODULES_MIN​
public static final MouseModuleScore GRAPH_LAYERS_MODULES_MIN
CHART_DRAG​
public static final MouseModuleScore CHART_DRAG
Max score for entering the drag mode
MIN​
public static final MouseModuleScore MIN
NONE​
public static final MouseModuleScore NONE
Respond with this score if you are not interested in this event
Fields​
score​
public final int score
Methods​
values​
public static MouseModuleScore[] values()
Returns an array containing the constants of this enum class, in the order they are declared.
Returns: an array containing the constants of this enum class, in the order they are declared
valueOf​
public static MouseModuleScore valueOf(String name)
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
Parameters:
name- the name of the enum constant to be returned
Returns: the enum constant with the specified name
Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null