Interface LineStyle

  • All Superinterfaces:
    Style
    All Known Implementing Classes:
    Curve, Line

    public interface LineStyle
    extends Style
    Implemented by page items that include a styled border.
    Author:
    Chris Jennings
    • Method Detail

      • getLineColor

        java.awt.Color getLineColor()
        Returns the color used to draw the border.
        Returns:
        the border color
      • getLineWidth

        float getLineWidth()
        Returns the width, in points, of the line.
        Returns:
        the border line width
      • getLineDashPattern

        DashPattern getLineDashPattern()
        Returns the dash pattern used to draw the line.
        Returns:
        the dash pattern for the border
      • setLineColor

        void setLineColor​(java.awt.Color borderColor)
        Sets the color used to draw the line.
        Parameters:
        borderColor -
      • setLineWidth

        void setLineWidth​(float borderWidth)
        Sets the width, in points, of the line.
        Parameters:
        borderWidth -
      • setLineDashPattern

        void setLineDashPattern​(DashPattern pat)
        Sets the dash pattern used to draw the line.
        Parameters:
        pat - the dash pattern type
      • setLineCap

        void setLineCap​(LineCap cap)
        Sets the line cap style used on line ends.
        Parameters:
        cap - the line cap type
      • getLineCap

        LineCap getLineCap()
        Returns the line cap style used on line ends.
        Returns:
        the line cap style
      • setLineJoin

        void setLineJoin​(LineJoin join)
        Sets the line join style used for paths containing multiple line or curve segments.
        Parameters:
        join - the new line join style