|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.BorderFilter
public class BorderFilter
A filter to add a border around an image using the supplied Paint, which may be null for no painting.
Constructor Summary | |
---|---|
BorderFilter()
Construct a BorderFilter which does nothing. |
|
BorderFilter(int leftBorder,
int topBorder,
int rightBorder,
int bottomBorder,
java.awt.Paint borderPaint)
Construct a BorderFilter. |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
|
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 |
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()
|
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 borderMethod Detail |
---|
public 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(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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |