Package com.itextpdf.io.font.otf
Class GlyphLine.GlyphLinePart
java.lang.Object
com.itextpdf.io.font.otf.GlyphLine.GlyphLinePart
- Enclosing class:
- GlyphLine
-
Constructor Summary
ConstructorDescriptionGlyphLinePart
(int start, int end) Creates a glyph line part object with given start and end values.GlyphLinePart
(int start, int end, String actualText) Creates a glyph line part object with given start, end and actual text values. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the actual text of the glyph line part.int
getEnd()
Retrieves the end of the glyph line part.int
getStart()
Retrieves the start of the glyph line part.boolean
Retrieves whether the glyph line part is reversed.setActualText
(String actualText) Sets the actual text of the glyph line part.setEnd
(int end) Sets the end of the glyph line part.setReversed
(boolean reversed) Sets whether the glyph line part is reversed.setStart
(int start) Sets the start of the glyph line part.
-
Constructor Details
-
GlyphLinePart
public GlyphLinePart(int start, int end) Creates a glyph line part object with given start and end values. Actual text is set to null.- Parameters:
-
start
- start value of the glyph line part -
end
- end value of the glyph line part
-
GlyphLinePart
Creates a glyph line part object with given start, end and actual text values.- Parameters:
-
start
- start value of the glyph line part -
end
- end value of the glyph line part -
actualText
- actual text
-
-
Method Details
-
getStart
public int getStart()Retrieves the start of the glyph line part.- Returns:
- start value of glyph line part
-
setStart
Sets the start of the glyph line part.- Parameters:
-
start
- start of the glyph line part - Returns:
- Altered glyph line part object
-
getEnd
public int getEnd()Retrieves the end of the glyph line part.- Returns:
- end value of glyph line part
-
setEnd
Sets the end of the glyph line part.- Parameters:
-
end
- end value of glyph line part - Returns:
- Altered glyph line part object
-
getActualText
Retrieves the actual text of the glyph line part.- Returns:
- Actual text of glyph line part
-
setActualText
Sets the actual text of the glyph line part.- Parameters:
-
actualText
- Actual text of glyph line part - Returns:
- Altered Glyph line part object
-
isReversed
public boolean isReversed()Retrieves whether the glyph line part is reversed.- Returns:
- True if it is reversed, false otherwise.
-
setReversed
Sets whether the glyph line part is reversed.- Parameters:
-
reversed
- true if it should be reversed, false otherwise - Returns:
- Altered glyph line part object
-