org.nocrala.tools.texttablefmt
Class BorderStyle

java.lang.Object
  extended by org.nocrala.tools.texttablefmt.BorderStyle

public class BorderStyle
extends java.lang.Object

Border style define the actual character(s) that will be rendered as borders, when a border or separator is shown.

You can use predefined styles or custom styles.

Predefined Styles

The following border styles are already predefined and can be used out of the box:

Note: Styles starting with UNICODE_ use characters (codepoints) outside the ASCII and ISO-8859-1 (Latin-1) sets. Therefore, some Operating Systems or tools might not be able to display them correctly. Avoid these predefined tiles if you need maximum compatibility.

BorderStyle.CLASSIC


  +---------+-----------+----------+--------+
  |Country  | Population|Area (km2)| Density|
  +---------+----------------------+--------+
  |Special 1|         1.350.000.000|   16.67|
  +---------+----------------------+--------+
  |Total    |147 000 000| 9 250 000|   15.89|
  +---------+-----------+----------+--------+
  

BorderStyle.BLANKS


                                             
   Country    Population Area (km2)  Density 
                                             
   Special 1          1.350.000.000    16.67 
                                             
   Total     147 000 000  9 250 000    15.89 
                                             
  

BorderStyle.DOTS


  ...........................................
  .Country  . Population.Area (km2). Density.
  ...........................................
  .Special 1.         1.350.000.000.   16.67.
  ...........................................
  .Total    .147 000 000. 9 250 000.   15.89.
  ...........................................
  

BorderStyle.ASTERISKS


  *******************************************
  *Country  * Population*Area (km2)* Density*
  *******************************************
  *Special 1*         1.350.000.000*   16.67*
  *******************************************
  *Total    *147 000 000* 9 250 000*   15.89*
  *******************************************
  

BorderStyle.CLASSIC_WIDE


  +-----------+-------------+------------+----------+
  | Country   |  Population | Area (km2) |  Density |
  +-----------+--------------------------+----------+
  | Special 1 |            1.350.000.000 |    16.67 |
  +-----------+--------------------------+----------+
  | Total     | 147 000 000 |  9 250 000 |    15.89 |
  +-----------+-------------+------------+----------+
  

BorderStyle.CLASSIC_LIGHT


  +-----------------------------------------+
  |Country    Population Area (km2)  Density|
  +-----------------------------------------+
  |Special 1          1.350.000.000    16.67|
  +-----------------------------------------+
  |Total     147 000 000  9 250 000    15.89|
  +-----------------------------------------+
  

BorderStyle.CLASSIC_LIGHT_WIDE


  +----------------------------------------------+
  | Country     Population  Area (km2)   Density |
  +----------------------------------------------+
  | Special 1            1.350.000.000     16.67 |
  +----------------------------------------------+
  | Total      147 000 000   9 250 000     15.89 |
  +----------------------------------------------+
  

BorderStyle.HORIZONTAL_ONLY


  --------- ----------- ---------- --------
  Country    Population Area (km2)  Density
  --------- ----------- ---------- --------
  Special 1          1.350.000.000    16.67
  --------- ----------- ---------- --------
  Total     147 000 000  9 250 000    15.89
  --------- ----------- ---------- --------
  

BorderStyle.CLASSIC_COMPATIBLE


  +---------+-----------+----------+--------+
  !Country  ! Population!Area (km2)! Density!
  +---------+----------------------+--------+
  !Special 1!         1.350.000.000!   16.67!
  +---------+----------------------+--------+
  !Total    !147 000 000! 9 250 000!   15.89!
  +---------+-----------+----------+--------+
  

BorderStyle.CLASSIC_COMPATIBLE_WIDE


  +-----------+-------------+------------+----------+
  ! Country   !  Population ! Area (km2) !  Density !
  +-----------+--------------------------+----------+
  ! Special 1 !            1.350.000.000 !    16.67 !
  +-----------+--------------------------+----------+
  ! Total     ! 147 000 000 !  9 250 000 !    15.89 !
  +-----------+-------------+------------+----------+
  

