LineStyle

Inheritance: java.lang.Object

public class LineStyle

Specifies line style of a Border.

Examples:

Shows how to insert a string surrounded by a border into a document.


 Document doc = new Document();
 DocumentBuilder builder = new DocumentBuilder(doc);

 builder.getFont().getBorder().setColor(Color.GREEN);
 builder.getFont().getBorder().setLineWidth(2.5);
 builder.getFont().getBorder().setLineStyle(LineStyle.DASH_DOT_STROKER);

 builder.write("Text surrounded by green border.");

 doc.save(getArtifactsDir() + "Border.FontBorder.docx");
 

Fields

FieldDescription
DASH_DOT_STROKER
DASH_LARGE_GAP
DASH_SMALL_GAP
DOT
DOT_DASH
DOT_DOT_DASH
DOUBLE
DOUBLE_WAVE
EMBOSS_3_D
ENGRAVE_3_D
HAIRLINE
INSET
NONE
OUTSET
SINGLE
THICK
THICK_THIN_LARGE_GAP
THICK_THIN_MEDIUM_GAP
THICK_THIN_SMALL_GAP
THIN_THICK_LARGE_GAP
THIN_THICK_MEDIUM_GAP
THIN_THICK_SMALL_GAP
THIN_THICK_THIN_LARGE_GAP
THIN_THICK_THIN_MEDIUM_GAP
THIN_THICK_THIN_SMALL_GAP
TRIPLE
WAVE
length

Methods

MethodDescription
fromName(String lineStyleName)
getName(int lineStyle)
getValues()
toString(int lineStyle)

DASH_DOT_STROKER

public static int DASH_DOT_STROKER

DASH_LARGE_GAP

public static int DASH_LARGE_GAP

DASH_SMALL_GAP

public static int DASH_SMALL_GAP

DOT

public static int DOT

DOT_DASH

public static int DOT_DASH

DOT_DOT_DASH

public static int DOT_DOT_DASH

DOUBLE

public static int DOUBLE

DOUBLE_WAVE

public static int DOUBLE_WAVE

EMBOSS_3_D

public static int EMBOSS_3_D

ENGRAVE_3_D

public static int ENGRAVE_3_D

HAIRLINE

public static int HAIRLINE

INSET

public static int INSET

NONE

public static int NONE

OUTSET

public static int OUTSET

SINGLE

public static int SINGLE

THICK

public static int THICK

THICK_THIN_LARGE_GAP

public static int THICK_THIN_LARGE_GAP

THICK_THIN_MEDIUM_GAP

public static int THICK_THIN_MEDIUM_GAP

THICK_THIN_SMALL_GAP

public static int THICK_THIN_SMALL_GAP

THIN_THICK_LARGE_GAP

public static int THIN_THICK_LARGE_GAP

THIN_THICK_MEDIUM_GAP

public static int THIN_THICK_MEDIUM_GAP

THIN_THICK_SMALL_GAP

public static int THIN_THICK_SMALL_GAP

THIN_THICK_THIN_LARGE_GAP

public static int THIN_THICK_THIN_LARGE_GAP

THIN_THICK_THIN_MEDIUM_GAP

public static int THIN_THICK_THIN_MEDIUM_GAP

THIN_THICK_THIN_SMALL_GAP

public static int THIN_THICK_THIN_SMALL_GAP

TRIPLE

public static int TRIPLE

WAVE

public static int WAVE

length

public static int length

fromName(String lineStyleName)

public static int fromName(String lineStyleName)

Parameters:

ParameterTypeDescription
lineStyleNamejava.lang.String

Returns: int

getName(int lineStyle)

public static String getName(int lineStyle)

Parameters:

ParameterTypeDescription
lineStyleint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int lineStyle)

public static String toString(int lineStyle)

Parameters:

ParameterTypeDescription
lineStyleint

Returns: java.lang.String