public enum WireSymbol extends java.lang.Enum<WireSymbol> implements CanvasFactory, Connected
Enum Constant and Description |
---|
BOTTOM2RIGHT |
HORIZONTAL |
LEFT_BULLET |
LEFT2BOTTOM |
LEFT2TOP |
RIGHT_BULLET |
TOP2RIGHT |
VERTICAL |
Modifier and Type | Method and Description |
---|---|
java.awt.Canvas |
getCanvas(Symbol symbol) |
boolean |
isConnected(Direction4 toDirection) |
static WireSymbol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WireSymbol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WireSymbol HORIZONTAL
public static final WireSymbol VERTICAL
public static final WireSymbol LEFT2BOTTOM
public static final WireSymbol LEFT2TOP
public static final WireSymbol TOP2RIGHT
public static final WireSymbol BOTTOM2RIGHT
public static final WireSymbol LEFT_BULLET
public static final WireSymbol RIGHT_BULLET
public static WireSymbol[] values()
for (WireSymbol c : WireSymbol.values()) System.out.println(c);
public static WireSymbol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.awt.Canvas getCanvas(Symbol symbol)
getCanvas
in interface CanvasFactory
public boolean isConnected(Direction4 toDirection)
isConnected
in interface Connected