BorderStyle.CLASSIC_COMPATIBLE_LIGHT_WIDE


  +----------------------------------------------+
  ! Country     Population  Area (km2)   Density !
  +----------------------------------------------+
  ! Special 1            1.350.000.000     16.67 !
  +----------------------------------------------+
  ! Total      147 000 000   9 250 000     15.89 !
  +----------------------------------------------+
  

BorderStyle.HEAVY


  +=========================================+
  |Country  | Population|Area (km2)| Density|
  +=========================================+
  |Special 1|         1.350.000.000|   16.67|
  +=========================================+
  |Total    |147 000 000| 9 250 000|   15.89|
  +=========================================+
  

BorderStyle.HEAVY_TOP_AND_BOTTOM


  +=========================================+
  |Country  | Population|Area (km2)| Density|
  +-----------------------------------------+
  |Special 1|         1.350.000.000|   16.67|
  +-----------------------------------------+
  |Total    |147 000 000| 9 250 000|   15.89|
  +=========================================+
  

BorderStyle.DESIGN_CAFE


  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Country    Population Area (km2)  Density
  ~~~~~~~~~ ~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~
  Special 1          1.350.000.000    16.67
  ~~~~~~~~~ ~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~
  Total     147 000 000  9 250 000    15.89
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  

BorderStyle.DESIGN_CASUAL


  =========================================
  Country    Population Area (km2)  Density
  ~~~~~~~~~ ~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~
  Special 1          1.350.000.000    16.67
  ~~~~~~~~~ ~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~
  Total     147 000 000  9 250 000    15.89
  =========================================
  

BorderStyle.DESIGN_FORMAL


  =========================================
  Country    Population Area (km2)  Density
  --------- ----------- ---------- --------
  Special 1          1.350.000.000    16.67
  --------- ----------- ---------- --------
  Total     147 000 000  9 250 000    15.89
  =========================================
  

BorderStyle.DESIGN_FORMAL_INVERSE


  -----------------------------------------
  Country    Population Area (km2)  Density
  ========= =========== ========== ========
  Special 1          1.350.000.000    16.67
  ========= =========== ========== ========
  Total     147 000 000  9 250 000    15.89
  -----------------------------------------
  

BorderStyle.DESIGN_SLASH


  /////////////////////////////////////////
  Country    Population Area (km2)  Density
  --------- ----------- ---------- --------
  Special 1          1.350.000.000    16.67
  --------- ----------- ---------- --------
  Total     147 000 000  9 250 000    15.89
  /////////////////////////////////////////
  

BorderStyle.DESIGN_TUBES


   _________________________________________ 
  |Country  | Population|Area (km2)| Density|
  |_________|______________________|________|
  |Special 1|         1.350.000.000|   16.67|
  |_________|______________________|________|
  |Total    |147 000 000| 9 250 000|   15.89|
  |_________|___________|__________|________|
  

BorderStyle.DESIGN_DIM


  ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
  Country    Population Area (km2)  Density
  ¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨
  Special 1          1.350.000.000    16.67
  ¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨
  Total     147 000 000  9 250 000    15.89
  ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
  

BorderStyle.DESIGN_DOTS


  ···········································
  ·Country  · Population·Area (km2)· Density·
  ···········································
  ·Special 1·         1.350.000.000·   16.67·
  ···········································
  ·Total    ·147 000 000· 9 250 000·   15.89·
  ···········································
  

BorderStyle.DESIGN_CURTAIN


  o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o
    Country    Population Area (km2)  Density  
    --------- ----------- ---------- --------  
    Special 1          1.350.000.000    16.67  
    --------- ----------- ---------- --------  
    Total     147 000 000  9 250 000    15.89  
  o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o
  

BorderStyle.DESIGN_CURTAIN_HEAVY


  o===========================================o
    Country    Population Area (km2)  Density  
    --------- ----------- ---------- --------  
    Special 1          1.350.000.000    16.67  
    --------- ----------- ---------- --------  
    Total     147 000 000  9 250 000    15.89  
  o===========================================o
  

