Personalizar la visualización de objetos para clases
Personalice la forma en que MATLAB® muestra los objetos de su clase en la ventana de comandos
La clase CustomDisplay
define una interfaz que se puede usar para personalizar la forma en que MATLAB muestra los objetos. Para obtener una visión general de la interfaz, consulte Custom Display Interface. Además, la clase CustomCompactDisplayProvider
permite personalizar la visualización de objetos en contenedores, como estructuras y tablas. Para obtener una visión general de la interfaz, consulte Custom Compact Display Interface.
Funciones
details | Display array details |
Clases
matlab.mixin.CustomDisplay | Interface for customizing object display |
matlab.mixin.util.PropertyGroup | Custom property list for object display |
matlab.mixin.CustomCompactDisplayProvider | Interface for customizing object display within containers |
matlab.display.CompactDisplayRepresentation | Base class for representing compact display of object array |
matlab.display.DisplayConfiguration | Describe display environment and settings |
matlab.display.DimensionsAndClassNameRepresentation | Compact display representation using dimensions and class name |
matlab.display.PlainTextRepresentation | Compact display representation using data in object array |
Temas
Personalizar clase y métodos de la interfaz de visualización
- Custom Display Interface
TheCustomDisplay
class provides an API for customizing the display of objects of your class. - How CustomDisplay Works
MATLAB determines the state of an object and then calls specific methods for that state to display the object. - Class with Default Object Display
This example class customizes various aspects of object display. - Role of size Function in Custom Displays
MATLAB uses the size function to help determine the state of the object to display.
Técnicas específicas para personalizar la visualización de objetos
- Choose a Technique for Display Customization
You can customize object display based on the state of the object and you can change different parts of the display. - Customize Property Display
Change the order and number of properties displayed for an object of your class. - Customize Header, Property List, and Footer
Customize each of the three parts of the display — header, property groups, and footer. - Customize Display of Scalar Objects
Customize the display of scalar objects. - Customize Display of Object Arrays
Customize the display of nonscalar objects, including empty object arrays. - Customize Display for Heterogeneous Arrays
You can call only sealed methods on nonscalar heterogeneous arrays. - Overloading the disp Function
Overloading thedisp
function provides limited display customization.
Personalizar las vistas compactas
- Custom Compact Display Interface
Customize the representation of objects in compact display scenarios.