Fix and complete JavaDoc comments
This commit is contained in:
@@ -1,8 +1,27 @@
|
||||
package it.polimi.ingsw.gc14.View.TUI;
|
||||
|
||||
/**
|
||||
* Defines the available border styles used to render {@link AsciiTable}
|
||||
* instances in the text-based user interface.
|
||||
*
|
||||
* <p>Each style stores the characters needed to draw table corners,
|
||||
* horizontal and vertical lines, and junctions.
|
||||
*/
|
||||
public enum BorderStyle {
|
||||
|
||||
/**
|
||||
* Unicode box-drawing border style.
|
||||
*/
|
||||
UNICODE("╔","╗","╚","╝","═","║","╠","╣","╦","╩","╬","├","┤","─","┼"),
|
||||
|
||||
/**
|
||||
* Plain ASCII border style.
|
||||
*/
|
||||
ASCII ("+","+","+","+","-","|","+","+","+","+","+","+","+","-","+"),
|
||||
|
||||
/**
|
||||
* Rounded Unicode border style.
|
||||
*/
|
||||
ROUNDED("╭","╮","╰","╯","─","│","├","┤","┬","┴","┼","├","┤","─","┼");
|
||||
|
||||
private final String tl,tr,bl,br,h,v,ml,mr,mt,mb,x,sl,sr,sh,sx;
|
||||
@@ -21,19 +40,78 @@ public enum BorderStyle {
|
||||
this.sh = sh; this.sx = sx;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the top-left corner character.
|
||||
*/
|
||||
public String tl() { return tl; }
|
||||
|
||||
/**
|
||||
* @return the top-right corner character.
|
||||
*/
|
||||
public String tr() { return tr; }
|
||||
|
||||
/**
|
||||
* @return the bottom-left corner character.
|
||||
*/
|
||||
public String bl() { return bl; }
|
||||
|
||||
/**
|
||||
* @return the bottom-right corner character.
|
||||
*/
|
||||
public String br() { return br; }
|
||||
|
||||
/**
|
||||
* @return the horizontal line character.
|
||||
*/
|
||||
public String h() { return h; }
|
||||
|
||||
/**
|
||||
* @return the vertical line character.
|
||||
*/
|
||||
public String v() { return v; }
|
||||
|
||||
/**
|
||||
* @return the middle-left junction character.
|
||||
*/
|
||||
public String ml() { return ml; }
|
||||
|
||||
/**
|
||||
* @return the middle-right junction character.
|
||||
*/
|
||||
public String mr() { return mr; }
|
||||
|
||||
/**
|
||||
* @return the top-middle junction character.
|
||||
*/
|
||||
public String mt() { return mt; }
|
||||
|
||||
/**
|
||||
* @return the bottom-middle junction character.
|
||||
*/
|
||||
public String mb() { return mb; }
|
||||
|
||||
/**
|
||||
* @return the center junction character.
|
||||
*/
|
||||
public String x() { return x; }
|
||||
|
||||
/**
|
||||
* @return the separator-left junction character.
|
||||
*/
|
||||
public String sl() { return sl; }
|
||||
|
||||
/**
|
||||
* @return the separator-right junction character.
|
||||
*/
|
||||
public String sr() { return sr; }
|
||||
|
||||
/**
|
||||
* @return the separator horizontal line character.
|
||||
*/
|
||||
public String sh() { return sh; }
|
||||
|
||||
/**
|
||||
* @return the separator center junction character.
|
||||
*/
|
||||
public String sx() { return sx; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user