title: Propagate MouseClick event from Papplet to object class
body: <p>So, I am using eclipse and processing to do some of the heavier coding in Java, but I am having a little trouble with my derived classes--</p>
  
  <p>I have a histogram class with a member variable parent which is the main PApplet running the program. Processing already has a nice MouseClicked event and I want my histogram class to be able to have its own onclicked method.</p>
  
  <p>So here is the big question: how do I get that MouseClicked event to trickle down to my objects?</p>
  
  <pre><code>public RunOverview(PApplet p, float[] simBuckets, float[] pointBuckets, int xP, int yP, int len, int hi)
  {
      this.parent = p;
      this.xPos = xP;
      this.yPos = yP;
      this.height = hi; 
   }
  // SOMEHOW LISTEN FOR parent.MouseClicked()........
  </code></pre>
  
  <p>Thanks in advance!</p>