public Joystick() {
super("Joystick", Strings.getter("joystickComponent"));
setAttributes(new Attribute[] { ATTR_WIDTH, Io.ATTR_COLOR },
new Object[] { BitWidth.create(4), Color.RED });
setKeyConfigurator(new BitWidthConfigurator(ATTR_WIDTH, 2, 5));
setOffsetBounds(Bounds.create(-30, -10, 30, 30));
setIconName("joystick.gif");
setPorts(new Port[] {
new Port(0, 0, Port.OUTPUT, ATTR_WIDTH),
new Port(0, 10, Port.OUTPUT, ATTR_WIDTH),