// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_Timer__
#define __javax_swing_Timer__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
      namespace event
      {
        class ActionEvent;
        class ActionListener;
      }
    }
  }
  namespace javax
  {
    namespace swing
    {
      class Timer;
      namespace event
      {
        class EventListenerList;
      }
    }
  }
}

class javax::swing::Timer : public ::java::lang::Object
{
public:
  virtual void addActionListener (::java::awt::event::ActionListener *);
  virtual void removeActionListener (::java::awt::event::ActionListener *);
  virtual JArray< ::java::util::EventListener *> *getListeners (::java::lang::Class *);
  virtual JArray< ::java::awt::event::ActionListener *> *getActionListeners ();
public:  // actually protected
  virtual void fireActionPerformed (::java::awt::event::ActionEvent *);
public: // actually package-private
  virtual void fireActionPerformed ();
public:
  static void setLogTimers (jboolean);
  static jboolean getLogTimers ();
  virtual void setDelay (jint);
  virtual jint getDelay ();
  virtual void setInitialDelay (jint);
  virtual void setRepeats (jboolean);
public: // actually package-private
  virtual jboolean isRunning () { return running; }
  virtual void start ();
  virtual void stop ();
public:
  Timer ();
public:  // actually protected
  ::javax::swing::event::EventListenerList * __attribute__((aligned(__alignof__( ::java::lang::Object )))) listenerList;
public: // actually package-private
  jint ticks;
  static jboolean verbose;
  jboolean running;
  jboolean repeat_ticks;
  jlong interval;
  jlong init_delay;

  friend class javax_swing_Timer$Waker;
public:

  static ::java::lang::Class class$;
};

#endif /* __javax_swing_Timer__ */
