Class SvgTextProperties
text and tspan SVG elements properties identifying their graphics state. Created for internal usage.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates newSvgTextPropertiesinstance.SvgTextProperties(SvgTextProperties textProperties) Creates copy of the providedSvgTextPropertiesinstance. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]Gets dash array part of the dash pattern to be used when paths are stroked.floatGets dash phase part of the dash pattern to be used when paths are stroked.Gets text fill color.floatGets text fill opacity.floatGets text line (or stroke) width.Gets text stroke color.floatGets text stroke opacity.Gets the list ofUnderlinevalues representing text-decoration horizontal lines that can be an underline, strikethrough or overline.setDashPattern(float[] dashArray, float dashPhase) Sets a description of the dash pattern to be used when paths are stroked.setFillColor(Color fillColor) Sets text fill color.setFillOpacity(float fillOpacity) Sets text fill opacity.setLineWidth(float lineWidth) Sets text line (or stroke) width.setStrokeColor(Color strokeColor) Sets text stroke color.setStrokeOpacity(float strokeOpacity) Sets text stroke opacity.setTextDecoration(List<Underline> underlineList) Sets the list ofUnderlinevalues representing text-decoration horizontal lines that can be an underline, strikethrough or overline.
-
Constructor Details
-
SvgTextProperties
public SvgTextProperties()Creates newSvgTextPropertiesinstance. -
SvgTextProperties
Creates copy of the providedSvgTextPropertiesinstance.- Parameters:
-
textProperties-SvgTextPropertiesinstance to copy
-
-
Method Details
-
getStrokeColor
Gets text stroke color.- Returns:
- stroke color
-
setStrokeColor
Sets text stroke color.- Parameters:
-
strokeColor- stroke color to set - Returns:
-
this same
SvgTextPropertiesinstance
-
getFillColor
Gets text fill color.- Returns:
- fill color
-
setFillColor
Sets text fill color.- Parameters:
-
fillColor- fill color to set - Returns:
-
this same
SvgTextPropertiesinstance
-
getLineWidth
public float getLineWidth()Gets text line (or stroke) width.- Returns:
- text line width
-
setLineWidth
Sets text line (or stroke) width.- Parameters:
-
lineWidth- text line width - Returns:
-
this same
SvgTextPropertiesinstance
-
getStrokeOpacity
public float getStrokeOpacity()Gets text stroke opacity.- Returns:
- stroke opacity
-
setStrokeOpacity
Sets text stroke opacity.- Parameters:
-
strokeOpacity- stroke opacity to set - Returns:
-
this same
SvgTextPropertiesinstance
-
getFillOpacity
public float getFillOpacity()Gets text fill opacity.- Returns:
- fill opacity
-
setFillOpacity
Sets text fill opacity.- Parameters:
-
fillOpacity- fill opacity to set - Returns:
-
this same
SvgTextPropertiesinstance
-
getTextDecoration
Gets the list ofUnderlinevalues representing text-decoration horizontal lines that can be an underline, strikethrough or overline.- Returns:
-
the list of
Underlinevalues
-
setTextDecoration
Sets the list ofUnderlinevalues representing text-decoration horizontal lines that can be an underline, strikethrough or overline.- Parameters:
-
underlineList- the list ofUnderlinevalues to set - Returns:
-
this same
SvgTextPropertiesinstance
-
getDashArray
public float[] getDashArray()Gets dash array part of the dash pattern to be used when paths are stroked. Default value is solid line.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.
- Returns:
- float dash array
-
getDashPhase
public float getDashPhase()Gets dash phase part of the dash pattern to be used when paths are stroked. Default value is solid line.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.
- Returns:
- float dash array
-
setDashPattern
Sets a description of the dash pattern to be used when paths are stroked. Default value is solid line.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.
- Parameters:
-
dashArray- dash array -
dashPhase- dash phase value - Returns:
-
this same
SvgTextPropertiesinstance
-