public enum CurveInterferenceDraw extends Enum<CurveInterferenceDraw> implements InterferenceDraw
| Enum Constant and Description |
|---|
INSTANCE
实例
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g,
int width,
int height,
Font[] fonts,
Random random)
画干扰层
|
static CurveInterferenceDraw |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CurveInterferenceDraw[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurveInterferenceDraw INSTANCE
public static CurveInterferenceDraw[] values()
for (CurveInterferenceDraw c : CurveInterferenceDraw.values()) System.out.println(c);
public static CurveInterferenceDraw 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)
InterferenceDrawdraw in interface InterferenceDrawg - Graphics2Dwidth - 画布宽度height - 画布高度fonts - 字体random - RandomCopyright © 2024. All rights reserved.