System and method for encapsulating software components in an application program interface using a proxy object
First Claim
1. A system for graphical display of an object created by an application program running under an operating system, comprising:
- a graphics resource component adapted to display the object independently of the operating system;
a proxy component, which associates the object with the graphics resource component and invokes methods of the graphics resource component to display the object; and
a peer component, adapted to receive events pertaining to the object and route the events to the proxy component.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method are disclosed whereby the lightweight components of the Swing application program interface (API) may be used to replace heavyweight components of the abstract windowing toolkit (AWT) in legacy applications. This replacement allows the user interface of the application to preserve a consistent look and feel across diverse platforms, such as Windows, Unix, OS/2, etc. A lightweight peer class is created, which emulates the interaction of objects created by the application with the former heavyweight peers—this avoids any need to modify the legacy software. A proxy class is also created, which intercepts events associated with the object and directs them to a lightweight component of the Swing API (rather than to the AWT). The proxy also establishes a parent-child relationship between the layout inhabited by the object and the Swing component, so that Swing draws over the image of the object created by the AWT.
55 Citations
17 Claims
-
1. A system for graphical display of an object created by an application program running under an operating system, comprising:
-
a graphics resource component adapted to display the object independently of the operating system;
a proxy component, which associates the object with the graphics resource component and invokes methods of the graphics resource component to display the object; and
a peer component, adapted to receive events pertaining to the object and route the events to the proxy component. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for graphical display of an object created by an application program running under an operating system, comprising:
-
utilizing a graphics resource component adapted to display the object independently of the windowing system of the operating system;
creating a proxy component and establishing an association between the object and the graphics resource component via the proxy component;
receiving events pertaining to the object in a peer component and routing them to the proxy component; and
in response to the events, invoking methods of the graphics resource component via the proxy component to display the object. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer-readable storage device, comprising:
-
a windows-based operating system;
an application program running under the operating system;
a graphics resource component adapted to display an object created by the application program independently of the windowing system of the operating system, by;
creating a proxy component and establishing an association between the object and the graphics resource component via the proxy component;
receiving events pertaining to the object in a peer component and routing them to the proxy component; and
in response to the events, invoking methods of the graphics resource component via the proxy component to display the object.
-
Specification