public enum SmallCharsBackgroundDraw extends Enum<SmallCharsBackgroundDraw> implements BackgroundDraw
| Enum Constant and Description |
|---|
INSTANCE
实例
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g,
int width,
int height,
Font[] fonts,
Random random)
画背景层
|
static SmallCharsBackgroundDraw |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SmallCharsBackgroundDraw[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmallCharsBackgroundDraw INSTANCE
public static SmallCharsBackgroundDraw[] values()
for (SmallCharsBackgroundDraw c : SmallCharsBackgroundDraw.values()) System.out.println(c);
public static SmallCharsBackgroundDraw valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void draw(Graphics2D g, int width, int height, Font[] fonts, Random random)
BackgroundDrawdraw in interface BackgroundDrawg - Graphics2Dwidth - 画布宽度height - 画布高度fonts - 字体random - RandomCopyright © 2024. All rights reserved.