Class Hatch
java.lang.Object
com.independentsoft.office.odf.styles.Hatch
Represents hatch for filling graphic objects. A hatch is a simple pattern of straight lines that is repeated in the fill area.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.intgetAngle()Gets the rotation angle of hatch lines.getColor()Gets the color of hatch lines.Gets the name of a hatch style.Gets the distance between two hatch lines.getName()Gets the name by which a hatch element can be referenced.getStyle()Gets the rendering for a hatch.voidsetAngle(int angle)Sets the rotation angle of hatch lines.voidSets the color of hatch lines.voidsetDisplayName(String displayName)Sets the name of a hatch style.voidsetDistance(Size distance)Sets the distance between two hatch lines.voidSets the name by which a hatch element can be referenced.voidsetStyle(HatchStyle style)Sets the rendering for a hatch.toString()Converts the value of the current Hatch object to its equivalent string representation.
-
Constructor Details
-
Hatch
public Hatch()Initializes a new instance of the Hatch class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current Hatch object to its equivalent string representation. -
getName
Gets the name by which a hatch element can be referenced.- Returns:
- the name
-
setName
Sets the name by which a hatch element can be referenced.- Parameters:
name- the new name
-
getDisplayName
Gets the name of a hatch style.- Returns:
- the display name
-
setDisplayName
Sets the name of a hatch style.- Parameters:
displayName- the new display name
-
getStyle
Gets the rendering for a hatch.- Returns:
- the style
-
setStyle
Sets the rendering for a hatch.- Parameters:
style- the new style
-
getColor
Gets the color of hatch lines.- Returns:
- the color
-
setColor
Sets the color of hatch lines.- Parameters:
color- the new color
-
getDistance
Gets the distance between two hatch lines.- Returns:
- the distance
-
setDistance
Sets the distance between two hatch lines.- Parameters:
distance- the new distance
-
getAngle
public int getAngle()Gets the rotation angle of hatch lines.- Returns:
- the angle
-
setAngle
public void setAngle(int angle)Sets the rotation angle of hatch lines.- Parameters:
angle- the new angle
-