public class BorderFilter extends AbstractBufferedImageOp
Constructor and Description |
---|
BorderFilter()
Construct a BorderFilter which does nothing.
|
BorderFilter(int leftBorder,
int topBorder,
int rightBorder,
int bottomBorder,
java.awt.Paint borderPaint)
Construct a BorderFilter.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
java.lang.String |
getBorderColor() |
java.awt.Paint |
getBorderPaint()
Get the border paint.
|
int |
getBottomBorder()
Returns the border border value.
|
int |
getLeftBorder()
Returns the left border value.
|
int |
getRightBorder()
Returns the right border value.
|
int |
getTopBorder()
Returns the top border value.
|
void |
setBorderColor(java.lang.String borderColor) |
void |
setBorderPaint(java.awt.Paint borderPaint)
Set the border paint.
|
void |
setBottomBorder(int bottomBorder)
Set the border size on the bottom edge.
|
void |
setLeftBorder(int leftBorder)
Set the border size on the left edge.
|
void |
setRightBorder(int rightBorder)
Set the border size on the right edge.
|
void |
setTopBorder(int topBorder)
Set the border size on the top edge.
|
java.lang.String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
public BorderFilter()
public BorderFilter(int leftBorder, int topBorder, int rightBorder, int bottomBorder, java.awt.Paint borderPaint)
leftBorder
- the left border valuetopBorder
- the top border valuerightBorder
- the right border valuebottomBorder
- the bottom border valueborderPaint
- the paint with which to fill the borderpublic java.lang.String getBorderColor()
public void setBorderColor(java.lang.String borderColor)
public void setLeftBorder(int leftBorder)
leftBorder
- the number of pixels of border to add to the edge, min-value 0getLeftBorder()
public int getLeftBorder()
setLeftBorder(int)
public void setRightBorder(int rightBorder)
rightBorder
- the number of pixels of border to add to the edge, min-value 0getRightBorder()
public int getRightBorder()
setRightBorder(int)
public void setTopBorder(int topBorder)
topBorder
- the number of pixels of border to add to the edge, min-value 0getTopBorder()
public int getTopBorder()
setTopBorder(int)
public void setBottomBorder(int bottomBorder)
bottomBorder
- the number of pixels of border to add to the edge, min-value 0getBottomBorder()
public int getBottomBorder()
setBottomBorder(int)
public void setBorderPaint(java.awt.Paint borderPaint)
borderPaint
- the paint with which to fill the bordergetBorderPaint()
public java.awt.Paint getBorderPaint()
setBorderPaint(java.awt.Paint)
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
public java.lang.String toString()
toString
in class java.lang.Object