Teaching:TUW - UE InfoVis WS 2007/08 - Gruppe 01 - Aufgabe 1 - Drag and Drop: Difference between revisions

From InfoVis:Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[Motif Programmer's Guide] Motif Programmer's Guide, 1994-1996, The Santa Cruz Operation, http://www.s-and-b.ru/syshlp/motif_guide/MotifProgGuide/TOC.html
==History==
The first drag & drop implementation for Windows was a shareware program called Aporia by Jeffrey Greenberg in 1988 under Windows 2.0, and later commercialized as WinTools. This program elaborated the single icon on the Macintosh that supported drag & drop, the trash icon. In Aporia/WinTools all icons had functions that could be obtained by double clicking the left mouse button, by clicking on the right mouse button, or by dragging onto one of several functional icons, such as printing, copying, viewing, and other actions. If an icon was double-clicked on and ran a program, the icon changed to indicate that a program was running, and if it was then dragged to the trash, the program was exited.  
 
Subsequently numerous other competitors provided drag & drop desktop replacements to the standard Windows interface including the Norton Desktop, Xerox, NewWave, and Central Point. In Windows 95, Microsoft prevented developers from taking over the desktop and released a drag & drop model of their own.


===References===
[Wikipedia: Drag-and-drop] Drag-and-drop, Wikipedia, 6 November 2007,http://en.wikipedia.org/wiki/Drag_and_drop


==Overview of User Interaction==
==Technical Overview==


A drag and drop transaction consists of the following actions:
A drag and drop transaction consists of the following actions:


  1. A user presses and holds BTransfer, usually mouse button 2, over a source object starting a drag transaction. The application owning that object is the initiator of the drag. The current pointer is replaced by a drag icon-a picture representing the item being dragged.
*A user presses and holds BTransfer, usually mouse button 2, over a source object starting a drag transaction. The application owning that object is the initiator of the drag. The current pointer is replaced by a drag icon-a picture representing the item being dragged.
  2. The user moves the pointer. From now until a drop occurs, the drag icon replaces the mouse pointer.
*The user moves the pointer. From now until a drop occurs, the drag icon replaces the mouse pointer.
  3. The user drops the object, usually by releasing the mouse button.  
*The user drops the object, usually by releasing the mouse button.  


Locations on the screen that can accept drops are drop sites, and the application owning that drop site is the destination or receiver.
Locations on the screen that can accept drops are drop sites, and the application owning that drop site is the destination or receiver.
Line 21: Line 26:


The user can cancel the drag at any time by pressing KCancel, usually Escape.
The user can cancel the drag at any time by pressing KCancel, usually Escape.
===Overview of Drag-Over Effects===


The drag icon consists of three parts:
===References===


    * The source icon is a picture representing the type of the source object, such as text.
[Motif Programmer's Guide] Motif Programmer's Guide, 1994-1996, The Santa Cruz Operation, http://www.s-and-b.ru/syshlp/motif_guide/MotifProgGuide/TOC.html
    * The state icon can be used to show whether or not the object being dragged can be dropped at its current location on the screen.
    * The operation icon can be used to show what action should happen when the drop takes place.  


In the following illustration, the running figure is the source icon, the arrow in the upper left is the state icon, and the rectangles with the corner folded over indicate a Copy is desired.
[[Image:Runner3.gif|left|Icon]]
These parts can be combined (blended) and attached to each other in different ways. The default blending and attachment are shown in the previous illustration.


Parts of the drag icon may change shape or color as it is being dragged through potential drop sites, providing visual feedback about possible drop sites to the user. These changes are drag-over effects.
==Drag & Drop in Information Visualization==


Applications can use the default drag icon effects, or provide more sophisticated or custom drag icons. The application or user can customize these drag-over effects in resource files.
===Command Post of the Future (CPOF)===
====Drag States====


During a drag, there are three states that describe the relationship of a drag icon to what is under it at the time:
[[Image:Cpof_rev2.jpg|150px|thumb|CPOF]]


Valid drop site
The United States Army's Command Post of the Future (CPOF) is a C2 software system that allows commanders to maintain topsight over the battlefield; collaborate with superiors, peers and subordinates over live data; and communicate their intent.
    The drag icon is over a drop site on which it can potentially be dropped (this is only a hint; when the drop is actually attempted, further processing may show that the drop cannot actually be done).
Invalid drop site
    The drag icon is over a drop site, but it cannot be dropped there.
No drop site
    The drag icon is not over a registered drop site.  


The default state icon for all three states is the same: an arrow in the upper left corner of the drag icon. Because the icon is the same for all three states, it appears not to change during the drag. The application or the user can provide custom state icons or colors in a resource file.
All visual elements in CPOF are interactive via drag-and-drop gestures. Users can drag data-elements and annotation from any visualization framework into any other (i.e., from a chart to a table), which reveal different data-attributes in context depending on the visualization used. Most data-elements can be grouped and nested via drag-and-drop to form associations that remain with the data in all of its views.Drag-and-drop composition on live visualizations is CPOF's primary mechanism for editing data values, such as locations on a map or tasks on a schedule (for example, moving an event-icon on a map changes the lat/lon values of that event in the shared repository; moving a task icon on a schedule changes its time-based values in the shared repository).  
===Drag Operations===
The results of editing gestures are conveyed in real-time to all observers and users of a visualization; when one user moves an event on a map, for example, that event-icon moves on all maps and shared views, such that all users see its new location immediately. Data inputs from warfighters are conveyed to all collaborators as the "natural" result of a drop-gesture in-situ, requiring no explicit publishing mechanism.


The user specifies what action is to take place when the drop occurs by pressing certain keys when the drag starts or while the drag is in process:
====References====
[Wikipedia: Command Post of the Future] The United States Army's Command Post of the Future (CPOF), Wikipedia, 20 July 2007, http://en.wikipedia.org/wiki/Command_Post_of_the_Future


Shift only
[General Dynamics C4 System] General Dynamics C4 Systems, 2007,http://www.gdc4s.com/content/detail.cfm?item=2a58f8e2-ef2b-4bb1-9251-42ee4961dd7f
    Force a move from the initiator to the receiver client (Move)
Ctrl only
    Force a copy from the initiator to the receiver client (Copy)
Shift and Ctrl
    Force a link between the initiator and receiver clients (Link)


The operation chosen by the user must be valid for both the drag source and the drop site, or the drop site will be considered invalid.
===A Drag-and-Drop Strategy for Labeling Photos===


If the user does not specify an operation, one is chosen by the toolkit. It choses an operation that is valid for both the drag source and drop site. Move is the first choice, Copy is the second, and Link is the third. If the system cannot find a valid operation, the drop site is considered invalid.
[[Image:Clipboard01.jpg|150px|thumb|Figure 1. US Map with City Names]]


The operation icon reflects the operation chosen by the user or by the system. If the operation is changed by the user during the drag, the operation icon changes also.
[[Image:Clipboard03.jpg|150px|thumb|Figure 2. Hyperbolic Tree]]


The operation icon may change as the drag icon moves to different drop sites if the drop sites accept different operations.
[[Image:Clipboard02.jpg|150px|thumb|Figure 3. LifeLines Medical Patient History]]
==Overview of Drag-Under Effects==


A widget registered as a drop site may change visually as a drag icon passes over it. These visual cues are drag-under effects. The sensitive area of the widget is the part that responds to drag and drop. By default it is the whole widget, but applications can specify that only parts of the widget respond to drag and drop.
Annotation of photos is a variation on previously explored problems such as annotation on maps in which the challenge is to place city, state, river, or lake labels close to the features. There is a long history of work on this problem, but new possibilities emerge because of the dynamics of the computer screen (Figure 1).
However, annotation is usually seen as an authoring process conducted by specialists and users only chose whether to show or hide annotations. Variations on annotation also come from the placement of labels on markers in information visualization tasks such as in tree structures, such in the hyperbolic tree (Figure 2) or in medical histories, such as LifeLines (Figure 3).


Various highlighting styles are possible:
Previous work on annotation focused on writing programs to make label placements that reduced overlaps, but there are many situations in which it is helpful for users to place labels manually, much like post-it notes, on documents, photos, maps, diagrams, webpages, etc.  Annotation of paper and electronic documents by hand is also a much-studied topic with continuing innovations.
While many systems allow notes to be placed on a document or object, the demands of annotating personal photo libraries are worthy of special study.  We believe that personal photo libraries are a special case because users are concentrating on the photos (and may have a low interested in the underlying technology), are concerned about the social aspects of sharing photos, and are intermittent users.  They seek enjoyment and have little patience for form filling or data entry.


    * A border around the sensitive area of the drop site widget. This is the default value.
====References====
    * The sensitive area of the drop site widget looks pushed out.
[A Drag-and-Drop Strategy for Labeling Photos] A Drag-and-Drop Strategy for Labeling Photos, Ben Shneiderman, Hyunmo Kang
    * The sensitive area of the drop site widget looks pushed in.
Dept. of Computer Science, Human-Computer Interaction Laboratory, Institute for Advanced Computer Studies & Institute for Systems Research University of Maryland, 2000, https://drum.umd.edu/dspace/bitstream/1903/1068/2/CS-TR-4129.pdf
    * A special pixmap is displayed within the sensitive area of the drop site widget, overwriting what is normally there.
    * No drag-under effects are used for the drop site widget.  


Applications can use the default drag-under visual effects, or create more sophisticated or custom effects, such as special animation or sound effects.
==Overview of Drop Effects==


Visual effects also take place during the drop:
===Lookmark===
A 2.5D Web Information Visualization System
[[Image:Clipboard04.jpg|150px|thumb|Lookmark user interface screenshot]]


    * The drag icon appears to sit over the drop site while the processing for the drop is finishing, but the standard cursor is restored and can be used normally.
Lookmarks are thumbnails of existing web pages that can be
    * The source icon appears to melt into the drop site if the drop is successful.
arranged within a 2.5-dimensional space, just like documents can be arranged
    * The source icon appears to snap back to the source if the drop is unsuccessful.
on a normal desk. The Lookmark system offers the user the opportunity of
    * A dialog window containing information about a drop site should appear if the user has requested help and the receiver client provides help, otherwise nothing happens.
taking individual web pages and structuring and managing them within a 2.5-
    * The source icon appears to snap back to the source and the previous X cursor returns if Cancel is requested. All drag-under and drag-over effects are removed.  
dimensional space.
In Lookmark both standard devices, mouse and
keyboard, can be used. Mouse handling is limited to single click, double click and
drag-and-drop. The meaning of mouse events depends on the context of the object that
receives the event:
* Thumbnails. With a single mouse click one can add resp. delete the clicked
thumbnail to resp. from the current selection. At the same time the name of the
corresponding web page is displayed in the status bar of the user interface. By
double clicking on a specific thumbnail, one can open the corresponding web page
in the associated Web-browser. By using drag-and-drop one can move a thumbnail
along the horizontal and depth dimension (X- and Z-axis).
* Groups of thumbnails. Thumbnails in a group are handled like single thumbnails.
Groups of thumbnails can be moved simultaneously by dragging the group label.
* Selections. Dragging a thumbnail of a selection moves all selected thumbnails. A
selection can be dissolved by clicking somewhere in the manipulation panel.


These drop effects cannot be changed by the application or the user.
====References====
[A 2.5D Web Information Visualization System] Christian Breiteneder, Horst Eidenberger, Geert Fiedler and Markus Raab
Vienna University of Technology, Institute of Software Technology and Interactive Systems, 24.7.2002, http://www.ims.tuwien.ac.at/media/documents/publications/eurasia2002.pdf

Revision as of 16:57, 9 November 2007

History

The first drag & drop implementation for Windows was a shareware program called Aporia by Jeffrey Greenberg in 1988 under Windows 2.0, and later commercialized as WinTools. This program elaborated the single icon on the Macintosh that supported drag & drop, the trash icon. In Aporia/WinTools all icons had functions that could be obtained by double clicking the left mouse button, by clicking on the right mouse button, or by dragging onto one of several functional icons, such as printing, copying, viewing, and other actions. If an icon was double-clicked on and ran a program, the icon changed to indicate that a program was running, and if it was then dragged to the trash, the program was exited.

Subsequently numerous other competitors provided drag & drop desktop replacements to the standard Windows interface including the Norton Desktop, Xerox, NewWave, and Central Point. In Windows 95, Microsoft prevented developers from taking over the desktop and released a drag & drop model of their own.

References

[Wikipedia: Drag-and-drop] Drag-and-drop, Wikipedia, 6 November 2007,http://en.wikipedia.org/wiki/Drag_and_drop

Technical Overview

A drag and drop transaction consists of the following actions:

  • A user presses and holds BTransfer, usually mouse button 2, over a source object starting a drag transaction. The application owning that object is the initiator of the drag. The current pointer is replaced by a drag icon-a picture representing the item being dragged.
  • The user moves the pointer. From now until a drop occurs, the drag icon replaces the mouse pointer.
  • The user drops the object, usually by releasing the mouse button.

Locations on the screen that can accept drops are drop sites, and the application owning that drop site is the destination or receiver.

The drag icon can be dropped anywhere on the screen. However, only certain widgets have registered themselves as drop sites and are able to process the drop.

The receiver application usually performs some action on the information represented by the dragged icon. The initiator application may also perform some action based on the results of a drag transaction.

A drop can be between applications or within the same application. An application can be both source and destination of a drop, source only, destination only, or not participate in drag and drop at all.

The user can request help about a drop site, if available, by dragging to the drop site, and pressing KHelp (usually F1).

The user can cancel the drag at any time by pressing KCancel, usually Escape.

References

[Motif Programmer's Guide] Motif Programmer's Guide, 1994-1996, The Santa Cruz Operation, http://www.s-and-b.ru/syshlp/motif_guide/MotifProgGuide/TOC.html


Drag & Drop in Information Visualization

Command Post of the Future (CPOF)

CPOF

The United States Army's Command Post of the Future (CPOF) is a C2 software system that allows commanders to maintain topsight over the battlefield; collaborate with superiors, peers and subordinates over live data; and communicate their intent.

All visual elements in CPOF are interactive via drag-and-drop gestures. Users can drag data-elements and annotation from any visualization framework into any other (i.e., from a chart to a table), which reveal different data-attributes in context depending on the visualization used. Most data-elements can be grouped and nested via drag-and-drop to form associations that remain with the data in all of its views.Drag-and-drop composition on live visualizations is CPOF's primary mechanism for editing data values, such as locations on a map or tasks on a schedule (for example, moving an event-icon on a map changes the lat/lon values of that event in the shared repository; moving a task icon on a schedule changes its time-based values in the shared repository). The results of editing gestures are conveyed in real-time to all observers and users of a visualization; when one user moves an event on a map, for example, that event-icon moves on all maps and shared views, such that all users see its new location immediately. Data inputs from warfighters are conveyed to all collaborators as the "natural" result of a drop-gesture in-situ, requiring no explicit publishing mechanism.

References

[Wikipedia: Command Post of the Future] The United States Army's Command Post of the Future (CPOF), Wikipedia, 20 July 2007, http://en.wikipedia.org/wiki/Command_Post_of_the_Future

[General Dynamics C4 System] General Dynamics C4 Systems, 2007,http://www.gdc4s.com/content/detail.cfm?item=2a58f8e2-ef2b-4bb1-9251-42ee4961dd7f

A Drag-and-Drop Strategy for Labeling Photos

Figure 1. US Map with City Names
Figure 2. Hyperbolic Tree
Figure 3. LifeLines Medical Patient History

Annotation of photos is a variation on previously explored problems such as annotation on maps in which the challenge is to place city, state, river, or lake labels close to the features. There is a long history of work on this problem, but new possibilities emerge because of the dynamics of the computer screen (Figure 1). However, annotation is usually seen as an authoring process conducted by specialists and users only chose whether to show or hide annotations. Variations on annotation also come from the placement of labels on markers in information visualization tasks such as in tree structures, such in the hyperbolic tree (Figure 2) or in medical histories, such as LifeLines (Figure 3).

Previous work on annotation focused on writing programs to make label placements that reduced overlaps, but there are many situations in which it is helpful for users to place labels manually, much like post-it notes, on documents, photos, maps, diagrams, webpages, etc. Annotation of paper and electronic documents by hand is also a much-studied topic with continuing innovations. While many systems allow notes to be placed on a document or object, the demands of annotating personal photo libraries are worthy of special study. We believe that personal photo libraries are a special case because users are concentrating on the photos (and may have a low interested in the underlying technology), are concerned about the social aspects of sharing photos, and are intermittent users. They seek enjoyment and have little patience for form filling or data entry.

References

[A Drag-and-Drop Strategy for Labeling Photos] A Drag-and-Drop Strategy for Labeling Photos, Ben Shneiderman, Hyunmo Kang Dept. of Computer Science, Human-Computer Interaction Laboratory, Institute for Advanced Computer Studies & Institute for Systems Research University of Maryland, 2000, https://drum.umd.edu/dspace/bitstream/1903/1068/2/CS-TR-4129.pdf


Lookmark

A 2.5D Web Information Visualization System

Lookmark user interface screenshot

Lookmarks are thumbnails of existing web pages that can be arranged within a 2.5-dimensional space, just like documents can be arranged on a normal desk. The Lookmark system offers the user the opportunity of taking individual web pages and structuring and managing them within a 2.5- dimensional space. In Lookmark both standard devices, mouse and keyboard, can be used. Mouse handling is limited to single click, double click and drag-and-drop. The meaning of mouse events depends on the context of the object that receives the event:

  • Thumbnails. With a single mouse click one can add resp. delete the clicked

thumbnail to resp. from the current selection. At the same time the name of the corresponding web page is displayed in the status bar of the user interface. By double clicking on a specific thumbnail, one can open the corresponding web page in the associated Web-browser. By using drag-and-drop one can move a thumbnail along the horizontal and depth dimension (X- and Z-axis).

  • Groups of thumbnails. Thumbnails in a group are handled like single thumbnails.

Groups of thumbnails can be moved simultaneously by dragging the group label.

  • Selections. Dragging a thumbnail of a selection moves all selected thumbnails. A

selection can be dissolved by clicking somewhere in the manipulation panel.

References

[A 2.5D Web Information Visualization System] Christian Breiteneder, Horst Eidenberger, Geert Fiedler and Markus Raab Vienna University of Technology, Institute of Software Technology and Interactive Systems, 24.7.2002, http://www.ims.tuwien.ac.at/media/documents/publications/eurasia2002.pdf