Class zebkit.draw.TitledBorder
extends <zebkit.draw.Render>
<zebkit.draw>

Render class that allows developers to render a border with a title area. The title area has to be specified by an UI component that uses the border by defining "getTitleInfo()"" method. The method has to return object that describes title size, location and alignment:

 {
   x: {Integer}, y: {Integer},
   width: {Integer}, height: {Integer},
   orient: {String}
 }
Constructor:
zebkit.draw.TitledBorder (zebkit.draw.View, [lineAlignment])

Parameters:
  • zebkit.draw.View <Object>

    border a border to be rendered with a title area

  • [lineAlignment] <String>

    a line alignment. Specifies how a title area has to be aligned relatively border line:

      "bottom"  - title area will be placed on top of border line:
                   ___| Title area |___
    
    
     "center"   - title area will be centered relatively to border line:
                   ---| Title area |-----
    
    
     "top"      - title area will be placed underneath of border line:
                    ____              ________
                        |  Title area |