BorderStyle.DESIGN_PAPYRUS


  o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o
   )  Country     Population  Area (km2)   Density  ( 
   )  ~~~~~~~~~  ~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~  ( 
   )  Special 1            1.350.000.000     16.67  ( 
   )  ~~~~~~~~~  ~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~  ( 
   )  Total      147 000 000   9 250 000     15.89  ( 
  o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o
  

BorderStyle.DESIGN_CAFE_WIDE


  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Country     Population  Area (km2)   Density
  ~~~~~~~~~  ~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~
  Special 1            1.350.000.000     16.67
  ~~~~~~~~~  ~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~
  Total      147 000 000   9 250 000     15.89
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  

BorderStyle.DESIGN_CASUAL_WIDE


  ============================================
  Country     Population  Area (km2)   Density
  ~~~~~~~~~  ~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~
  Special 1            1.350.000.000     16.67
  ~~~~~~~~~  ~~~~~~~~~~~  ~~~~~~~~~~  ~~~~~~~~
  Total      147 000 000   9 250 000     15.89
  ============================================
  

BorderStyle.DESIGN_FORMAL_WIDE


  ============================================
  Country     Population  Area (km2)   Density
  ---------  -----------  ----------  --------
  Special 1            1.350.000.000     16.67
  ---------  -----------  ----------  --------
  Total      147 000 000   9 250 000     15.89
  ============================================
  

BorderStyle.DESIGN_FORMAL_INVERSE_WIDE


  --------------------------------------------
  Country     Population  Area (km2)   Density
  =========  ===========  ==========  ========
  Special 1            1.350.000.000     16.67
  =========  ===========  ==========  ========
  Total      147 000 000   9 250 000     15.89
  --------------------------------------------
  

BorderStyle.DESIGN_SLASH_WIDE


  ////////////////////////////////////////////
  Country     Population  Area (km2)   Density
  ---------  -----------  ----------  --------
  Special 1            1.350.000.000     16.67
  ---------  -----------  ----------  --------
  Total      147 000 000   9 250 000     15.89
  ////////////////////////////////////////////
  

BorderStyle.DESIGN_TUBES_WIDE


   _________________________________________________ 
  | Country   |  Population | Area (km2) |  Density |
  |___________|__________________________|__________|
  | Special 1 |            1.350.000.000 |    16.67 |
  |___________|__________________________|__________|
  | Total     | 147 000 000 |  9 250 000 |    15.89 |
  |___________|_____________|____________|__________|
  

BorderStyle.DESIGN_DIM_WIDE


  ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
  Country     Population  Area (km2)   Density
  ¨¨¨¨¨¨¨¨¨  ¨¨¨¨¨¨¨¨¨¨¨  ¨¨¨¨¨¨¨¨¨¨  ¨¨¨¨¨¨¨¨
  Special 1            1.350.000.000     16.67
  ¨¨¨¨¨¨¨¨¨  ¨¨¨¨¨¨¨¨¨¨¨  ¨¨¨¨¨¨¨¨¨¨  ¨¨¨¨¨¨¨¨
  Total      147 000 000   9 250 000     15.89
  ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
  

BorderStyle.DESIGN_DOTS_WIDE


  ···················································
  · Country   ·  Population · Area (km2) ·  Density ·
  ················································· ·
  · Special 1 ·            1.350.000.000 ·    16.67 ·
  ················································· ·
  · Total     · 147 000 000 ·  9 250 000 ·    15.89 ·
  ···················································
  

BorderStyle.DESIGN_CURTAIN_WIDE


  o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o
    Country     Population  Area (km2)   Density  
    ---------  -----------  ----------  --------  
    Special 1            1.350.000.000     16.67  
    ---------  -----------  ----------  --------  
    Total      147 000 000   9 250 000     15.89  
  o~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~o
  

BorderStyle.DESIGN_CURTAIN_HEAVY_WIDE


  o==============================================o
    Country     Population  Area (km2)   Density  
    ---------  -----------  ----------  --------  
    Special 1            1.350.000.000     16.67  
    ---------  -----------  ----------  --------  
    Total      147 000 000   9 250 000     15.89  
  o==============================================o
  

BorderStyle.UNICODE_BOX


  ┌─────────┬───────────┬──────────┬────────┐
  │Country  │ Population│Area (km2)│ Density│
  ├─────────┼───────────┴──────────┼────────┤
  │Special 1│         1.350.000.000│   16.67│
  ├─────────┼───────────┬──────────┼────────┤
  │Total    │147 000 000│ 9 250 000│   15.89│
  └─────────┴───────────┴──────────┴────────┘
  

BorderStyle.UNICODE_BOX_DOUBLE_BORDER


  ╔═════════╤═══════════╤══════════╤════════╗
  ║Country  │ Population│Area (km2)│ Density║
  ╟─────────┼───────────┴──────────┼────────╢
  ║Special 1│         1.350.000.000│   16.67║
  ╟─────────┼───────────┬──────────┼────────╢
  ║Total    │147 000 000│ 9 250 000│   15.89║
  ╚═════════╧═══════════╧══════════╧════════╝
  

BorderStyle.UNICODE_BOX_HEAVY_BORDER


  ┏━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━┓
  ┃Country  │ Population│Area (km2)│ Density┃
  ┠─────────┼───────────┴──────────┼────────┨
  ┃Special 1│         1.350.000.000│   16.67┃
  ┠─────────┼───────────┬──────────┼────────┨
  ┃Total    │147 000 000│ 9 250 000│   15.89┃
  ┗━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━┛
  

BorderStyle.UNICODE_DOUBLE_BOX


  ╔═════════╦═══════════╦══════════╦════════╗
  ║Country  ║ Population║Area (km2)║ Density║
  ╠═════════╬═══════════╩══════════╬════════╣
  ║Special 1║         1.350.000.000║   16.67║
  ╠═════════╬═══════════╦══════════╬════════╣
  ║Total    ║147 000 000║ 9 250 000║   15.89║
  ╚═════════╩═══════════╩══════════╩════════╝
  

BorderStyle.UNICODE_HEAVY_BOX


  ┏━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━┓
  ┃Country  ┃ Population┃Area (km2)┃ Density┃
  ┣━━━━━━━━━╋━━━━━━━━━━━┻━━━━━━━━━━╋━━━━━━━━┫
  ┃Special 1┃         1.350.000.000┃   16.67┃
  ┣━━━━━━━━━╋━━━━━━━━━━━┳━━━━━━━━━━╋━━━━━━━━┫
  ┃Total    ┃147 000 000┃ 9 250 000┃   15.89┃
  ┗━━━━━━━━━┻━━━━━━━━━━━┻━━━━━━━━━━┻━━━━━━━━┛
  

BorderStyle.UNICODE_ROUND_BOX


  ╭─────────┬───────────┬──────────┬────────╮
  │Country  │ Population│Area (km2)│ Density│
  ├─────────┼───────────┴──────────┼────────┤
  │Special 1│         1.350.000.000│   16.67│
  ├─────────┼───────────┬──────────┼────────┤
  │Total    │147 000 000│ 9 250 000│   15.89│
  ╰─────────┴───────────┴──────────┴────────╯
  

BorderStyle.UNICODE_BOX_WIDE


  ┌───────────┬─────────────┬────────────┬──────────┐
  │ Country   │  Population │ Area (km2) │  Density │
  ├───────────┼────────────┴  ───────────┼──────────┤
  │ Special 1 │            1.350.000.000 │    16.67 │
  ├───────────┼────────────┬  ───────────┼──────────┤
  │ Total     │ 147 000 000 │  9 250 000 │    15.89 │
  └───────────┴─────────────┴────────────┴──────────┘
  

BorderStyle.UNICODE_ROUND_BOX_WIDE


  ╭───────────┬─────────────┬────────────┬──────────╮
  │ Country   │  Population │ Area (km2) │  Density │
  ├───────────┼────────────┴  ───────────┼──────────┤
  │ Special 1 │            1.350.000.000 │    16.67 │
  ├───────────┼────────────┬  ───────────┼──────────┤
  │ Total     │ 147 000 000 │  9 250 000 │    15.89 │
  ╰───────────┴─────────────┴────────────┴──────────╯
  

BorderStyle.UNICODE_HEAVY_BOX_WIDE


  ┏━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━┓
  ┃ Country   ┃  Population ┃ Area (km2) ┃  Density ┃
  ┣━━━━━━━━━━━╋━━━━━━━━━━━━┴  ━━━━━━━━━━━╋━━━━━━━━━━┫
  ┃ Special 1 ┃            1.350.000.000 ┃    16.67 ┃
  ┣━━━━━━━━━━━╋━━━━━━━━━━━━┬  ━━━━━━━━━━━╋━━━━━━━━━━┫
  ┃ Total     ┃ 147 000 000 ┃  9 250 000 ┃    15.89 ┃
  ┗━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━┻━━━━━━━━━━┛
  

BorderStyle.UNICODE_BOX_HEAVY_BORDER_WIDE


  ┏━━━━━━━━━━━┯━━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┓
  ┃ Country   │  Population │ Area (km2) │  Density ┃
  ┠───────────┼────────────━┴━───────────┼──────────┨
  ┃ Special 1 │            1.350.000.000 │    16.67 ┃
  ┠───────────┼────────────━┬━───────────┼──────────┨
  ┃ Total     │ 147 000 000 │  9 250 000 │    15.89 ┃
  ┗━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━┛
  

BorderStyle.UNICODE_DOUBLE_BOX_WIDE


  ╔═══════════╦═════════════╦════════════╦══════════╗
  ║ Country   ║  Population ║ Area (km2) ║  Density ║
  ╠═══════════╬═════════════╩════════════╬══════════╣
  ║ Special 1 ║            1.350.000.000 ║    16.67 ║
  ╠═══════════╬═════════════╦════════════╬══════════╣
  ║ Total     ║ 147 000 000 ║  9 250 000 ║    15.89 ║
  ╚═══════════╩═════════════╩════════════╩══════════╝
  

BorderStyle.UNICODE_BOX_DOUBLE_BORDER_WIDE


  ╔═══════════╤═════════════╤════════════╤══════════╗
  ║ Country   │  Population │ Area (km2) │  Density ║
  ╟───────────┼────────────━┴━───────────┼──────────╢
  ║ Special 1 │            1.350.000.000 │    16.67 ║
  ╟───────────┼────────────━┬━───────────┼──────────╢
  ║ Total     │ 147 000 000 │  9 250 000 │    15.89 ║
  ╚═══════════╧═════════════╧════════════╧══════════╝
  

If no predefined style fits your needs, you can use a...

Custom Styles

To define a custom border style you need to specify all 15 character tiles used for the table rendering using one of the BorderStyle constructors.

For single-character tiles use the constructor:

   new BorderStyle("1a234b567c89xyz")

This border style will generate a table like...

 
  1aaaaaaaaa2aaaaaaaaaaa2aaaaaaaaaa2aaaaaaa3
  xCountry  y PopulationyArea (km2)yDensityz
  4bbbbbbbbb5bbbbbbbbbbb5bbbbbbbbbb5bbbbbbb6
  xChile    y 17 000 000y 1 250 000y  13.60z
  xArgentinay 50 000 000y 3 000 000y  16.67z
  xBrasil   y 80 000 000y 5 000 000y  16.00z
  4bbbbbbbbb5bbbbbbbbbbb5bbbbbbbbbb5bbbbbbb6
  xTotal    y147 000 000y 9 250 000y  15.89z
  7ccccccccc8ccccccccccc8cccccccccc8ccccccc9
  

For multi-character tiles use the constructor:

   new BorderStyle("+=", "=", "==", "=+", "+=", "=", 
     "==", "=+", "+=", "=", "==", "=+", "| ", "  ", " |");

This border style will generate a table like...

 
  +=============================================+
  | Country     Population  Area (km2)  Density |
  +=============================================+
  | Chile       17 000 000   1 250 000    13.60 |
  | Argentina   50 000 000   3 000 000    16.67 |
  | Brasil      80 000 000   5 000 000    16.00 |
  +=============================================+
  | Total      147 000 000   9 250 000    15.89 |
  +=============================================+
  

Use any tiles that fits your needs.


Field Summary
static BorderStyle ASTERISKS
           
static BorderStyle BLANKS
           
static BorderStyle CLASSIC
           
static BorderStyle CLASSIC_COMPATIBLE
           
static BorderStyle CLASSIC_COMPATIBLE_LIGHT_WIDE
           
static BorderStyle CLASSIC_COMPATIBLE_WIDE
           
static BorderStyle CLASSIC_LIGHT
           
static BorderStyle CLASSIC_LIGHT_WIDE
           
static BorderStyle CLASSIC_WIDE
           
static BorderStyle DEMO
           
static BorderStyle DESIGN_CAFE
           
static BorderStyle DESIGN_CAFE_WIDE
           
static BorderStyle DESIGN_CASUAL
           
static BorderStyle DESIGN_CASUAL_WIDE
           
static BorderStyle DESIGN_CURTAIN
           
static BorderStyle DESIGN_CURTAIN_HEAVY
           
static BorderStyle DESIGN_CURTAIN_HEAVY_WIDE
           
static BorderStyle DESIGN_CURTAIN_WIDE
           
static BorderStyle DESIGN_DIM
           
static BorderStyle DESIGN_DIM_WIDE
           
static BorderStyle DESIGN_DOTS
           
static BorderStyle DESIGN_DOTS_WIDE
           
static BorderStyle DESIGN_FORMAL
           
static BorderStyle DESIGN_FORMAL_INVERSE
           
static BorderStyle DESIGN_FORMAL_INVERSE_WIDE
           
static BorderStyle DESIGN_FORMAL_WIDE
           
static BorderStyle DESIGN_PAPYRUS
           
static BorderStyle DESIGN_SLASH
           
static BorderStyle DESIGN_SLASH_WIDE
           
static BorderStyle DESIGN_TUBES
           
static BorderStyle DESIGN_TUBES_WIDE
           
static BorderStyle DOTS
           
static BorderStyle HEAVY
           
static BorderStyle HEAVY_TOP_AND_BOTTOM
           
static BorderStyle HORIZONTAL_ONLY
           
static BorderStyle UNICODE_BOX
           
static BorderStyle UNICODE_BOX_DOUBLE_BORDER
           
static BorderStyle UNICODE_BOX_DOUBLE_BORDER_WIDE
           
static BorderStyle UNICODE_BOX_HEAVY_BORDER
           
static BorderStyle UNICODE_BOX_HEAVY_BORDER_WIDE
           
static BorderStyle UNICODE_BOX_WIDE
           
static BorderStyle UNICODE_DOUBLE_BOX
           
static BorderStyle UNICODE_DOUBLE_BOX_WIDE
           
static BorderStyle UNICODE_HEAVY_BOX
           
static BorderStyle UNICODE_HEAVY_BOX_WIDE
           
static BorderStyle UNICODE_ROUND_BOX
           
static BorderStyle UNICODE_ROUND_BOX_WIDE
           
 
Constructor Summary
BorderStyle(java.lang.String customStyle)
          Specifies a border style with single-character tiles.
BorderStyle(java.lang.String tLCorner, java.lang.String top, java.lang.String tCCorner, java.lang.String tRCorner, java.lang.String mLCorner, java.lang.String middle, java.lang.String mCCorner, java.lang.String mRCorner, java.lang.String bLCorner, java.lang.String bottom, java.lang.String bCCorner, java.lang.String bRCorner, java.lang.String left, java.lang.String center, java.lang.String right, java.lang.String upperColSpan, java.lang.String lowerColSpan)
          Specifies a border style with multi-character tiles.
 
Method Summary
 java.lang.String getBCCorner()
           
 java.lang.String getBLCorner()
           
 java.lang.String getBottom()
           
 java.lang.String getBRCorner()
           
 java.lang.String getCenter()
           
 int getCenterWidth()
           
 int getHorizontalWidth()
           
 java.lang.String getLeft()
           
 int getLeftWidth()
           
 java.lang.String getLowerColSpan()
           
 java.lang.String getMCCorner()
           
 java.lang.String getMiddle()
           
 java.lang.String getMLCorner()
           
 java.lang.String getMRCorner()
           
 java.lang.String getRight()
           
 int getRightWidth()
           
 java.lang.String getTCCorner()
           
 java.lang.String getTLCorner()
           
 java.lang.String getTop()
           
 java.lang.String getTRCorner()
           
 java.lang.String getUpperColSpan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEMO

public static final BorderStyle DEMO

BLANKS

public static final BorderStyle BLANKS

DOTS

public static final BorderStyle DOTS

ASTERISKS

public static final BorderStyle ASTERISKS

HORIZONTAL_ONLY

public static final BorderStyle HORIZONTAL_ONLY

CLASSIC

public static final BorderStyle CLASSIC

CLASSIC_WIDE

public static final BorderStyle CLASSIC_WIDE

CLASSIC_LIGHT

public static final BorderStyle CLASSIC_LIGHT

CLASSIC_LIGHT_WIDE

public static final BorderStyle CLASSIC_LIGHT_WIDE

CLASSIC_COMPATIBLE

public static final BorderStyle CLASSIC_COMPATIBLE

CLASSIC_COMPATIBLE_WIDE

public static final BorderStyle CLASSIC_COMPATIBLE_WIDE

CLASSIC_COMPATIBLE_LIGHT_WIDE

public static final BorderStyle CLASSIC_COMPATIBLE_LIGHT_WIDE

HEAVY

public static final BorderStyle HEAVY

HEAVY_TOP_AND_BOTTOM

public static final BorderStyle HEAVY_TOP_AND_BOTTOM

DESIGN_FORMAL

public static final BorderStyle DESIGN_FORMAL

DESIGN_FORMAL_INVERSE

public static final BorderStyle DESIGN_FORMAL_INVERSE

DESIGN_CASUAL

public static final BorderStyle DESIGN_CASUAL

DESIGN_CAFE

public static final BorderStyle DESIGN_CAFE

DESIGN_SLASH

public static final BorderStyle DESIGN_SLASH

DESIGN_TUBES

public static final BorderStyle DESIGN_TUBES

DESIGN_DOTS

public static final BorderStyle DESIGN_DOTS

DESIGN_DIM

public static final BorderStyle DESIGN_DIM

DESIGN_CURTAIN

public static final BorderStyle DESIGN_CURTAIN

DESIGN_CURTAIN_HEAVY

public static final BorderStyle DESIGN_CURTAIN_HEAVY

DESIGN_PAPYRUS

public static final BorderStyle DESIGN_PAPYRUS

DESIGN_FORMAL_WIDE

public static final BorderStyle DESIGN_FORMAL_WIDE

DESIGN_FORMAL_INVERSE_WIDE

public static final BorderStyle DESIGN_FORMAL_INVERSE_WIDE

DESIGN_CASUAL_WIDE

public static final BorderStyle DESIGN_CASUAL_WIDE

DESIGN_CAFE_WIDE

public static final BorderStyle DESIGN_CAFE_WIDE

DESIGN_SLASH_WIDE

public static final BorderStyle DESIGN_SLASH_WIDE

DESIGN_TUBES_WIDE

public static final BorderStyle DESIGN_TUBES_WIDE

DESIGN_DOTS_WIDE

public static final BorderStyle DESIGN_DOTS_WIDE

DESIGN_DIM_WIDE

public static final BorderStyle DESIGN_DIM_WIDE

DESIGN_CURTAIN_WIDE

public static final BorderStyle DESIGN_CURTAIN_WIDE

DESIGN_CURTAIN_HEAVY_WIDE

public static final BorderStyle DESIGN_CURTAIN_HEAVY_WIDE

UNICODE_BOX

public static final BorderStyle UNICODE_BOX

UNICODE_ROUND_BOX

public static final BorderStyle UNICODE_ROUND_BOX

UNICODE_HEAVY_BOX

public static final BorderStyle UNICODE_HEAVY_BOX

UNICODE_BOX_HEAVY_BORDER

public static final BorderStyle UNICODE_BOX_HEAVY_BORDER

UNICODE_DOUBLE_BOX

public static final BorderStyle UNICODE_DOUBLE_BOX

UNICODE_BOX_DOUBLE_BORDER

public static final BorderStyle UNICODE_BOX_DOUBLE_BORDER

UNICODE_BOX_WIDE

public static final BorderStyle UNICODE_BOX_WIDE

UNICODE_ROUND_BOX_WIDE

public static final BorderStyle UNICODE_ROUND_BOX_WIDE

UNICODE_HEAVY_BOX_WIDE

public static final BorderStyle UNICODE_HEAVY_BOX_WIDE

UNICODE_BOX_HEAVY_BORDER_WIDE

public static final BorderStyle UNICODE_BOX_HEAVY_BORDER_WIDE

UNICODE_DOUBLE_BOX_WIDE

public static final BorderStyle UNICODE_DOUBLE_BOX_WIDE

UNICODE_BOX_DOUBLE_BORDER_WIDE

public static final BorderStyle UNICODE_BOX_DOUBLE_BORDER_WIDE
Constructor Detail

BorderStyle

public BorderStyle(java.lang.String tLCorner,
                   java.lang.String top,
                   java.lang.String tCCorner,
                   java.lang.String tRCorner,
                   java.lang.String mLCorner,
                   java.lang.String middle,
                   java.lang.String mCCorner,
                   java.lang.String mRCorner,
                   java.lang.String bLCorner,
                   java.lang.String bottom,
                   java.lang.String bCCorner,
                   java.lang.String bRCorner,
                   java.lang.String left,
                   java.lang.String center,
                   java.lang.String right,
                   java.lang.String upperColSpan,
                   java.lang.String lowerColSpan)
Specifies a border style with multi-character tiles.

Parameters:
tLCorner - Top left corner
top - Top
tCCorner - Top center corner
tRCorner - Top right corner
mLCorner - Middle left corner
middle - Middle
mCCorner - Middle center corner
mRCorner - Middle right corner
bLCorner - Bottom left corner
bottom - Bottom
bCCorner - Bottom center corner
bRCorner - Bottom right corner
left - Left
center - Center
right - Right
upperColSpan - middle center corner for the upper border of a colspan
lowerColSpan - middle center corner for the lower border of a colspan

BorderStyle

public BorderStyle(java.lang.String customStyle)
Specifies a border style with single-character tiles.

Parameters:
customStyle - 15-character String where every character is a tile, in the following order:
  • Top left corner
  • Top
  • Top center corner
  • Top right corner
  • Middle left corner
  • Middle
  • Middle center corner
  • Middle right corner
  • Bottom left corner
  • Bottom
  • Bottom center corner
  • Bottom right corner
  • Left
  • Center
  • Right
  • Upper colspan
  • Lower colspan
Method Detail

getBCCorner

public java.lang.String getBCCorner()

getBLCorner

public java.lang.String getBLCorner()

getBottom

public java.lang.String getBottom()

getBRCorner

public java.lang.String getBRCorner()

getCenter

public java.lang.String getCenter()

getLeft

public java.lang.String getLeft()

getMCCorner

public java.lang.String getMCCorner()

getMiddle

public java.lang.String getMiddle()

getMLCorner

public java.lang.String getMLCorner()

getMRCorner

public java.lang.String getMRCorner()

getRight

public java.lang.String getRight()

getTop

public java.lang.String getTop()

getTCCorner

public java.lang.String getTCCorner()

getTLCorner

public java.lang.String getTLCorner()

getTRCorner

public java.lang.String getTRCorner()

getUpperColSpan

public java.lang.String getUpperColSpan()

getLowerColSpan

public java.lang.String getLowerColSpan()

getLeftWidth

public int getLeftWidth()

getHorizontalWidth

public int getHorizontalWidth()

getCenterWidth

public int getCenterWidth()

getRightWidth

public int getRightWidth()


Nocrala tools.