Package eu.europa.esig.dss.pdf.visible
Class AbstractDSSFontMetrics
java.lang.Object
eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
- All Implemented Interfaces:
DSSFontMetrics
- Direct Known Subclasses:
ITextDSSFontMetrics
,JavaDSSFontMetrics
,PdfBoxDSSFontMetrics
Contains methods for dealing with textual visual signature creation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeTextBoundaryBox
(String text, float fontSize) Computes a text boundary boxString[]
Returns an array of strings, divided by a new line characterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.pdf.visible.DSSFontMetrics
getHeight, getWidth
-
Constructor Details
-
AbstractDSSFontMetrics
protected AbstractDSSFontMetrics()Default constructor
-
-
Method Details
-
getLines
Description copied from interface:DSSFontMetrics
Returns an array of strings, divided by a new line character- Specified by:
getLines
in interfaceDSSFontMetrics
- Parameters:
text
-String
original text to get lines from- Returns:
- an array of
String
s
-
computeTextBoundaryBox
Description copied from interface:DSSFontMetrics
Computes a text boundary box- Specified by:
computeTextBoundaryBox
in interfaceDSSFontMetrics
- Parameters:
text
-String
the original text to get Dimension forfontSize
- the size of a font- Returns:
AnnotationBox
of the text
-