Holds the current marker color.
Specifies if the marker is enabled. Default is true.
Holds the event names and associated listeners in an array. The array contains the event name followed by the respective listener for each registered listener.
Specifies if events can be fired. Default is true.
Optional source for events. Default is null.
Reference to the enclosing Graph.
Specifies the portion of the width and height that should trigger a highlight. The area around the center of the cell to be marked is used as the hotspot. Possible values are between 0 and 1. Default is mxConstants.DEFAULT_HOTSPOT.
Specifies if the hotspot is enabled. Default is false.
Holds the invalid marker color.
Holds the marked
Holds the valid marker color.
Holds the marked
Binds the specified function to the given event name. If no event name is given, then the listener is registered for all events.
The parameters of the listener are the sender and an EventObject.
Dispatches the given event to the listeners which are registered for the event. The sender argument is optional. The current execution scope ("this") is used for the listener invocation (see Utils#bind).
Example:
fireEvent(new mxEventObject("eventName", key1, val1, .., keyN, valN))
EventObject that represents the event.
Optional sender to be passed to the listener. Default value is
the return value of
Returns the valid- or invalidColor depending on the value of isValid.
The given
Returns true if the given coordinate pair intersects the given state.
This returns true if the
Returns true if the given
Marks the given cell using the given color, or
Processes the given event and cell and marks the state returned by
Sets and marks the current valid state.
Optional
color: string
A helper class to process mouse locations and highlight cells.
Helper class to highlight cells. To add a cell marker to an existing graph for highlighting all cells, the following code is used:
Event: mxEvent.MARK
Fires after a cell has been marked or unmarked. The or null if no state is marked.
state
property contains the markedConstructor: mxCellMarker
Constructs a new cell marker.
Param: graph
Reference to the enclosing Graph.
Param: validColor
Optional marker color for valid states. Default is Constants#DEFAULT_VALID_COLOR.
Param: invalidColor
Optional marker color for invalid states. Default is Constants#DEFAULT_INVALID_COLOR.
Param: hotspot
Portion of the width and hight where a state intersects a given coordinate pair. A value of 0 means always highlight. Default is Constants#DEFAULT_HOTSPOT.