Method: CDK::VIEWER#setTitle
- Defined in:
- lib/cdk/components/viewer.rb
#setTitle(title) ⇒ Object
This sets the title of the viewer. (A nil title is allowed. It just means that the viewer will not have a title when drawn.)
123 124 125 126 127 128 129 |
# File 'lib/cdk/components/viewer.rb', line 123 def setTitle(title) super(title, -(@box_width + 1)) @title_adj = @title_lines # Need to set @view_size @view_size = @box_height - (@title_lines + 1) - 2 end |