hgsetget
Abstract class used to derive handle class with set and get methods
Compatibility
Note
hgsetget
will be removed in a future release. Use matlab.mixin.SetGet
instead.
Syntax
classdef
myclass
< hgsetget
Description
classdef
makes
myclass
< hgsetgetmyclass
a subclass of the hgsetget
class, which is a subclass of the handle
class.
Use the hgsetget
class to derive classes that inherit
set
and get
methods that behave like
Handle Graphics®
set
and get
functions.
Methods
When you derive a class from the hgsetget
class, your class
inherits the following methods.
Method | Purpose |
---|---|
set | Assigns values to the specified properties or returns a cell array of possible values for writable properties. |
get | Returns value of specified property or a
struct with all property values. |
setdisp | Called when set is called with no output
arguments and a handle array, but no property name. Override this
method to change what set displays. |
getdisp | Called when get is called with no output
arguments and handle array, but no property name. Override this
method to change what get displays. |