public class GUIPaintUtils
extends java.lang.Object
构造器和说明 |
---|
GUIPaintUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
drawBorder(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection) |
static void |
drawBorder(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection,
boolean isAuthorityEdited) |
static void |
fillNormal(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection,
boolean isAuthorityEdited,
boolean isPressedPainted)
正常状态填充
|
static void |
fillNormal(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection,
boolean isAuthorityEdited,
boolean isPressedPainted,
java.awt.Color color) |
static void |
fillPaint(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection,
java.awt.Paint paint,
int arc)
自定义画笔填充
|
static void |
fillPressed(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection,
boolean isAuthorityEdited)
按压状态填充
|
static void |
fillPressed(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection,
boolean isAuthorityEdited,
java.awt.Color pressedColor) |
static void |
fillRollOver(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection,
boolean isAuthorityEdited,
boolean isPressedPainted)
鼠标悬停状态填充
|
static void |
fillRollOver(java.awt.Graphics2D g2d,
int x,
int y,
int width,
int height,
boolean isRound,
int rectDirection,
boolean isAuthorityEdited,
boolean isPressedPainted,
java.awt.Color hoverColor) |
static void |
paintBorderShadow(java.awt.Graphics2D g2,
int shadowWidth,
java.awt.Shape shape,
java.awt.Color outColor,
java.awt.Color inColor) |
static java.awt.Shape |
paintShape(java.awt.Graphics2D g2,
float width,
float height,
float REC)
自定义popMenu画法,一种下面两圆角矩形
|
static void |
paintShapeBorder(java.awt.Graphics2D g2,
int x,
int y,
int width,
int height,
int rec)
自定义popMenu边框画法,一种下面两圆角矩形
|
public static final void drawBorder(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection)
public static final void drawBorder(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection, boolean isAuthorityEdited)
public static final void fillNormal(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection, boolean isAuthorityEdited, boolean isPressedPainted)
g2d
- 图形对象x
- x坐标y
- y坐标width
- 宽度height
- 高度isRound
- 是否圆角rectDirection
- 矩形方向isAuthorityEdited
- 是否权限编辑isPressedPainted
- 是否按压画public static final void fillNormal(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection, boolean isAuthorityEdited, boolean isPressedPainted, java.awt.Color color)
public static final void fillRollOver(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection, boolean isAuthorityEdited, boolean isPressedPainted)
g2d
- 图形对象x
- x坐标y
- y坐标width
- 宽度height
- 高度isRound
- 是否圆角rectDirection
- 矩形方向isAuthorityEdited
- 是否权限编辑isPressedPainted
- 是否按压画public static final void fillRollOver(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection, boolean isAuthorityEdited, boolean isPressedPainted, java.awt.Color hoverColor)
public static final void fillPressed(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection, boolean isAuthorityEdited)
g2d
- 图形对象x
- x坐标y
- y坐标width
- 宽度height
- 高度isRound
- 是否圆角rectDirection
- 矩形方向isAuthorityEdited
- 是否权限编辑public static final void fillPressed(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection, boolean isAuthorityEdited, java.awt.Color pressedColor)
public static final void fillPaint(java.awt.Graphics2D g2d, int x, int y, int width, int height, boolean isRound, int rectDirection, java.awt.Paint paint, int arc)
g2d
- 图形对象x
- x坐标y
- y坐标width
- 宽度height
- 高度isRound
- 是否圆角rectDirection
- 矩形方向paint
- 画笔arc
- 圆角尺寸public static final void paintBorderShadow(java.awt.Graphics2D g2, int shadowWidth, java.awt.Shape shape, java.awt.Color outColor, java.awt.Color inColor)
public static final java.awt.Shape paintShape(java.awt.Graphics2D g2, float width, float height, float REC)
public static final void paintShapeBorder(java.awt.Graphics2D g2, int x, int y, int width, int height, int rec)