public class BorderFilter extends AbstractBufferedImageOp implements DynFiltering
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) |
BufferedImage |
filter(BufferedImage src,
Struct parameters) |
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 |
setBottom(int bottomBorder)
Set the border size on the bottom edge.
|
void |
setColor(Color borderColor)
Set the border color.
|
void |
setLeft(int leftBorder)
Set the border size on the left edge.
|
void |
setRight(int rightBorder)
Set the border size on the right edge.
|
void |
setTop(int topBorder)
Set the border size on the top edge.
|
String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
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 setLeft(int leftBorder)
leftBorder
- the number of pixels of border to add to the edgegetLeftBorder()
public int getLeftBorder()
#setLeftBorder
public void setRight(int rightBorder)
rightBorder
- the number of pixels of border to add to the edgegetRightBorder()
public int getRightBorder()
#setRightBorder
public void setTop(int topBorder)
topBorder
- the number of pixels of border to add to the edgegetTopBorder()
public int getTopBorder()
#setTopBorder
public void setBottom(int bottomBorder)
bottomBorder
- the number of pixels of border to add to the edgegetBottomBorder()
public int getBottomBorder()
#setBottomBorder
public void setColor(Color borderColor)
borderColor
- the color with which to fill the borderpublic Paint getBorderPaint()
#setBorderPaint
public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter
in interface BufferedImageOp
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
PageException
Copyright © 2015 Lucee