HandleGraphicsSetGe​t class

バージョン 1.2.0.0 (74.2 KB) 作成者: Andrew Newell
An extension of the handle graphics set/get class HGSETGET.
ダウンロード: 915
更新 2011/3/18

ライセンスの表示

編集メモ: This file was selected as MATLAB Central Pick of the Week

The HGSETGETPLUS class allows the user to:

* Implement a handle class with a get/set interface.
* Define validation criteria for properties that are checked when the
method SET is called.
* Display those criteria for a given property or all the properties.
* Set defaults for the properties.
* Allow a variety of input types in a consistent manner.

Example:
>> h = hgsetgetplusTemplate

h =

hgsetgetplusTemplate handle

Properties:
length: 0
unit: 'm'

Methods, Events, Superclasses

>> set(h)
length: 'double -and- scalar'
unit: '[ {m} | cm ]'

>> set(h,'unit','kg')
??? Error using ==> setOneProperty
Expected kg to match one of these strings:

m, cm

The input, 'kg', did not match any of the valid strings.

------
I would like to thank Jiro Doke for some ideas that got me started and for encouraging me to submit this.

引用

Andrew Newell (2024). HandleGraphicsSetGet class (https://www.mathworks.com/matlabcentral/fileexchange/30713-handlegraphicssetget-class), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R2010b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersConstruct and Work with Object Arrays についてさらに検索
謝辞

ヒントを与えたファイル: hgsetgetex: Extension of hgsetget Class (v.2.5)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.2.0.0

Added an acknowledgement

1.0.0.0