Class JRBasePen

    • Constructor Detail

      • JRBasePen

        public JRBasePen()
    • 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
      • getLineStyle

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

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

        public void setLineStyle​(LineStyleEnum lineStyle)
        Description copied from interface: JRPen
        Specifies the line style.
        Specified by:
        setLineStyle in interface JRPen
        Parameters:
        lineStyle - 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
      • populateStyle

        public void populateStyle()
        Specified by:
        populateStyle in interface JRPen