de.javagl.swogl
Class PickingInfo

java.lang.Object
  extended by de.javagl.swogl.PickingInfo

public class PickingInfo
extends java.lang.Object

This class stores information about a picked component. Instances of this class may be obtained from an IntersectionInfo.


Method Summary
 javax.swing.JComponent getComponent()
          Returns the component that has been picked
 java.awt.Point getPoint()
          Returns a copy of the point where the component was hit
 java.lang.String toString()
          Returns a String representation of this PickingInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getComponent

public javax.swing.JComponent getComponent()
Returns the component that has been picked

Returns:
The component that has been picked

getPoint

public java.awt.Point getPoint()
Returns a copy of the point where the component was hit

Returns:
A copy of the point where the component was hit

toString

public java.lang.String toString()
Returns a String representation of this PickingInfo

Overrides:
toString in class java.lang.Object
Returns:
A String representation of this PickingInfo