类 BorderFilter

    • 构造器详细资料

      • BorderFilter

        public BorderFilter()
        Construct a BorderFilter which does nothing.
      • BorderFilter

        public BorderFilter​(int leftBorder,
                            int topBorder,
                            int rightBorder,
                            int bottomBorder,
                            Paint borderPaint)
        Construct a BorderFilter.
        参数:
        leftBorder - the left border value
        topBorder - the top border value
        rightBorder - the right border value
        bottomBorder - the bottom border value
        borderPaint - the paint with which to fill the border
    • 方法详细资料

      • setLeftBorder

        public void setLeftBorder​(int leftBorder)
        Set the border size on the left edge.
        参数:
        leftBorder - the number of pixels of border to add to the edge
        另请参阅:
        getLeftBorder()
      • getLeftBorder

        public int getLeftBorder()
        Returns the left border value.
        返回:
        the left border value.
        另请参阅:
        setLeftBorder(int)
      • setRightBorder

        public void setRightBorder​(int rightBorder)
        Set the border size on the right edge.
        参数:
        rightBorder - the number of pixels of border to add to the edge
        另请参阅:
        getRightBorder()
      • getRightBorder

        public int getRightBorder()
        Returns the right border value.
        返回:
        the right border value.
        另请参阅:
        setRightBorder(int)
      • setTopBorder

        public void setTopBorder​(int topBorder)
        Set the border size on the top edge.
        参数:
        topBorder - the number of pixels of border to add to the edge
        另请参阅:
        getTopBorder()
      • getTopBorder

        public int getTopBorder()
        Returns the top border value.
        返回:
        the top border value.
        另请参阅:
        setTopBorder(int)
      • setBottomBorder

        public void setBottomBorder​(int bottomBorder)
        Set the border size on the bottom edge.
        参数:
        bottomBorder - the number of pixels of border to add to the edge
        另请参阅:
        getBottomBorder()
      • getBottomBorder

        public int getBottomBorder()
        Returns the border border value.
        返回:
        the border border value.
        另请参阅:
        setBottomBorder(int)
      • setBorderPaint

        public void setBorderPaint​(Paint borderPaint)
        Set the border paint.
        参数:
        borderPaint - the paint with which to fill the border
        另请参阅:
        getBorderPaint()