Class StrokeDash
java.lang.Object
com.independentsoft.office.odf.styles.StrokeDash
Represents the dash style that is used for a stroke.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the name of a dash style.Gets the distance between the dashes of a stroke.getDots1()Gets the number of dashes for the first sequence in an alternating sequence of dots.Gets the length of the dashes.getDots2()Gets the number of dashes for the second sequence in an alternating sequence of dots.Gets the length of the dashes.getName()Gets the names that are used for referencing graphical elements.getStyle()Gets the rendering for a stroke-dash.voidsetDisplayName(String displayName)Sets the name of a dash style.voidsetDistance(Size distance)Sets the distance between the dashes of a stroke.voidSets the number of dashes for the first sequence in an alternating sequence of dots.voidsetDots1Length(Size dots1Length)Sets the length of the dashes.voidSets the number of dashes for the second sequence in an alternating sequence of dots.voidsetDots2Length(Size dots2Length)Sets the length of the dashes.voidSets the names that are used for referencing graphical elements.voidSets the rendering for a stroke-dash.toString()Converts the value of the current StrokeDash object to its equivalent string representation.
-
Constructor Details
-
StrokeDash
public StrokeDash()Initializes a new instance of the StrokeDash class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current StrokeDash object to its equivalent string representation. -
getName
Gets the names that are used for referencing graphical elements.- Returns:
- the name
-
setName
Sets the names that are used for referencing graphical elements.- Parameters:
name- the new name
-
getDisplayName
Gets the name of a dash style.- Returns:
- the display name
-
setDisplayName
Sets the name of a dash style.- Parameters:
displayName- the new display name
-
getStyle
Gets the rendering for a stroke-dash.- Returns:
- the style
-
setStyle
Sets the rendering for a stroke-dash.- Parameters:
style- the new style
-
getDots1
Gets the number of dashes for the first sequence in an alternating sequence of dots.- Returns:
- the dots1
-
setDots1
Sets the number of dashes for the first sequence in an alternating sequence of dots.- Parameters:
dots1- the new dots1
-
getDots1Length
Gets the length of the dashes.- Returns:
- the dots1 length
-
setDots1Length
Sets the length of the dashes.- Parameters:
dots1Length- the new dots1 length
-
getDots2
Gets the number of dashes for the second sequence in an alternating sequence of dots.- Returns:
- the dots2
-
setDots2
Sets the number of dashes for the second sequence in an alternating sequence of dots.- Parameters:
dots2- the new dots2
-
getDots2Length
Gets the length of the dashes.- Returns:
- the dots2 length
-
setDots2Length
Sets the length of the dashes.- Parameters:
dots2Length- the new dots2 length
-
getDistance
Gets the distance between the dashes of a stroke.- Returns:
- the distance
-
setDistance
Sets the distance between the dashes of a stroke.- Parameters:
distance- the new distance
-