Class PdfDashPattern


  • public class PdfDashPattern
    extends java.lang.Object
    Represents the line dash pattern. The line dash pattern shall control the pattern of dashes and gaps used to stroke paths. It shall be specified by a dash, gap and a dash phase.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private float dash
      This is the length of a dash.
      private float gap
      This is the length of a gap.
      private float phase
      This is the phase.
    • Constructor Summary

      Constructors 
      Constructor Description
      PdfDashPattern()
      Creates a new line dash pattern.
      PdfDashPattern​(float dash)
      Creates a new line dash pattern.
      PdfDashPattern​(float dash, float gap)
      Creates a new line dash pattern.
      PdfDashPattern​(float dash, float gap, float phase)
      Creates a new line dash pattern.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getDash()
      Gets dash of PdfDashPattern.
      float getGap()
      Gets gap of PdfDashPattern.
      float getPhase()
      Gets phase of PdfDashPattern.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dash

        private float dash
        This is the length of a dash.
      • gap

        private float gap
        This is the length of a gap.
      • phase

        private float phase
        This is the phase.
    • Constructor Detail

      • PdfDashPattern

        public PdfDashPattern()
        Creates a new line dash pattern.
      • PdfDashPattern

        public PdfDashPattern​(float dash)
        Creates a new line dash pattern.
        Parameters:
        dash - length of dash
      • PdfDashPattern

        public PdfDashPattern​(float dash,
                              float gap)
        Creates a new line dash pattern.
        Parameters:
        dash - length of dash
        gap - length of gap
      • PdfDashPattern

        public PdfDashPattern​(float dash,
                              float gap,
                              float phase)
        Creates a new line dash pattern.
        Parameters:
        dash - length of dash
        gap - length of gap
        phase - this is the phase
    • Method Detail

      • getDash

        public float getDash()
        Gets dash of PdfDashPattern.
        Returns:
        float value.
      • getGap

        public float getGap()
        Gets gap of PdfDashPattern.
        Returns:
        float value.
      • getPhase

        public float getPhase()
        Gets phase of PdfDashPattern.
        Returns:
        float value.