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
Constructors -
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, waitMethods 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:DSSFontMetricsReturns an array of strings, divided by a new line character- Specified by:
getLinesin interfaceDSSFontMetrics- Parameters:
text-Stringoriginal text to get lines from- Returns:
- an array of
Strings
-
computeTextBoundaryBox
Description copied from interface:DSSFontMetricsComputes a text boundary box- Specified by:
computeTextBoundaryBoxin interfaceDSSFontMetrics- Parameters:
text-Stringthe original text to get Dimension forfontSize- the size of a font- Returns:
AnnotationBoxof the text
-