public class BorderFilter extends AbstractBufferedImageOp
Modifier and Type | Field and Description |
---|---|
private Paint |
borderPaint |
private int |
bottomBorder |
private int |
leftBorder |
private int |
rightBorder |
private int |
topBorder |
Constructor and Description |
---|
BorderFilter()
Construct a BorderFilter which does nothing.
|
BorderFilter(int leftBorder,
int topBorder,
int rightBorder,
int bottomBorder,
Paint borderPaint)
Construct a BorderFilter.
|
Modifier and Type | Method and Description |
---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
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 |
setBorderPaint(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.
|
String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
private int leftBorder
private int rightBorder
private int topBorder
private int bottomBorder
private Paint borderPaint
public BorderFilter()
public BorderFilter(int leftBorder, int topBorder, int rightBorder, int bottomBorder, 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 void setLeftBorder(int leftBorder)
leftBorder
- the number of pixels of border to add to the edgegetLeftBorder()
public int getLeftBorder()
setLeftBorder(int)
public void setRightBorder(int rightBorder)
rightBorder
- the number of pixels of border to add to the edgegetRightBorder()
public int getRightBorder()
setRightBorder(int)
public void setTopBorder(int topBorder)
topBorder
- the number of pixels of border to add to the edgegetTopBorder()
public int getTopBorder()
setTopBorder(int)
public void setBottomBorder(int bottomBorder)
bottomBorder
- the number of pixels of border to add to the edgegetBottomBorder()
public int getBottomBorder()
setBottomBorder(int)
public void setBorderPaint(Paint borderPaint)
borderPaint
- the paint with which to fill the bordergetBorderPaint()
public Paint getBorderPaint()
setBorderPaint(java.awt.Paint)
public BufferedImage filter(BufferedImage src, BufferedImage dst)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses