Property Inspector for custom classes
Mostrar comentarios más antiguos
I'd like to use Property Inspector to be able to edit custom classes. From what I can see, this works (i.e., I can type "inspect(obj)" and edit properties) as long as the classes are handle classes, but it doesn't seem as effective as for some built-in classes. For example:
- If I look at Figure of Axes objects in Property Inspector, properties are listed in groups. This doesn't occur for my custom classes even if I inherit matlab.mixin.CustomDisplay and implement getPropertyGroups (which enables grouping of properties in the command window display of a class).
- Editors are sensible for integers, logicals etc. Figures etc have nice specialised editors for colours, fonts, etc. Is there any way that I can reuse those?
I've attached a picture showing an example of what I'm meaning for the plot line inspector--showing the sections (e.g. "Color and Styling", "Markers", etc) for the different properties, and the special editor used for the line colour.

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Performance and Memory en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
