类 BorderFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.BorderFilter
-
- 所有已实现的接口:
BufferedImageOp,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.
-
-
构造器概要
构造器 构造器 说明 BorderFilter()Construct a BorderFilter which does nothing.BorderFilter(int leftBorder, int topBorder, int rightBorder, int bottomBorder, Paint borderPaint)Construct a BorderFilter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)PaintgetBorderPaint()Get the border paint.intgetBottomBorder()Returns the border border value.intgetLeftBorder()Returns the left border value.intgetRightBorder()Returns the right border value.intgetTopBorder()Returns the top border value.voidsetBorderPaint(Paint borderPaint)Set the border paint.voidsetBottomBorder(int bottomBorder)Set the border size on the bottom edge.voidsetLeftBorder(int leftBorder)Set the border size on the left edge.voidsetRightBorder(int rightBorder)Set the border size on the right edge.voidsetTopBorder(int topBorder)Set the border size on the top edge.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
构造器详细资料
-
BorderFilter
public BorderFilter()
Construct a BorderFilter which does nothing.
-
BorderFilter
public BorderFilter(int leftBorder, int topBorder, int rightBorder, int bottomBorder, Paint borderPaint)Construct a BorderFilter.- 参数:
leftBorder- the left border valuetopBorder- the top border valuerightBorder- the right border valuebottomBorder- the bottom border valueborderPaint- the paint with which to fill the border
-
-
方法详细资料
-
setLeftBorder
public void setLeftBorder(int leftBorder)
Set the border size on the left edge.- 参数:
leftBorder- the number of pixels of border to add to the edge- 另请参阅:
getLeftBorder()
-
getLeftBorder
public int getLeftBorder()
Returns the left border value.- 返回:
- the left border value.
- 另请参阅:
setLeftBorder(int)
-
setRightBorder
public void setRightBorder(int rightBorder)
Set the border size on the right edge.- 参数:
rightBorder- the number of pixels of border to add to the edge- 另请参阅:
getRightBorder()
-
getRightBorder
public int getRightBorder()
Returns the right border value.- 返回:
- the right border value.
- 另请参阅:
setRightBorder(int)
-
setTopBorder
public void setTopBorder(int topBorder)
Set the border size on the top edge.- 参数:
topBorder- the number of pixels of border to add to the edge- 另请参阅:
getTopBorder()
-
getTopBorder
public int getTopBorder()
Returns the top border value.- 返回:
- the top border value.
- 另请参阅:
setTopBorder(int)
-
setBottomBorder
public void setBottomBorder(int bottomBorder)
Set the border size on the bottom edge.- 参数:
bottomBorder- the number of pixels of border to add to the edge- 另请参阅:
getBottomBorder()
-
getBottomBorder
public int getBottomBorder()
Returns the border border value.- 返回:
- the border border value.
- 另请参阅:
setBottomBorder(int)
-
setBorderPaint
public void setBorderPaint(Paint borderPaint)
Set the border paint.- 参数:
borderPaint- the paint with which to fill the border- 另请参阅:
getBorderPaint()
-
getBorderPaint
public Paint getBorderPaint()
Get the border paint.- 返回:
- the paint with which to fill the border
- 另请参阅:
setBorderPaint(java.awt.Paint)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
-
-