Class AFPPainter.AFPBorderPainterAdapter

    • Method Detail

      • drawBorders

        public void drawBorders​(java.awt.Rectangle borderRect,
                                BorderProps bpsBefore,
                                BorderProps bpsAfter,
                                BorderProps bpsStart,
                                BorderProps bpsEnd,
                                java.awt.Color innerBackgroundColor)
                         throws IFException
        Description copied from class: BorderPainter
        Draws borders.
        Overrides:
        drawBorders in class BorderPainter
        Parameters:
        borderRect - the border rectangle
        bpsBefore - the border specification on the top side
        bpsAfter - the border specification on the bottom side
        bpsStart - the border specification on the left side
        bpsEnd - the border specification on the end side
        innerBackgroundColor - the inner background color
        Throws:
        IFException - if an error occurs while drawing the borders
      • isNotCollapseOuter

        private boolean isNotCollapseOuter​(BorderProps bp)
      • makeCornerClip

        private java.awt.geom.Area makeCornerClip​(int beforeRadius,
                                                  int startRadius,
                                                  java.awt.geom.AffineTransform transform)
      • makeCornerBorderBPD

        private java.awt.geom.Area makeCornerBorderBPD​(int beforeRadius,
                                                       int startRadius,
                                                       int beforeWidth,
                                                       int startWidth,
                                                       java.awt.geom.AffineTransform transform)
      • makeCornerBorderIPD

        private java.awt.geom.Area makeCornerBorderIPD​(int beforeRadius,
                                                       int startRadius,
                                                       int beforeWidth,
                                                       int startWidth,
                                                       java.awt.geom.AffineTransform transform)
      • hash

        private java.lang.String hash​(java.lang.String text)
      • paintCornersAsBitmap

        private void paintCornersAsBitmap​(org.apache.xmlgraphics.java2d.Graphics2DImagePainter painter,
                                          java.awt.Rectangle boundingBox,
                                          java.lang.String name)
                                   throws IFException
        Throws:
        IFException
      • arcTo

        protected void arcTo​(double startAngle,
                             double endAngle,
                             int cx,
                             int cy,
                             int width,
                             int height)
                      throws java.io.IOException
        Throws:
        java.io.IOException