public class NinePatchBorder
extends javax.swing.border.AbstractBorder
本类可以很好地被重用于NinePatch图作为border实现的场景哦.
构造器和说明 |
---|
NinePatchBorder(java.awt.Insets insets,
org.jb2011.ninepatch4j.NinePatch np)
Instantiates a new nine patch border.
|
限定符和类型 | 方法和说明 |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets) |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
public NinePatchBorder(java.awt.Insets insets, org.jb2011.ninepatch4j.NinePatch np)
insets
- the insetsnp
- the nppublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
在接口中 javax.swing.border.Border
getBorderInsets
在类中 javax.swing.border.AbstractBorder
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
getBorderInsets
在类中 javax.swing.border.AbstractBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
在接口中 javax.swing.border.Border
paintBorder
在类中 javax.swing.border.AbstractBorder