MATLAB Object-Oriented Programming

(Joyce) #1

Property Value Purpose


FcnObject fcneval object This object contains the data that is used to
create the function graphs.


HAxes axes handle Each instance of a fcnview object stores the
handle of the axes containing its subplot.


HLUpdateGraph event.listener
object for
UpdateGraph event


Setting the event.listener object's
Enabled property to true enables the
listener; false disables listener.

HLLm event.listener
object for Lm property
event


Setting the event.listener object's
Enabled property to true enables the
listener, false disables listener.

HEnableCm uimenu handle Item on context menu used to enable
listeners (used to handle checked behavior)


HDisableCm uimenu handle Item on context menu used to disable
listeners (used to manage checked behavior)


HSurface surface handle Used by event callbacks to update surface
data.


Method Purpose


fcnview Class constructor. Input is fcneval object.


createLisn Calls addlistener to create listeners for UpdateGraph and
Lm property PostSet listeners.


lims Sets axes limits to current value of fcneval object's Lm
property. Used by event handlers.


updateSurfaceData Updates the surface data without creating a new object. Used
by event handlers.


listenUpdateGraph Callback for UpdateGraph event.


listenLm Callback for Lm property PostSet event


delete Delete method for fcnview class.


createViews Static method that creates an instance of the fcnview class
for each subplot, defines the context menus that enable/
disable listeners, and creates the subplots


Techniques for Using Events and Listeners
Free download pdf