A title for a modelit.layout.Frame
backgroundcolor | 1-by-3 matrix of RGB values, default value is system dependent | The background color of the title. |
fontangle | {normal} | italic | Setting this property to italic selects a slanted version of the font, when it is available on your system. |
fontname | String, default is system dependent. | The name of the font. To display and print properly, this must be a font that your system supports. Use listfonts to list all available system fontnames. |
fontsize | Integer, default value is system dependent. | A number specifying the size in pixels of the font. |
fontweight | {normal} | bold | Setting this property to bold selects a bold version of the font, when it is available on your system. |
foregroundcolor | 1-by-3 matrix of RGB values, default value is system dependent | The foreground color of the title. |
string | String, default value: '' | The string to be displayed. |
visible | Boolean: Default value: true | Determines if the painter is visible. |
modelit.layout.Title constructor
obj = modelit.layout.Title(varargin)
varargin | any | parameter-value pairs, see the component properties for a description of the parameters and their values Documentation for modelit.layout.Title/Title doc modelit.layout.Title |
modelit.layout.Title destructor
delete(obj)
obj | any | modelit.layout.Title destructor |
Paint the title
paint(obj, visible, hax, rect, cliprect)
obj | any | modelit.layout.Title |
visible | any | boolean, if false hide the border, if true show the border (only if also the visible property is true) |
hax | any | handle of axis in which to paint |
rect | any | rectangle [left bottom width heigth] with painting area |
cliprect | any | rectangle [left bottom width heigth] with clipping area |
No direct output
Make sure title uicontrol is created for active frame so that the object can be used to determine pixelsizes
paint(obj)
obj | any | modelit.layout.Title |
No direct output. But uicontrol is created or modified
Get the insets needed to paint this title
getInsets(obj)
obj | any | modelit.layout.Title |
value | any | [1x4] array with insets (in pixels) |
Returns if one or more properties have been changed and the painter needs to be reinitialized
value = isPainterChanged(obj)
obj | modelit.ui.AbstractPainter |
value | boolean | true if one or more properties have been changed and the painter needs to be reinitialized Help for modelit.layout.Title/isPainterChanged is inherited from superclass modelit.layout.AbstractPainter |
Set to true to indicate that one or more properties have been changed and the painter needs to be reinitialized
obj = modelit.ui.AbstractPainter(varargin)
obj | modelit.ui.AbstractPainter | |
value | boolean | true if one or more properties have been changed and the painter needs to be reinitialized |
No output Help for modelit.layout.Title/setPainterChanged is inherited from superclass modelit.layout.AbstractPainter