Enum TextShapeExporter.BorderStrategy
- java.lang.Object
-
- java.lang.Enum<TextShapeExporter.BorderStrategy>
-
- io.github.applecommander.bastools.api.shapes.exporters.TextShapeExporter.BorderStrategy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextShapeExporter.BorderStrategy>
- Enclosing class:
- TextShapeExporter
public static enum TextShapeExporter.BorderStrategy extends java.lang.Enum<TextShapeExporter.BorderStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCII_TEXTA simple border based on plain ASCII characters.BOX_DRAWINGA border comprised of the box drawing characters.NONENo border but with spaces between shapes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbottomDivider(java.io.PrintWriter pw)voidbottomLeftCorner(java.io.PrintWriter pw)voidbottomRightCorner(java.io.PrintWriter pw)voiddividerHorizontalLine(java.io.PrintWriter pw, int width)voiddividerLeftEdge(java.io.PrintWriter pw)voiddividerMiddle(java.io.PrintWriter pw)voiddividerRightEdge(java.io.PrintWriter pw)voiddividerVerticalLine(java.io.PrintWriter pw)voidhorizontalLine(java.io.PrintWriter pw, int width)voidtopDivider(java.io.PrintWriter pw)voidtopLeftCorner(java.io.PrintWriter pw)voidtopRightCorner(java.io.PrintWriter pw)static TextShapeExporter.BorderStrategyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextShapeExporter.BorderStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.voidverticalLine(java.io.PrintWriter pw)
-
-
-
Enum Constant Detail
-
NONE
public static final TextShapeExporter.BorderStrategy NONE
No border but with spaces between shapes. Note the tricky newline individerLeftEdge.
-
BOX_DRAWING
public static final TextShapeExporter.BorderStrategy BOX_DRAWING
A border comprised of the box drawing characters.- See Also:
- Wikipedia article on box characters
-
ASCII_TEXT
public static final TextShapeExporter.BorderStrategy ASCII_TEXT
A simple border based on plain ASCII characters.
-
-
Method Detail
-
values
public static TextShapeExporter.BorderStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextShapeExporter.BorderStrategy c : TextShapeExporter.BorderStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextShapeExporter.BorderStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
horizontalLine
public void horizontalLine(java.io.PrintWriter pw, int width)
-
verticalLine
public void verticalLine(java.io.PrintWriter pw)
-
topLeftCorner
public void topLeftCorner(java.io.PrintWriter pw)
-
topRightCorner
public void topRightCorner(java.io.PrintWriter pw)
-
bottomLeftCorner
public void bottomLeftCorner(java.io.PrintWriter pw)
-
bottomRightCorner
public void bottomRightCorner(java.io.PrintWriter pw)
-
topDivider
public void topDivider(java.io.PrintWriter pw)
-
bottomDivider
public void bottomDivider(java.io.PrintWriter pw)
-
dividerVerticalLine
public void dividerVerticalLine(java.io.PrintWriter pw)
-
dividerHorizontalLine
public void dividerHorizontalLine(java.io.PrintWriter pw, int width)
-
dividerLeftEdge
public void dividerLeftEdge(java.io.PrintWriter pw)
-
dividerRightEdge
public void dividerRightEdge(java.io.PrintWriter pw)
-
dividerMiddle
public void dividerMiddle(java.io.PrintWriter pw)
-
-