java.lang.Object
org.sejda.sambox.pdmodel.graphics.PDLineDashPattern
- All Implemented Interfaces:
COSObjectable
A line dash pattern for stroking paths. Instances of PDLineDashPattern are immutable.
- Author:
- Ben Litchfield, John Hewson
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new line dash pattern, with no dashes and a phase of 0.PDLineDashPattern(COSArray array, int phase) Creates a new line dash pattern from a dash array and phase. -
Method Summary
-
Constructor Details
-
PDLineDashPattern
public PDLineDashPattern()Creates a new line dash pattern, with no dashes and a phase of 0. -
PDLineDashPattern
Creates a new line dash pattern from a dash array and phase.- Parameters:
array- the dash arrayphase- the phase
-
-
Method Details
-
getCOSObject
- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The
COSBasethat matches this Java object.
-
getPhase
public int getPhase()Returns the dash phase. This specifies the distance into the dash pattern at which to start the dash.- Returns:
- the dash phase
-
getDashArray
public float[] getDashArray()Returns the dash array.- Returns:
- the dash array
-
toString
-