Class JRBasePen

    • Constructor Detail

    • Method Detail

      • getLineWidth

        public Float getLineWidth()
        Description copied from interface: JRPen
        Gets the line width used for this pen.
        Specified by:
        getLineWidth in interface JRPen
        Returns:
        line width
      • setLineWidth

        public void setLineWidth​(Float lineWidth)
        Description copied from interface: JRPen
        Sets the line width.
        Specified by:
        setLineWidth in interface JRPen
        Parameters:
        lineWidth - the line width
      • getLineStyleValue

        public LineStyleEnum getLineStyleValue()
        Description copied from interface: JRPen
        Indicates the line style used for this pen.
        Specified by:
        getLineStyleValue in interface JRPen
        Returns:
        a value representing one of the line style constants in LineStyleEnum
      • getOwnLineStyleValue

        public LineStyleEnum getOwnLineStyleValue()
        Description copied from interface: JRPen
        Indicates the line style used for this pen.
        Specified by:
        getOwnLineStyleValue in interface JRPen
        Returns:
        a value representing one of the line style constants in LineStyleEnum
      • setLineStyle

        public void setLineStyle​(LineStyleEnum lineStyleValue)
        Description copied from interface: JRPen
        Specifies the line style.
        Specified by:
        setLineStyle in interface JRPen
        Parameters:
        lineStyleValue - a value representing one of the line style constants in LineStyleEnum
      • getLineColor

        public Color getLineColor()
        Description copied from interface: JRPen
        Gets the line color.
        Specified by:
        getLineColor in interface JRPen
      • setLineColor

        public void setLineColor​(Color lineColor)
        Description copied from interface: JRPen
        Sets the line color.
        Specified by:
        setLineColor in interface JRPen
      • getStyleNameReference

        public String getStyleNameReference()
      • getHashCode

        public int getHashCode()
        Description copied from interface: Deduplicable
        Returns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwh Deduplicable.isIdentical(Object), i.e. if two objects are identical they should have the same hash code.
        Specified by:
        getHashCode in interface Deduplicable
        Returns:
        deduplication hash code
      • isIdentical

        public boolean isIdentical​(Object object)
        Description copied from interface: Deduplicable
        Determines if this instance is identical to another object.
        Specified by:
        isIdentical in interface Deduplicable
        Parameters:
        object - the object to compare with this instance
        Returns:
        true if the two objects are identical and can be deduplicated