Automatically determining an object display mode to display objects
AssigneeInternational Business Machines Corporation
InventorXin Wang
Life of this patent
Estimating the term…
Abstract
A method, computer program product and system for automatically determining an object display mode to provide a display for objects. Information about the objects to be displayed and information about a display area is received. An object display mode is selected according to the received information about the display area and according to the received information about the objects to be displayed. A display for the objects is then provided with the selected object display mode. Switching can be made between a single-page display mode and a paging display mode, and whether in the single-page display mode or in the paging display mode, the user can conveniently browse and select the display objects, and the browsing efficiency and user experience of object display for the user are improved.
Claims16
A method for providing a display for objects, the method comprising:
- receiving a quantity of objects to be displayed, a size information about the objects to be displayed and a size information about a display area;
- generating an accommodation value of the display area indicating a quantity of objects that can be directly accommodated in the display area, wherein the accommodation value of the display area is based on a ratio of the size information of the display area to the size information for each object to be displayed, wherein the size information of the display area and the size information for each object corresponds to a parameter comprising one of the following:
- a width, a length, a pixel and a combination of the foregoing;
- generating a display mode switching threshold according to the accommodation value of the display area, wherein the display mode switching threshold is a threshold based on which a different display mode is selected, wherein the display mode switching threshold is a preset multiplier of the accommodation value of the display area;
- selecting an object display mode by comparing the quantity of the objects to be displayed with the display mode switching threshold;
- and
- providing, by a processor, the display for the objects with the selected object display mode.
A computer program product embodied in a computer readable storage device for providing a display for objects, the computer program product comprising the programming instructions for:
- receiving a quantity of objects to be displayed, a size information about the objects to be displayed and a size information about a display area;
- generating an accommodation value of the display area indicating a quantity of objects that can be directly accommodated in the display area, wherein the accommodation value of the display area is based on a ratio of the size information of the display area to the size information for each object to be displayed, wherein the size information of the display area and the size information for each object corresponds to a parameter comprising one of the following:
- a width, a length, a pixel and a combination of the foregoing;
- generating a display mode switching threshold according to the accommodation value of the display area, wherein the display mode switching threshold is a threshold based on which a different display mode is selected, wherein the display mode switching threshold is a preset multiplier of the accommodation value of the display area;
- selecting an object display mode by comparing the quantity of the objects to be displayed with the display mode switching threshold;
- and
- providing the display for the objects with the selected object display mode.
A system, comprising:
- a memory unit for storing a computer program for providing a display for objects;
- and a processor coupled to said memory unit, wherein said processor, responsive to said computer program, comprises
- circuitry for receiving a quantity of objects to be displayed, a size information about the objects to be displayed and a size information about a display area;
- circuitry for generating an accommodation value of the display area indicating a quantity of objects that can be directly accommodated in the display area, wherein the accommodation value of the display area is based on a ratio of the size information of the display area to the size information for each object to be displayed, wherein the size information of the display area and the size information for each object corresponds to a parameter comprising one of the following:
- a width, a length, a pixel and a combination of the foregoing;
- circuitry for generating a display mode switching threshold according to the accommodation value of the display area, wherein the display mode switching threshold is a threshold based on which a different display mode is selected, wherein the display mode switching threshold is a preset multiplier of the accommodation value of the display area;
- circuitry for selecting an object display mode by comparing the quantity of the objects to be displayed with the display mode switching threshold;
- and
- circuitry for providing the display for the objects with the selected object display mode.
Dependencies are inferred from the claim text.