Class LineDashPatternSpec

    • Constructor Detail

      • LineDashPatternSpec

        public LineDashPatternSpec()
      • LineDashPatternSpec

        public LineDashPatternSpec​(@Nonnegative
                                   float fPattern)
      • LineDashPatternSpec

        public LineDashPatternSpec​(@Nonnull
                                   float[] aPattern,
                                   float fPhase)
        Parameters:
        aPattern - The pattern array. May not be null. Must have 0-2 items. 0 items means solid line, 1 item means identical on and off length and 2 items means potentially different on and off length. All contains values must be > 0.
        fPhase - The phase of the pattern. Where to start the painting, first counting on than off.
    • Method Detail

      • getPattern

        @Nonnull
        @ReturnsMutableCopy
        public final float[] getPattern()
        Returns:
        A copy with all patterns. 0-2 elements.
      • getPatternCOSArray

        @Nonnull
        @ReturnsMutableCopy
        public final org.apache.pdfbox.cos.COSArray getPatternCOSArray()
        Returns:
        A COS array with 0-2 elements. Never null.
      • getPhase

        public final float getPhase()
        Returns:
        The phase to use.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object