Schnittstelle ParagraphProperties
- Alle bekannten Implementierungsklassen:
FieldElement, Paragraph
public interface ParagraphProperties
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final intDefault value for all indents, meaning there is no indent.static final doubleConstant for line spacing, meaning there is no relative value for the line spacing but that it is determined by an absolute valuestatic final intConstant for line spacing, meaning there is no absolute value for the line spacing but that it is determined in relation to the default line height of each line in the paragraph. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintReturns the value of the property 'first line indent'.Returns the formula whose return value determines the property 'first line indent'.intReturns the value of the property 'left indent'.Returns the formula whose return value determines the property 'left indent'.intReturns the absolute distance between baselines of the lines in this paragraph, measured in twips.Returns the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.doubleReturns the factor by which the default line spacing is to be multiplied for this paragraph.Returns the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph.intReturns the value of the property 'rightIndent'.Returns the formula whose return value determines the property 'right indent'.voidsetFirstLineIndent(int firstLineIndent) Sets the value of the property 'first line indent'.voidsetFirstLineIndentFormula(FormulaField formula) Sets the formula whose return value determines the property 'first line indent'.voidsetLeftIndent(int leftIndent) Sets the value of the property 'left indent'.voidsetLeftIndentFormula(FormulaField formula) Sets the formula whose return value determines the property 'left indent'.voidsetLineSpacingAbsolute(int newValue) Sets the absolute distance between baselines of the lines in this paragraph, measured in twips.voidSets the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.voidsetLineSpacingRelative(double newValue) Sets the factor by which the default line spacing is to be multiplied for this paragraph.voidSets the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph.voidsetRightIndent(int newValue) Sets the value of the property 'rightIndent'.voidsetRightIndentFormula(FormulaField formula) Sets the formula whose return value determines the property 'right indent'.
-
Felddetails
-
LINE_SPACING_RELATIVE
static final int LINE_SPACING_RELATIVEConstant for line spacing, meaning there is no absolute value for the line spacing but that it is determined in relation to the default line height of each line in the paragraph.- Siehe auch:
-
LINE_SPACING_ABSOLUTE
static final double LINE_SPACING_ABSOLUTEConstant for line spacing, meaning there is no relative value for the line spacing but that it is determined by an absolute value- Siehe auch:
-
INDENT_DEFAULT
static final int INDENT_DEFAULTDefault value for all indents, meaning there is no indent. Equivalent to 0.- Siehe auch:
-
-
Methodendetails
-
getFirstLineIndent
int getFirstLineIndent()Returns the value of the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).- Gibt zurück:
- The value of the property 'first line indent'.
- Seit:
- 6.0
-
setFirstLineIndent
void setFirstLineIndent(int firstLineIndent) Sets the value of the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).- Parameter:
firstLineIndent- The new value of the property 'first line indent'. May be negative (which would cause the first line to be left of the left margin).- Seit:
- 6.0
-
getFirstLineIndentFormula
FormulaField getFirstLineIndentFormula()Returns the formula whose return value determines the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).- Gibt zurück:
- The formula whose return value determines the property 'first line indent'.
- Seit:
- 8.0
-
setFirstLineIndentFormula
Sets the formula whose return value determines the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).- Parameter:
formula- The formula whose return value determines the property 'first line indent'.- Seit:
- 8.0
-
getLeftIndent
int getLeftIndent()Returns the value of the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).- Gibt zurück:
- The value of the property 'left indent'.
- Seit:
- 6.0
-
setLeftIndent
void setLeftIndent(int leftIndent) Sets the value of the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).- Parameter:
leftIndent- The new value of the property 'left indent'.- Löst aus:
IllegalArgumentException- If a negative number is passed- Seit:
- 6.0
-
getLeftIndentFormula
FormulaField getLeftIndentFormula()Returns the formula whose return value determines the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).- Gibt zurück:
- The formula whose return value determines the property 'left indent'.
- Seit:
- 8.0
-
setLeftIndentFormula
Sets the formula whose return value determines the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).- Parameter:
formula- The formula whose return value determines the property 'left indent'.- Seit:
- 8.0
-
getRightIndent
int getRightIndent()Returns the value of the property 'rightIndent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).- Gibt zurück:
- The current value of the property 'rightIndent'.
- Seit:
- 6.0
-
setRightIndent
void setRightIndent(int newValue) Sets the value of the property 'rightIndent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).- Parameter:
newValue- The new value of the property 'rightIndent'.- Löst aus:
IllegalArgumentException- If a negative number is passed- Seit:
- 6.0
-
getRightIndentFormula
FormulaField getRightIndentFormula()Returns the formula whose return value determines the property 'right indent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).- Gibt zurück:
- The formula whose return value determines the property 'right indent'.
- Seit:
- 8.0
-
setRightIndentFormula
Sets the formula whose return value determines the property 'right indent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).- Parameter:
formula- The formula whose return value determines the property 'right indent'.- Seit:
- 8.0
-
getLineSpacingAbsolute
int getLineSpacingAbsolute()Returns the absolute distance between baselines of the lines in this paragraph, measured in twips. If a relative factor has been set, this will return the constant LINE_SPACING_RELATIVE.- Gibt zurück:
- Absolute distance between baselines in this paragraph, measured in twips, or LINE_SPACING_RELATIVE
- Seit:
- 7.0
- Siehe auch:
-
setLineSpacingAbsolute
void setLineSpacingAbsolute(int newValue) Sets the absolute distance between baselines of the lines in this paragraph, measured in twips. It is also possible to set LINE_SPACING_RELATIVE, which restores the default setting.- Parameter:
newValue- Absolute distance between baselines in this paragraph, measured in twips, or LINE_SPACING_RELATIVE in order to restore the default setting.- Löst aus:
IllegalArgumentException- If a negative number is passed which is not LINE_SPACING_RELATIVE.- Seit:
- 7.0
- Siehe auch:
-
getLineSpacingAbsoluteFormula
FormulaField getLineSpacingAbsoluteFormula()Returns the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.- Gibt zurück:
- Absolute distance between baselines in this paragraph, measured in twips
- Seit:
- 8.0
- Siehe auch:
-
setLineSpacingAbsoluteFormula
Sets the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.- Parameter:
formula- formula whose return value determines the absolute distance between baselines in this paragraph, measured in twips- Seit:
- 8.0
- Siehe auch:
-
getLineSpacingRelative
double getLineSpacingRelative()Returns the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this number. If an absolute value has been set, this will return LINE_SPACING_ABSOLUTE instead.- Gibt zurück:
- Factor by which the default line spacing is to be multiplied for this paragraph, or LINE_SPACING_ABSOLUTE if an absolute line spacing distance has been set.
- Seit:
- 7.0
- Siehe auch:
-
setLineSpacingRelative
void setLineSpacingRelative(double newValue) Sets the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this number. Setting LINE_SPACING_ABSOLUTE will cause the value to be reset to its default, which is "1".- Parameter:
newValue- Factor by which the default line spacing is to be multiplied for this paragraph, or LINE_SPACING_ABSOLUTE if the default value is to be set (equivalent to "1")- Löst aus:
IllegalArgumentException- If a negative number is passed which is not LINE_SPACING_ABSOLUTE- Seit:
- 7.0
- Siehe auch:
-
getLineSpacingRelativeFormula
FormulaField getLineSpacingRelativeFormula()Returns the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this formula's value.- Gibt zurück:
- formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph
- Seit:
- 8.0
- Siehe auch:
-
setLineSpacingRelativeFormula
Sets the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this formula's value.- Parameter:
formula- formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph- Seit:
- 8.0
- Siehe auch:
-