org.diamondspin
Class DSElementAdapter

java.lang.Object
  extended by org.diamondspin.DSElementAdapter
All Implemented Interfaces:
EventListener, DSElementListener
Direct Known Subclasses:
DSInertiaManagerBlob.DSInertiaListener, DSPiler

public class DSElementAdapter
extends Object
implements DSElementListener

A DSElementAdapter is an adapter for DSElementListener.

Copyright 2002-2009 DiamondSpin project. All Rights Reserved.

Permission to use, copy, modify and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and the following three paragraphs appear in all copies.

To request Permission to incorporate this software into commercial products contact one of the authors of the project.
  • Frederic Vernier (frederic.vernier@limsi.fr)
  • Chia Shen (chia_shen@harvard.edu)
  • Guillaume Besacier (guillaume.besacier@limsi.fr)
  • Daniel Wigdor (dwigdor@microsoft.com)

IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

THE AUTHORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE AUTHORS HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

Version:
: 1.0
Author:
: Frederic vernier, (frederic.vernier@gmail.com), Guillaume Besacier and Gaetan Rey

Constructor Summary
DSElementAdapter()
           
 
Method Summary
 void elementCenterChanged(DSElementEvent evt)
          Invoked when the DSelement change its own attach point to the global tabletop.
 void elementContentRepainted(DSElementEvent evt)
          Invoked when the DSelement has been repainted
 void elementDemoted(DSElementEvent evt)
          Invoked when the DSelement is dropped from the top "dragelement" to the elements in the view (if the view accept it !)
 void elementDropped(DSElementEvent evt)
          Invoked when the DSelement is dropped (then it was drag&dropped by the user)
 void elementDropped(DSElement dsElement_Arg, int type)
          Deprecated. As of DiamondSpin 2.1, replaced by elementDropped(DSElementEvent)
 void elementFolded(DSElement DSElement_Arg, double angle, double percent)
          Deprecated. As of DiamondSpin 2.1, replaced by elementFolded(DSElementEvent)
 void elementFolded(DSElementEvent evt)
          Invoked when the DSelement is folded (back side returned over the front side)
 boolean elementGrabbing(DSElementEvent evt)
          Invoked when the DSelement is beieng grabbed.
 boolean elementGrabbing(DSElement dsElement_Arg, int DTopLeftCornerX, int DTopLeftCornerY, int type)
          Deprecated. As of DiamondSpin 2.1, replaced by elementGrabbing(DSElementEvent)
 void elementMoved(DSElement DSElement_Arg, double Distance_Arg, double tangle)
          Deprecated. As of DiamondSpin 2.1, replaced by elementMoved(DSElementEvent)
 void elementMoved(DSElementEvent evt)
          Invoked when the DSelement is moved (d or alpha)
 void elementResized(DSElementEvent evt)
          Invoked when the DSelement is resized (width or height)
 void elementResized(DSElement dsElement_Arg, int width_Arg, int height_Arg)
          Deprecated. As of DiamondSpin 2.1, replaced by elementResized(DSElementEvent)
 void elementRotated(DSElement DSElement_Arg, double alpha)
          Deprecated. As of DiamondSpin 2.1, replaced by elementRotated(DSElementEvent)
 void elementRotated(DSElementEvent evt)
          Invoked when the DSelement is finished to be rotated (with the according corner)
 void elementZoomed(DSElement dsElement_Arg, double coeff_Arg)
          Deprecated. As of DiamondSpin 2.1, replaced by elementZoomed(DSElementEvent)
 void elementZoomed(DSElementEvent evt)
          Invoked when the DSelement is zoomed (zoom factor changed)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSElementAdapter

public DSElementAdapter()
Method Detail

elementZoomed

public void elementZoomed(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement is zoomed (zoom factor changed)

Specified by:
elementZoomed in interface DSElementListener

elementRotated

public void elementRotated(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement is finished to be rotated (with the according corner)

Specified by:
elementRotated in interface DSElementListener

elementResized

public void elementResized(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement is resized (width or height)

Specified by:
elementResized in interface DSElementListener

elementMoved

public void elementMoved(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement is moved (d or alpha)

Specified by:
elementMoved in interface DSElementListener

elementFolded

public void elementFolded(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement is folded (back side returned over the front side)

Specified by:
elementFolded in interface DSElementListener

elementGrabbing

public boolean elementGrabbing(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement is beieng grabbed. Must return false if don't want to be grabbed

Specified by:
elementGrabbing in interface DSElementListener

elementDropped

public void elementDropped(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement is dropped (then it was drag&dropped by the user)

Specified by:
elementDropped in interface DSElementListener

elementCenterChanged

public void elementCenterChanged(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement change its own attach point to the global tabletop. Changing center point may change location, orientation, and even zoom !

Specified by:
elementCenterChanged in interface DSElementListener

elementDemoted

public void elementDemoted(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement is dropped from the top "dragelement" to the elements in the view (if the view accept it !)

Specified by:
elementDemoted in interface DSElementListener

elementContentRepainted

public void elementContentRepainted(DSElementEvent evt)
Description copied from interface: DSElementListener
Invoked when the DSelement has been repainted

Specified by:
elementContentRepainted in interface DSElementListener

elementMoved

public void elementMoved(DSElement DSElement_Arg,
                         double Distance_Arg,
                         double tangle)
Deprecated. As of DiamondSpin 2.1, replaced by elementMoved(DSElementEvent)


elementRotated

public void elementRotated(DSElement DSElement_Arg,
                           double alpha)
Deprecated. As of DiamondSpin 2.1, replaced by elementRotated(DSElementEvent)


elementFolded

public void elementFolded(DSElement DSElement_Arg,
                          double angle,
                          double percent)
Deprecated. As of DiamondSpin 2.1, replaced by elementFolded(DSElementEvent)


elementZoomed

public void elementZoomed(DSElement dsElement_Arg,
                          double coeff_Arg)
Deprecated. As of DiamondSpin 2.1, replaced by elementZoomed(DSElementEvent)


elementResized

public void elementResized(DSElement dsElement_Arg,
                           int width_Arg,
                           int height_Arg)
Deprecated. As of DiamondSpin 2.1, replaced by elementResized(DSElementEvent)


elementGrabbing

public boolean elementGrabbing(DSElement dsElement_Arg,
                               int DTopLeftCornerX,
                               int DTopLeftCornerY,
                               int type)
Deprecated. As of DiamondSpin 2.1, replaced by elementGrabbing(DSElementEvent)


elementDropped

public void elementDropped(DSElement dsElement_Arg,
                           int type)
Deprecated. As of DiamondSpin 2.1, replaced by elementDropped(DSElementEvent)



Copyright © 2006 Frederic Vernier(LIMSI) Chia Shen(MERL) Guillaume Besacier(LIMSI). All Rights Reserved.