GP.Reactors
Class DoubleClickInGraphic

java.lang.Object
  |
  +--GP.Reactors.MouseClick
        |
        +--GP.Reactors.DoubleClickInGraphic
All Implemented Interfaces:
Reactor

public class DoubleClickInGraphic
extends MouseClick

This is a reactor that will call DoIt() on a GP.Doable you construct it with when the graphic it is also constructed with is double clicked on. A double click is two clicks happening within half a second of each other.


Constructor Summary
DoubleClickInGraphic(Graphic graphic, Doable DClickInGraphic)
          This constructor builds this reactor with a graphic and a GP.Doable.
 
Methods inherited from class GP.Reactors.MouseClick
AmIHot, CoolDown, GetGraphic, GetPosition, HeatUp, SetOccurances, TurnOff, TurnOn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleClickInGraphic

public DoubleClickInGraphic(Graphic graphic,
                            Doable DClickInGraphic)
This constructor builds this reactor with a graphic and a GP.Doable. The DoIt() method will be called on the doable if the user double clicks on the graphic.
Parameters:
graphic - The graphic that the user will double click on.
DClickInGraphic - The doable that DoIt is called on when the graphic is double clicked on.