public class SvgTextProperties extends Object
text and tspan SVG elements properties identifying their graphics state.
Created for internal usage.| Constructor and Description |
|---|
SvgTextProperties()
Creates new
SvgTextProperties instance. |
SvgTextProperties(SvgTextProperties textProperties)
Creates copy of the provided
SvgTextProperties instance. |
| Modifier and Type | Method and Description |
|---|---|
float[] |
getDashArray()
Gets dash array part of the dash pattern to be used when paths are stroked.
|
float |
getDashPhase()
Gets dash phase part of the dash pattern to be used when paths are stroked.
|
com.itextpdf.kernel.colors.Color |
getFillColor()
Gets text fill color.
|
float |
getFillOpacity()
Gets text fill opacity.
|
float |
getLineWidth()
Gets text line (or stroke) width.
|
com.itextpdf.kernel.colors.Color |
getStrokeColor()
Gets text stroke color.
|
float |
getStrokeOpacity()
Gets text stroke opacity.
|
List<Underline> |
getTextDecoration()
Gets the list of
Underline values representing text-decoration horizontal lines that can be an
underline, strikethrough or overline. |
SvgTextProperties |
setDashPattern(float[] dashArray,
float dashPhase)
Sets a description of the dash pattern to be used when paths are stroked.
|
SvgTextProperties |
setFillColor(com.itextpdf.kernel.colors.Color fillColor)
Sets text fill color.
|
SvgTextProperties |
setFillOpacity(float fillOpacity)
Sets text fill opacity.
|
SvgTextProperties |
setLineWidth(float lineWidth)
Sets text line (or stroke) width.
|
SvgTextProperties |
setStrokeColor(com.itextpdf.kernel.colors.Color strokeColor)
Sets text stroke color.
|
SvgTextProperties |
setStrokeOpacity(float strokeOpacity)
Sets text stroke opacity.
|
SvgTextProperties |
setTextDecoration(List<Underline> underlineList)
Sets the list of
Underline values representing text-decoration horizontal lines that can be an
underline, strikethrough or overline. |
public SvgTextProperties()
SvgTextProperties instance.public SvgTextProperties(SvgTextProperties textProperties)
SvgTextProperties instance.textProperties - SvgTextProperties instance to copypublic com.itextpdf.kernel.colors.Color getStrokeColor()
public SvgTextProperties setStrokeColor(com.itextpdf.kernel.colors.Color strokeColor)
strokeColor - stroke color to setSvgTextProperties instancepublic com.itextpdf.kernel.colors.Color getFillColor()
public SvgTextProperties setFillColor(com.itextpdf.kernel.colors.Color fillColor)
fillColor - fill color to setSvgTextProperties instancepublic float getLineWidth()
public SvgTextProperties setLineWidth(float lineWidth)
lineWidth - text line widthSvgTextProperties instancepublic float getStrokeOpacity()
public SvgTextProperties setStrokeOpacity(float strokeOpacity)
strokeOpacity - stroke opacity to setSvgTextProperties instancepublic float getFillOpacity()
public SvgTextProperties setFillOpacity(float fillOpacity)
fillOpacity - fill opacity to setSvgTextProperties instancepublic List<Underline> getTextDecoration()
Underline values representing text-decoration horizontal lines that can be an
underline, strikethrough or overline.Underline valuespublic SvgTextProperties setTextDecoration(List<Underline> underlineList)
Underline values representing text-decoration horizontal lines that can be an
underline, strikethrough or overline.underlineList - the list of Underline values to setSvgTextProperties instancepublic float[] getDashArray()
The line dash pattern is expressed as an array of the form [ dashArray dashPhase ], where dashArray is itself an array and dashPhase is an integer.
An empty dash array (first element in the array) and zero phase (second element in the array) can be used to restore the dash pattern to a solid line.
public float getDashPhase()
The line dash pattern is expressed as an array of the form [ dashArray dashPhase ], where dashArray is itself an array and dashPhase is an integer.
An empty dash array (first element in the array) and zero phase (second element in the array) can be used to restore the dash pattern to a solid line.
public SvgTextProperties setDashPattern(float[] dashArray, float dashPhase)
The line dash pattern is expressed as an array of the form [ dashArray dashPhase ], where dashArray is itself an array and dashPhase is a number.
An empty dash array (first element in the array) and zero phase (second element in the array) can be used to restore the dash pattern to a solid line.
dashArray - dash arraydashPhase - dash phase valueSvgTextProperties instanceCopyright © 1998–2025 Apryse Group NV. All rights reserved.