LineSpacingRule
Contents
[
Hide
]Inheritance: java.lang.Object
public class LineSpacingRule
Specifies line spacing values for a paragraph.
Fields
Field | Description |
---|---|
AT_LEAST | The line spacing can be greater than or equal to, but never less than, the value specified in the ParagraphFormat.getLineSpacing() / ParagraphFormat.setLineSpacing(double) property. |
EXACTLY | The line spacing never changes from the value specified in the ParagraphFormat.getLineSpacing() / ParagraphFormat.setLineSpacing(double) property, even if a larger font is used within the paragraph. |
MULTIPLE | The line spacing is specified in the ParagraphFormat.getLineSpacing() / ParagraphFormat.setLineSpacing(double) property as the number of lines. |
length |
Methods
Method | Description |
---|---|
fromName(String lineSpacingRuleName) | |
getName(int lineSpacingRule) | |
getValues() | |
toString(int lineSpacingRule) |
AT_LEAST
public static int AT_LEAST
The line spacing can be greater than or equal to, but never less than, the value specified in the ParagraphFormat.getLineSpacing() / ParagraphFormat.setLineSpacing(double) property.
EXACTLY
public static int EXACTLY
The line spacing never changes from the value specified in the ParagraphFormat.getLineSpacing() / ParagraphFormat.setLineSpacing(double) property, even if a larger font is used within the paragraph.
MULTIPLE
public static int MULTIPLE
The line spacing is specified in the ParagraphFormat.getLineSpacing() / ParagraphFormat.setLineSpacing(double) property as the number of lines. One line equals 12 points.
length
public static int length
fromName(String lineSpacingRuleName)
public static int fromName(String lineSpacingRuleName)
Parameters:
Parameter | Type | Description |
---|---|---|
lineSpacingRuleName | java.lang.String |
Returns: int
getName(int lineSpacingRule)
public static String getName(int lineSpacingRule)
Parameters:
Parameter | Type | Description |
---|---|---|
lineSpacingRule | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
toString(int lineSpacingRule)
public static String toString(int lineSpacingRule)
Parameters:
Parameter | Type | Description |
---|---|---|
lineSpacingRule | int |
Returns: java.lang.String