code: public void setDirection(final int DIRECTION) {
          switch (DIRECTION) {
              case SwingUtilities.SOUTH:
                  direction = SwingUtilities.SOUTH;
                  break;
              case SwingUtilities.EAST:
                  direction = SwingUtilities.EAST;
                  break;
              case SwingUtilities.WEST:
                  direction = SwingUtilities.WEST;
                  break;
              case SwingUtilities.NORTH:
              default:
                  direction = SwingUtilities.NORTH;
                  break;
          }
          repaint(getInnerBounds());
      }
docs: Sets the direction of the lightbulb. Use the constants defined in SwingUtilities
  SwingUtilities.NORTH
  SwingUtilities.EAST
  SwingUtiltites.SOUTH
  SwingUtilities.WEST
  @param DIRECTION