com.jhlabs.image
Class BorderFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.BorderFilter
- All Implemented Interfaces:
- ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable
public class BorderFilter
- extends AbstractBufferedImageOp
A filter to add a border around an image using the supplied Paint, which may be null for no painting.
Constructor Summary |
BorderFilter()
|
BorderFilter(int leftBorder,
int topBorder,
int rightBorder,
int bottomBorder,
java.awt.Paint borderPaint)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BorderFilter
public BorderFilter()
BorderFilter
public BorderFilter(int leftBorder,
int topBorder,
int rightBorder,
int bottomBorder,
java.awt.Paint borderPaint)
setLeftBorder
public void setLeftBorder(int leftBorder)
getLeftBorder
public int getLeftBorder()
setRightBorder
public void setRightBorder(int rightBorder)
getRightBorder
public int getRightBorder()
setTopBorder
public void setTopBorder(int topBorder)
getTopBorder
public int getTopBorder()
setBottomBorder
public void setBottomBorder(int bottomBorder)
getBottomBorder
public int getBottomBorder()
filter
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object