Resolution Independent User Interface Design
Graphical user interface material map objects are specified by a collection of attribute-value pairs, the collection of which comprises a complete description of the material map and may be used by a rendering engine to create a visual representation of the material map at any resolution. That is, material map representations in accordance with the invention are resolution independent. Another benefit of representing material maps in accordance with the invention is that they may be encrypted to prevent unauthorized inspection or use.
Latest Apple Patents:
- AUTO-FOCUS ENGINE ARCHITECTURE FOR IMAGE SIGNAL PROCESSOR
- EXPANDED FIELD OF VIEW USING MULTIPLE CAMERAS
- REDUCING THE OVERHEAD OF TRACKING REFERENCE SIGNAL (TRS) CONFIGURATIONS FOR IDLE/INACTIVE USER EQUIPMENTS (UES)
- DOWNLINK CONTROL CHANNEL SIGNALING FOR UL COEXISTENCE OF MULTIPLE SERVICE TYPES
- Video Pipeline
This is a continuation application of U.S. patent application Ser. No. 11/459,140 filed 21 Jul. 2006, now U.S. Pat. No. ______, which is a continuation-in-part of U.S. patent application Ser. No. 10/876,298, now U.S. Pat. No. 8,068,103 entitled “User-Interface Design,” filed 24 Jun. 2004. This application claims priority to and incorporates each of the aforementioned applications in their entirety. This application is also related to U.S. patent application Ser. No. 11/696,631 filed 4 Apr. 2007 having the same title and inventor.
BACKGROUNDThe invention relates generally to graphical user interface design and more particularly to a means for specifying a graphical user interface object in a procedural and largely display resolution independent manner.
Designing an efficient, ergonomic and aesthetically pleasing user interface is an integral stage of most application development projects. The graphical user interface (“GUI”) is what the user sees and interacts with. Accordingly, the GUI must present information and choices to a user in a way that is not only pleasing and natural to the eye but conducive to efficient use of the underlying application. One major concern in the development of modern GUIs is the resolution of the various objects that comprise the GUI. Typically, a designer designs a graphical user interface object (e.g., a pushbutton, scrollbar, or slider) for a specified resolution. As the resolution of the user's display changes, however, display of the originally designed object may become distorted. This is particularly a problem when a graphical object is designed at a first resolution (e.g., 75 or 100 pixels per inch) and the user's display is at a second, higher resolution (e.g., 120 or 150 pixels per inch).
In the past, two general techniques have been used to address the problem associated with displaying objects designed for a first resolution but which are displayed at a second resolution. In the first, an original (low resolution) object is up-sampled to generate a larger image (e.g., through linear or bicubic interpolation). This technique results in blurry edges such that the user interface no longer looks crisp. In the second, an original object is designed for display at a high resolution and is then down-sampled to an unknown target resolution. While useful in some circumstances, it is not possible a priori to know what width to give a line (e.g., an object's edge) at the higher resolution such that when down-sampled it remains crisp. This is particularly true when there are multiple target resolutions. Thus, both up-sampling and down-sampling techniques tend to disturb the designer's specified line width. One of ordinary skill in the art will recognize that line width is a critical factor in GUI design as the width of lines define the edge of graphical objects. If edges appear blurry or ill-defined, the entire GUI design may be compromised.
Thus, it would be beneficial to provide a means to specify the design of a graphical user interface object independent of its display resolution. Such a description may advantageously be used by a rendering module to display the designed object at substantially any resolution.
SUMMARYIn one embodiment, the invention provides a method to represent a graphical user interface object's material map in a procedural and, therefore, resolution independent manner. The method includes receiving values for each of a plurality of attributes associated with a material map object, associating a value for each of the plurality of attributes, and storing the plurality of attributes and their associated values in a file. The file may be a “flat” file or a hierarchically-ordered file. The collection of attribute-value pairs comprise a complete description of the graphical user interface object's material map and may be used by a rendering module to create a visual representation of the material map at any number of resolutions. In addition, because material maps in accordance with the invention are represented procedurally, they may be encrypted to prevent unauthorized inspection or use.
Those of ordinary skill in the art will recognize that methods in accordance with the described invention may be embodied in programs, program modules or applications that may be stored in any media that is readable and executable by a computer system.
Methods, devices and systems to describe or capture the design of graphical user interface objects in a procedural and, largely resolution independent, manner are described. The following embodiments of the invention, described in terms of graphical user interface object design conforming to the Apple Human Interface Guidelines, are illustrative only and are not to be considered limiting in any respect. (The Apple Human Interface Guidelines are available from Apple Computer, Inc. of Cupertino, Calif.)
It has been determined that a graphical user interface object may be completely described by a collection of resolution-independent attributes. The collection of all attributes for a given object type define that type of object (e.g., pushbuttons). While the attributes used to define an object may vary, in whole or in part, from object-type to object-type, one of ordinary skill in the art will recognize those attributes needed to completely specify a given object. For example, while some attributes may be associated with a number of different graphical interface objects (e.g., those associated with an object's location in a display window), many attributes may change from object to object (e.g., buttons have attributes associated with the “button” metaphor while check-boxes and slider tracks have attributes particular to their visual metaphor). Accordingly, the attributes identified herein are illustrative only and should not be used to limit the claimed methods, devices and systems.
Just as a specific collection of attributes define a specific type of graphical interface object (e.g., pushbuttons), the values associated with each of the specific attributes define a particular implementation or embodiment of the object (e.g., a regular size, deactivated pushbutton). In accordance with the invention, some attribute-values are specified independent of the resolution at which the object is to be displayed while other attribute-values are specified for two or more resolutions. In general, those attributes associated with the physical location or geometry of an object may be associated with a plurality of values—one value for each specified resolution. Other attributes are associated with fixed, resolution independent, values (e.g., visual characteristics such as opacity, color and curvature). By way of example, consider a pushbutton object whose radius (attribute “buttonRadius”) is specified for each of five predetermined resolutions (e.g., 100, 120, 125, 133.3 and 150 pixels per inch), but whose outline color (attributes “outlineRed”, “outlineGreen”, and “outlineBlue”) and opacity (attribute “buttonOpacity”) are fixed and resolution independent.
Thus, in accordance with the invention the collection of all attribute-values for a specified object completely define its visual characteristics and, as such, may be used to drive the graphical generation of the object (for example, by a rendering engine or operating system module responsible for rendering images). One benefit of object definitions in accordance with the invention is that graphical objects are defined in terms of a collection of resolution independent attributes. Another benefit of object definitions in accordance with the invention is that each attribute may be associated with a plurality of values, thereby permitting the designer to optimize the object's design for each of a specified number of resolutions. Still another benefit of object definitions in accordance with the invention is that if the actual displayed resolution of the graphical object is between two of the resolutions specified by the designer, the rendering engine may interpolate between the two values—a technique that generally provides a significantly improved display over prior art up-sampling or down-sampling techniques.
In accordance with the invention, a graphical user interface object's design is specified by a collection of attribute-value pairs that are retained or stored in a file, hereinafter referred to as a “recipe” file. In one embodiment, the recipe file may be a “flat” file consisting of sequential listing of attribute-value pairs. In another embodiment, the recipe file may be a hierarchically ordered file representing an inverted tree, where the root of the tree identifies the type of graphical object (e.g., a pushbutton, a check-box or a slider track) and the first level below the root identifies categories associated with the object (e.g., size, color and state). In one particular embodiment, hierarchically ordered recipe files are stored as eXtensible Markup Language (“XML”) files. Attributes and their values are then associated with each node. In this way, every aspect of a graphical user interface object may be systematically identified and recorded in the recipe file in a manner that is wholly independent from the method used to physically draw (render) the image on a computer display device.
Methods, devices and systems in accordance with the invention may be described in terms of two phases. In a first phase, recipe files are generated. In a second phase the recipe files are used to generate visual representations of the graphical user interface object for one or more applications at substantially any resolution.
Referring to
Referring to
Referring to
Browser region 405 permits the selected display of various aspects of an object's design. In particular, region 405 provides a graphical representation of a recipe file's hierarchical structure in an Apple standard “Finder” format: the left-most pane identifies the recipe file's root (which, in turn, identifies the type of object—a pushbutton); the middle pane identifies categories of pushbuttons (e.g., inactive, mini, pressed, pulsed, regular and small). Subsequent panes display subcategories associated with a selected category. For example, disclosure triangles 430 indicate that pushbutton categories mini, pressed, pulsed, regular and small have additional aspects—the details of which are displayed in the right-most (and possibly subsequent) panes when one of these categories is selected.
Resolution display region 410 identifies one or more resolutions for which the object is being designed. As shown, the designer has specified that at least some attribute values for a pushbutton are specified for resolutions of 100, 120, 125, 133.3 and 150 pixels per inch. As noted above, not all attribute values are specified for each of these resolutions, only those that the designer determines are significant to the object's display. Illustrative attribute-value pairs for a pushbutton object and a scrollbar object, including those attributes having multiple values, are shown in Table 1 below. (It will be recognized that the objects shown in region 410 are not actually displayed at the indicated resolution, but are instead “simulations” of how the object would appear at those resolutions.)
Expanded bit display region 415 shows an expanded representation of the selected resolution image. In the illustrated example of
Object shape region 420 permits the designer to select, view and specify attribute values associated with a particular shape of the object being designed. For example, in the illustrated embodiment a pushbutton's shape may be any one of the shapes identified by shape buttons 435: Round, Lozenge (“Lozen . . . ”), Round Rectangle (“Round . . . ”), odd (“Scroll bar cap odd end”) or custom. Immediately beneath shape buttons 435, area 440 shows specific attributes associated with the selected shape and, through controls such as slider 445, text box 450, radio button 455 or color well 460 permits the designer to change the value associated with those attributes.
User interface construction region 425 serves as the primary interface for viewing and specifying attribute values associated with an object's various visual characteristics or layers. In the embodiment of
Thus, in accordance with the invention a graphical user interface object may be completely defined by a collection of attribute-value pairs that may be used by a rendering engine (or similar module) to display the object. Further, one or more attributes may have two or more values, wherein each value is associated with a specific display resolution. This latter feature permits a designer to uniquely and specifically optimize a single design for multiple resolutions with the added benefit of providing sufficient information for interpolation (generally performed by the rendering engine) should the actual resolution be different from any of the specified resolutions. By way of example only, Table 1 comprises a listing of attributes and their associated values for a pushbutton object and a scrollbar object.
In a current embodiment, graphical user interface objects identified in Table 2 may be defined/specified using the attributes (left-hand column) identified in Table 1. It will also be recognized that while many of the attributes above are specified by values in units of pixels, in other embodiments attribute values may be expressed in terms of a relative factor to a predetermined size factor.
To create a graphical user interface object, the body color of the object (for each point on the object) and the anti-aliased visibility mask of the object are needed. The body color of an object may be obtained by using a three-dimensional representation of the object, or by creating a virtual representation of the object that defines the surface normal for each pixel on the object. Once a unit-length surface normal vector is computed at a point p, the x and y coordinate values of this vector may be used to compute the apparent color of the object at point p by looking up a color from the object's relevant material map. (One of ordinary skill in the art will recognize that the term “material map” is also referred to as “environmental map,” “reflection map” and “sphere map.”) If the map is n pixels high and n pixels wide (this is done because a shaded sphere is inscribed in the map), one can address the material map at the two-dimensional location given by:
The color of the material map at this location may be used as the color for the object at point p. To get an accurate result, it is typical for a material map to be much larger (for example, 256×256 pixels or larger) than the graphical user interface object being rendered.
This same technique may be used in conjunction with a material map that possesses alpha (transparency) information. Once a color (with alpha) is looked up from a transparency material map, a highlight may be overlaid onto the object by using the alpha as a coverage fraction for the color from the map. Standard compositing methods may be used to accomplish this overlay operation.
An object's anti-aliased visibility mask may be obtained by computing a field that provides distance from the edge of the object. This field can be evaluated using a procedural description of the object. For example, a lozenge may be defined as the set of points at distance r or less from a finite non-zero-length line segment from point (p1x, p1y) to point (p2x, p2y). The distance d from the aforementioned line segment may be calculated at point (px, py) by a function such as that provided in Table 3 below.
Given the distance function d defined above (see Table 1), an anti-aliased transparency value (mask) for the graphical user interface object may be computed as shown in Table 4. The same distance field may be used to construct the outline of the user interface object.
In another embodiment, material maps may be represented in procedural fashion. In this embodiment the interface object design application 400 (see
Referring to
Material map display region 605 graphically displays the currently selected material map and may also display individual light sources associated with the displayed material map. In the embodiment of
Material map control region 610 permits the user to control the overall presentation of a material map and, in addition, selection and storage of the material map. For example, the material map may be displayed having a checkerboard background by selecting the “Over Checkerboard” check-box and light handles may be displayed by selecting the “Display Light Handles” check-box. Referring to
Light property list region 615 permits the user to set various properties of a selected light source. For example, if light source 630 is selected (see
In addition, drop-down menus may be used to set the “Type” and “Blend Mode” for the selected light source. Referring to
Light list region 620 lists all light sources associated with the displayed material map. In addition, region 620 permits the user to activate each light source (e.g., through “On” check-boxes) and to set the “Brightness” of each light source (e.g., through slider-type controls) individually. In the illustrated embodiment, individual entries in the list of light sources may be selected (e.g., by “clicking” on its “Name”) and dragged up or down in the list to adjust its display priority. In one embodiment, the first light source in the list has the front-most in priority while the last light source in the list has the back-most priority. In this way, light sources may be treated like “layers” that are composited on top of each other using blend modes. This manner of layering objects is well-known in the art.
Referring to
Referring again to
Once a material map has been defined in material map editor window 600, the user may save the map in a procedural file by selecting the “Save Material Recipe” item from the “Files” drop-down menu (see
Referring again to
It will be recognized by those of ordinary skill in the art that the information (i.e., attribute or properties and their associated values) retained in a material map's recipe file may be used to generate a graphical representation of the material map. Unlike prior art user interface material maps, recipe files in accordance with the invention may be used to dynamically generate the images which can reduce the amount of memory needed to store a user interface and substantially reduce the time required to create a specific user interface element. In addition, because material maps in accordance with the invention are represented in a procedural manner they are resolution independent. This is in sharp contrast with prior art material maps that rely on an image having a set or fixed resolution. Thus, a single (procedurally defined) material map may be used for all resolutions rather than having to have multiple material maps—each at a display resolution. Further, because material maps in accordance with the invention are procedural in nature, they may be encrypted to protect their content. (That is, the text recipe file is encrypted.)
Various changes or modifications in the foregoing description may be made without departing from the concept of the invention. For example, attributes other than, or in addition to, those identified in Table 1 and in
It will be recognized that methods to represent and render a graphical user interface object in accordance with this description may be performed by a programmable control device executing instructions organized into one or more program modules. A programmable control device may be a single computer processor, a special purpose processor (e.g., a digital signal processor, a graphics processing unit or a programmable graphics processing unit), a plurality of processors coupled by a communications link or a custom designed state machine. Custom designed state machines may be embodied in a hardware device such as an integrated circuit including, but not limited to, application specific integrated circuits (“ASICs”) or field programmable gate array (“FPGAs”). Storage devices suitable for tangibly embodying program instructions include, but are not limited to: magnetic disks (fixed, floppy, and removable) and tape; optical media such as CD-ROMs and digital video disks (“DVDs”); and semiconductor memory devices such as Electrically Programmable Read-Only Memory (“EPROM”), Electrically Erasable Programmable Read-Only Memory (“EEPROM”), Programmable Gate Arrays and flash devices.
Accordingly, the preceding descriptions were presented to enable any person skilled in the art to make and use the invention as claimed and were provided in the context of the particular examples discussed above, variations of which will be readily apparent to those skilled in the art. Accordingly, the claims appended hereto are not intended to be limited by the disclosed embodiments, but are to be accorded their widest scope consistent with the principles and features disclosed herein.
Claims
1. A computer program product to define a graphical user interface element, the computer program product embodied on a non-transitory computer readable medium and comprising computer code to cause a processor to:
- make available a plurality of layers for procedurally defining a graphical user interface element;
- receive an indication of association of a subset of the plurality of layers to the graphical user interface element;
- receive a specification of a plurality of attribute values to associate with the subset of the plurality of layers;
- store information associated with the subset of the plurality of layers and the plurality of attribute values associated with the graphical user interface element, wherein the information procedurally defines the graphical user interface element.
2. The computer program product of 1, wherein the subset of the plurality of layers is sufficiently complete to permit the graphical user interface element to be rendered.
3. The computer program product of claim 1, further comprising computer code to cause the processor to specify a plurality of default attribute values to associate with the subset of the plurality of layers to procedurally define the graphical user interface element.
4. The computer program product of 1, wherein the computer code to cause the processor to store further comprises computer code to store the information in a material map recipe file.
5. The method of 4, wherein the information in the material map recipe file is hierarchically organized.
6. The computer program product of claim 4, further comprising computer code to cause the processor to:
- provide at least a portion of the information in the material map recipe file to a rendering engine for rendering a visual representation of the graphical user interface element; and
- generate, by the rendering engine, a visual representation of the graphical user interface element.
7. The computer program product of claim 6, wherein the computer code to cause the processor to generate further comprises computer code to cause the processor to generate, by the rendering engine, a visual representation of the graphical user interface element at an operational resolution setting of a display device.
8. A method of defining a graphical user interface element using one or more processing devices, the method comprising:
- making available a plurality of layers to procedurally define a graphical user interface element;
- receiving an indication at a processing device to associate a subset of the plurality of layers to the graphical user interface element;
- receiving an indication of specification of a plurality of attribute values to associate with the subset of the plurality of layers; and
- storing information associated with the subset of the plurality of layers and the plurality of attribute values associated with the graphical user interface element, wherein the information provides details sufficient to permit displaying the graphical user interface element at a plurality of operational resolution settings.
9. The method of 8, wherein the subset of the plurality of layers is sufficiently complete to permit the graphical user interface element to be rendered.
10. The method of 9, further comprising using at least a portion of the stored information to cause rendering of the graphical user interface element.
11. The method of 10, wherein the act of rendering comprises rendering the graphical user interface element at an operational resolution setting of a display device.
12. The method of 10, wherein the act of rendering is performed by an operating system level module.
13. The method of 8, wherein the act of storing information comprises storing the information in a material map recipe file.
14. The method of 13, wherein the information in the material map recipe file is hierarchically organized.
15. The method of 13, further comprising providing at least a portion of the information in the material map recipe file to a rendering engine for generating a visual representation of the graphical user interface element at an operational resolution setting of a display device.
16. The method of claim 8, wherein the plurality of attribute values are received through a graphical user interface design application.
17. The method of claim 8, wherein the graphical user interface element is selected from the group consisting of a pushbutton, a bevel button, a metal button, a disclosure button, a pop-up button, a combo button, a pull-down button, a check box, a radio button, a segmented control, a window title bar, a scroll bar track, a scroll bar thumb, a scrollbar cap, a slider track, a slider thumb, a text field, a progress bar, a progress indicator, a list box, a drawer, and a pane splitter.
18. The method of claim 8, wherein the act of receiving an indication of specification comprises automatically specifying a plurality of attribute values to associate with the subset of the plurality of layers to define the graphical user interface element.
19. A non-transitory program storage device, readable by a programmable control device, comprising instructions stored thereon for causing the programmable control device to perform a method in accordance with claim 8.
20. A computer system comprising:
- one or more processing units;
- a storage unit communicatively coupled to the one or more processing devices; and
- a display device communicatively coupled to the storage unit and the one or more processing units wherein the one or more processing units are collectively configured to— make available a plurality of layers for procedurally defining a graphical user interface element; receive an indication of association of a subset of the plurality of layers to the graphical user interface element; receive a specification of a plurality of attribute values to associate with the subset of the plurality of layers; and store information associated with the plurality of layers and the plurality of attribute values associated with the graphical user interface element, wherein the information procedurally defines the graphical user interface element.
Type: Application
Filed: Jan 26, 2012
Publication Date: May 24, 2012
Applicant: APPLE INC. (Cupertino, CA)
Inventor: Mark Zimmer (Aptos, CA)
Application Number: 13/359,169
International Classification: G06F 3/048 (20060101);