Skip to Main Content Skip to Search
Product Documentation

hgsetget - Abstract class used to derive handle class with set and get methods

Syntax

classdef myclass < hgsetget

Description

classdef myclass < hgsetget makes myclass 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.

MethodPurpose
setAssigns values to the specified properties or returns a cell array of possible values for writable properties.
getReturns value of specified property or a struct with all property values.
setdispCalled when set is called with no output arguments and a handle array, but no property name. Override this method to change what set displays.
getdispCalled when get is called with no output arguments and handle array, but no property name. Override this method to change what get displays.

See Also

get | get (hgsetget) | handle | set | set (hgsetget)

How To

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS