Graph IDE ► Custom Application ► Event Qualifier
The following shows how to instantiate an event qualifier for a Circle graphic. An event qualifier is enabled by default so all you need do is instantiate the programmatic state of the circle (or corresponding graphic's state).
@@class() Circle:Object
|
The following API processes the events. If you wish to alter that processing then you must implement your own graphic state subclass and subclass these methods.
@@method(public, instance) (void)disableEventQualifier;
| |
Call like this:
This method disables event qualifier processing for the Layer and Single Coordinate Graph states. Most likely, you will not need to call upon this method. | |
@@method(public, instance) (void)enableEventQualifier;
| |
Call like this:
This method enables event qualifier processing for the Layer and Single Coordinate Graph states. Call upon this method in a program script. Calling upon this method for a graph enables that graph's processing for the data foreground and background layers so that graphics on the graph are detected and not the graph itself. If this method is not called upon for a graph then the graph itself is detected instead. | |
@@method(public, instance) (void)retrieveHitParameters;
| |
Call like this:
Appends the x and y values to the list of data points for the graphic. The x and y values forms a 2D point. Each value must be of type double. | |
@@method(public, instance) (void)encodeHitMessage;
| |
Call like this:
This encodes the hit parameters into the strings hitTitle and hitMessage. This method can be overridden to present a custom message in the popover. | |
@@method(public, instance) (void)performHit;
| |
Call like this:
This method is called when the receiver is hit (clicked upon) by the mouse button. The default implementation calls | |
@@method(public, instance) (void)performHover;
| |
Call like this:
This method is called when the receiver is hovered upon (when the mouse cursor is over the receiver). The default implementation calls | |
@@method(public, instance) (void)resetHitParameters;
| |
Call like this:
This method resets the hit instance variables according to the following.
| |
@@method(public, instance) (void)retrieveHitParameters;
| |
Call like this:
This method retrieves the hit instance variables according to the following.
| |
@@method(public, instance) (void)performUnHit;
| |
Call like this:
This method is called when the receiver is unhit (the mouse button is released upon). The default implementation calls | |
@@method(public, instance) (void)performUnHover;
| |
Call like this:
This method is called when the receiver is unhovered (the mouse cursor leaves the graphic). The default implementation calls |
A premade Xcode project demonstrating the use of the methods above is described in the HitButton section.