1. Field of the Invention
The present invention relates in general to the field of computers and similar technologies, and in particular to software utilized in this field. Still more particularly, the present invention relates to providing functional context within an actively scrolling view pane.
2. Description of the Related Art
When viewing or editing documents that have functional sections or titled data, it is sometimes possible to be viewing a portion of the document and not be able to tell what section or function is being viewed. For example,
Known integrated developer environments (IDEs) have attempted to address this issue by highlighting the method name being viewed in a hierarchical outline. However, the highlighting of the method is based on the location of the editing cursor. Accordingly, it is possible to select some text within a method, or actuate the cursor to a position within a method, and scroll the viewport away from that method. This action can cause the highlight to be misleading regarding which section or function is located within the code as compared with a section being viewed. For example, FIG. 1 shows a line selected. If an outline view shows that the method createView( ) is being edited and the view is scrolled to a new area within the code, the outline will not provide information regarding to where the view has been scrolled.
In accordance with the present invention, a method, system and computer-usable medium for using a context aware viewport module to graphically display, and interact with, a viewport is provided. In various embodiments of the invention, a context aware viewport is implemented in a graphical user interface (GUI) and comprises an informational portion and a viewport portion.
More specifically, in one embodiment, the invention relates to a computer-implementable method comprising presenting a graphical user interface, the graphical user interface including a viewport portion and an informational portion; determining whether the viewport has been scrolled; and, presenting context aware information within the informational portion when the viewport portion is scrolled.
In another embodiment, the invention relates to a system comprising a processor; a data bus coupled to the processor; and a computer-usable medium embodying computer program code, the computer-usable medium being coupled to the data bus. The computer program code comprises instructions executable by the processor and configured for: presenting a graphical user interface, the graphical user interface including a viewport portion and an informational portion; determining whether the viewport has been scrolled; and, presenting context aware information within the informational portion when the viewport portion is scrolled.
In another embodiment, the invention relates to a computer-usable medium embodying computer program code. The computer program code comprises computer executable instructions configured for: presenting a graphical user interface, the graphical user interface including a viewport portion and an informational portion; determining whether the viewport has been scrolled; and, presenting context aware information within the informational portion when the viewport portion is scrolled.
The above, as well as additional purposes, features, and advantages of the present invention will become apparent in the following detailed written description.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further purposes and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, where:
A method, system and computer-usable medium are disclosed for using a context aware viewport module to graphically display, and interact with, a viewport. In various embodiments of the invention, a context aware viewport is implemented in a graphical user interface (GUI) and comprises an informational portion and a viewport portion.
As will be appreciated by one skilled in the art, the present invention may be embodied as a method, system, or computer program product. Accordingly, embodiments of the invention may be implemented entirely in hardware, entirely in software (including firmware, resident software, micro-code, etc.) or in an embodiment combining software and hardware. These various embodiments may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present invention may take the form of a computer program product on a computer-usable storage medium having computer-usable program code embodied in the medium.
Any suitable computer usable or computer readable medium may be utilized. The computer-usable or computer-readable medium may be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a transmission media such as those supporting the Internet or an intranet, or a magnetic storage device. Note that the computer-usable or computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-usable medium may include a propagated data signal with the computer-usable program code embodied therewith, either in baseband or as part of a carrier wave. The computer usable program code may be transmitted using any appropriate medium, including but not limited to the Internet, wireline, optical fiber cable, radio frequency (RF), etc.
Computer program code for carrying out operations of the present invention may be written in an object oriented programming language such as Java, Smalltalk, C++ or the like. However, the computer program code for carrying out operations of the present invention may also be written in conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Embodiments of the invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
Computer 202 is able to communicate with a service provider server 252 via a network 228 using a network interface 230, which is coupled to system bus 206. Network 228 may be an external network such as the Internet, or an internal network such as an Ethernet Network or a Virtual Private Network (VPN). Using network 228, computer 202 is able to use the present invention to access service provider server 252.
A hard drive interface 232 is also coupled to system bus 206. Hard drive interface 232 interfaces with a hard drive 234. In a preferred embodiment, hard drive 234 populates a system memory 236, which is also coupled to system bus 206. Data that populates system memory 236 includes the computer's 202 operating system (OS) 238 and application programs 244.
OS 238 includes a shell 240 for providing transparent user access to resources such as application programs 244. Generally, shell 240 is a program that provides an interpreter and an interface between the user and the operating system. More specifically, shell 240 executes commands that are entered into a command line user interface or from a file. Thus, shell 240 (as it is called in UNIX®), also called a command processor in Windows®, is generally the highest level of the operating system software hierarchy and serves as a command interpreter. The shell provides a system prompt, interprets commands entered by keyboard, mouse, or other user input media, and sends the interpreted command(s) to the appropriate lower levels of the operating system (e.g., a kernel 242) for processing. While shell 240 generally is a text-based, line-oriented user interface, the present invention can also support other user interface modes, such as graphical, voice, gestural, etc.
As depicted, OS 238 also includes kernel 242, which includes lower levels of functionality for OS 238, including essential services required by other parts of OS 238 and application programs 244, including memory management, process and task management, disk management, and mouse and keyboard management.
Application programs 244 may include a browser 246 and email client 248. Browser 246 includes program modules and instructions enabling a World Wide Web (WWW) client (i.e., computer 202) to send and receive network messages to the Internet using HyperText Transfer Protocol (HTTP) messaging, thus enabling communication with service provider server 252. Application programs 244 also a context aware viewport module 248. The context aware viewport module includes code for implementing the processes described in
The hardware elements depicted in computer 202 are not intended to be exhaustive, but rather are representative to highlight components used by the present invention. For instance, computer 202 may include alternate memory storage devices such as magnetic cassettes, Digital Versatile Disks (DVDs), Bernoulli cartridges, and the like. These and other variations are intended to be within the spirit and scope of the present invention.
Referring to
The information portion 320 provides a direct reflection of what information is being displayed within the viewport 330 as compared with the location of a cursor (not shown).
In the example viewport screen presentation 300, the Java Constructor TabbedAdapter( ) is not entirely visible within the viewport 330. The informational portion 320 presents the name of the constructor. The highlighted lines 360 indicate other methods that are visible within the viewport. The context aware viewport module 248 highlights these additional methods to distinguish between the beginning and the end of a functional area.
Referring to
If the new line number does contain a header, then the context aware viewport module 248 sets a spatial context variable to the identified header at step 450. The spatial context variable is used by the context aware viewport module 248 to present the informational portion 320 associated with the viewport 330.
In certain embodiments, the context aware viewport module 248 uses the ability of the Java Swing JEditorPane to query what line is beneath any given screen coordinate. A scroll listener is attached to the viewport so that the context aware viewport module 248 is notified of all scrolling events within the editor. When scrolling is detected Java Swing is asked what line number is below (01,01) of the JEditorPane. From that line, the document is traversed backward looking for the first instance of a Titled Section (such as a Java method name). When found, the title is displayed within the informational portion. Thus, the informational portion 320 is updated in real time as a user scrolls through the document. In certain embodiments, if a titled section is not found the informational portion 320 can display the document name or file name.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Having thus described the invention of the present application in detail and by reference to preferred embodiments thereof, it will be apparent that modifications and variations are possible without departing from the scope of the invention defined in the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5140677 | Fleming et al. | Aug 1992 | A |
5793369 | Atkins et al. | Aug 1998 | A |
6044217 | Brealey et al. | Mar 2000 | A |
6536035 | Hawkins | Mar 2003 | B1 |
6564200 | Perkins et al. | May 2003 | B1 |
6715109 | Charlet et al. | Mar 2004 | B1 |
6792595 | Storistenau et al. | Sep 2004 | B1 |
6816174 | Wu et al. | Nov 2004 | B2 |
7065717 | Perkins et al. | Jun 2006 | B1 |
7110991 | Arnold et al. | Sep 2006 | B2 |
20020186251 | Himmel et al. | Dec 2002 | A1 |
20050097601 | Danker et al. | May 2005 | A1 |
20050210403 | Satanek | Sep 2005 | A1 |
20050257166 | Tu | Nov 2005 | A1 |
20060184901 | Dietz | Aug 2006 | A1 |
20060242599 | Choo et al. | Oct 2006 | A1 |
20070294635 | Craddock et al. | Dec 2007 | A1 |
20080134080 | Moore et al. | Jun 2008 | A1 |
20080141025 | Noble | Jun 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20080270934 A1 | Oct 2008 | US |