# US 2001/0033289 A1 · Representing a path as an object with transformation capability

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2001/0033289 A1
- Document ID: US20010033289A1
- Status: Published application
- Kind: A1
- Application number: 09/847,112
- Filed: 2001-05-01
- Published: 2001-10-25
- Earliest claimed: 1997-06-30
- Assignees: Sun Microsystems, Inc.
- Inventors: James Graham
- Web page: https://patentgrep.com/patent/US20010033289A1

## CPC

- G06T 11/23: using straight lines or curves
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

One or more embodiments provide the ability to use multiple path formats in an object oriented system. A path maintains the ability to translate itself into a recognizable format for use by applications. The recognizable format may be a standard Bezier Path format or an iterator that provides the ability to iterate along the path, one curve segment at a time. Multiple applications may use the self-translation ability. In one embodiment, when an application desires to perform a transform, it determines if the transform may be performed on the path (i.e., whether the path is recognizable). If the path is recognizable, the transform is performed directly on the path. If the path is not recognizable, the path translates itself into a recognizable format and the transform performs the action on the recognizable path (the transform must maintain the ability to perform the transform on the standard format). Determining whether the path is recognizable may consist of a two stage negotiation process. During the first stage the path determines if it recognizes the transform. If the path does not recognize the transform, the desired operation is passed onto the transform in the second stage where it is determined if the transform recognizes the path. If the path or the transform is recognizable in either stage the action is performed. However, in the second stage, if the path is not recognizable, the transform requests the path to translate itself and performs the operation on the recognizable path returned.

## Claims

### Claim 1

In a computer system, a method for using and performing operations on multiple path formats, said method comprising the steps of:
creating a path in a path format;
creating a transform;
determining if said transform can be performed on said path in said path format;
if said transform can be performed on said path in said path format, performing said transform operation;
if said transform cannot be performed on said path in said path format:
retrieving a representation of said path that said transform can be performed on; and
performing said transform with said path representation.

### Claim 2 (depends on 1)

The method of claim 1, wherein said step of retrieving a representation of said path that said transform can be performed on comprises the steps of:
translating said path into a path of a recognizable format; and
returning said recognizable format path.

### Claim 3 (depends on 2)

The method of claim 2, wherein said recognizable path format is a Bezier path format.

### Claim 4 (depends on 1)

The method of claim 1 wherein said computer system is an object oriented computer system.

### Claim 5 (depends on 1)

The method of claim 1 wherein said step of determining if said transform can be performed on said path in said path format and said step of performing said transform when said transform can be performed on said path in said path format comprises the steps of:
determining if said path understands said transform;
if said path understands said transform, said path performing said transform;
if said path does not understand said transform, determining if said transform understands said path; and
if said transform understands said path, said transform performing said transform.

### Claim 6 (depends on 1)

The method of claim 1, wherein said step of retrieving a representation of said path that said transform can be performed on comprises of the steps of:
creating an iterator that iterates segments of said path;
returning said iterator.

### Claim 7 (depends on 5)

The method of claim 5, wherein said step of performing said transform with said path representation comprises the steps of:
iterating a segment of said path;
performing said transform on said path segment;
if not all path segments have been iterated, repeating said iterating and performing steps.

### Claim 8 (depends on 1)

The method of claim 1 further comprising the step of storing said path in a path format in an object.

### Claim 9 (depends on 8)

The method of claim 8 wherein said object represents some form of a geometric shape.

### Claim 10 (depends on 1)

The method for using and performing operations on multiple path formats of claim 1, wherein said method is described by an interface and implemented by an object.

### Claim 11 (depends on 1)

The method of claim 1 wherein said transform is a geometric transform of the coordinates.

### Claim 12 (depends on 1)

The method of claim 1 wherein said transform is an operation performed on said path that modifies said path's form.

### Claim 13

A computer system comprising:
a processor;
a memory coupled to said processor;
object code executed by said processor for providing at least one method for using and performing operations on multiple path formats within said memory;
said object code comprising:
a method for creating a path in a path format;
a method creating a transform;
a method determining if said transform can be performed on said path in said path format;
if said transform can be performed on said path in said path format, a method performing said transform;
if said transform cannot be performed on said path in said path format:
a method retrieving a representation of said path that can perform said transform; and
a method performing said transform with said path representation.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein said object code executed by said processor for retrieving a representation of said path that can perform said transform comprises:
object code executed by said processor for translating said path into a path of a recognizable format; and
object code executed by said processor for returning said recognizable format path.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein said recognizable path format is a Bezier path format.

### Claim 16 (depends on 13)

The computer system of claim 13, wherein said object code executes in an object oriented environment.

### Claim 17 (depends on 13)

The computer system of claim 13, wherein said object code for determining if said transform can be performed on said path in said path format and said object code for performing said transform if said transform can be performed on said path in said path format comprises:
object code determining if said path understands said transform;
object code for said path to perform said transform if said path understands said transform;
object code determining if said transform understands said path if said path does not understand said transform; and
object code for said transform to perform said transform on said path if said transform understands said path.

### Claim 18 (depends on 13)

The computer system of claim 13, wherein said object code for retrieving a representation of said path that said transform can be performed on comprises:
object code creating an iterator that iterates segments of said path;
object code returning said iterator.

### Claim 19 (depends on 17)

The computer system of claim 17, wherein said object code for performing said transform step comprises:
object code for iterating a segment of said path;
object code performing said transform on said path segment;
object code for repeating said iterating and performing steps if not all path segments have been iterated.

### Claim 20 (depends on 13)

The computer system of claim 13 further comprising object code for storing said path in a path format in an object.

### Claim 21 (depends on 20)

The computer system of claim 20 wherein said object represents some form of a geometric shape.

### Claim 22 (depends on 13)

The computer system of claim 13 wherein said object code is described by an interface and implemented by an object.

### Claim 23 (depends on 13)

The computer system of claim 13 wherein said transform is a geometric transform of the coordinates.

### Claim 24 (depends on 13)

The computer system of claim 13 wherein said transform is an operation performed on said path that modifies said path's form.

### Claim 25

An article of manufacture comprising:
a computer usable medium having computer readable program code embodied therein for using and performing operations on multiple path formats, the computer readable program code in said article of manufacture comprising:
computer readable program code configured to cause a computer to create a path in a path format;
computer readable program code configured to cause said computer to create a transform;
computer readable program code configured to cause said computer to determine if said transform can be performed on said path in said path format;
if said transform can be performed on said path in said path format, computer readable program code configured to cause said computer to perform said transform;
if said transform cannot be performed on said path in said path format, computer readable program code configured to cause said computer to:
retrieve a representation of said path that said transform can be performed on; and
perform said transform with said path representation.

### Claim 26 (depends on 25)

The article of manufacture of claim 25 wherein said code configured to cause a computer to retrieve a representation of said path that said transform can be performed on comprises:
computer readable program code configured to cause said computer to translate said path into a path of a recognizable format;
computer readable program code configured to cause said computer to return said recognizable format path.

### Claim 27 (depends on 26)

The article of manufacture of claim 26 wherein said recognizable path format is a Bezier path format.

### Claim 28 (depends on 25)

The article of manufacture of claim 25 wherein computer readable program code is executed in an object oriented environment.

### Claim 29 (depends on 25)

The article of manufacture of claim 25 wherein said code for determining if said transform can be performed on said path in said path format and said code for performing said transform if said transfrom can be performed on said path in said path format comprises:
computer readable program code configured to cause said computer to determine if said path understands said transform;
computer readable program code configured to cause said computer to have said path perform said transfrom if said path understands said transform;
computer readable program code configured to cause said computer to determine if said transform understands said path when said path does not understand said transform; and
computer readable program code configured to cause said computer to have said transform perform said transform on said path when said transform understands said path.

### Claim 30 (depends on 25)

The article of manufacture of claim 25 wherein said code for retrieving a representation of said path that said transform can be performed on comprises:
computer readable program code configured to cause said computer to create an iterator that iterates segments of said path;
computer readable program code configured to cause said computer to return said iterator.

### Claim 31 (depends on 29)

The article of manufacture of claim 29 wherein program code configured to cause said computer to perform said transform is comprised of:
computer readable program code configured to cause said computer to iterate a segment of said path;
computer readable program code configured to cause said computer to perform said transform on said path segment;
if not all path segments have been iterated, computer readable program code configured to cause said computer to repeat said iterate and perform computer readable program code.

### Claim 32 (depends on 25)

The article of manufacture of claim 25 further comprising computer readable program code configured to cause said computer to store said path in a path format in an object.

### Claim 33 (depends on 32)

The article of manufacture of claim 32 wherein said object represents some form of a geometric shape.

### Claim 34 (depends on 25)

The article of manufacture of claim 25 wherein said computer readable program code is described by an interface and implemented by an object.

### Claim 35 (depends on 25)

The article of manufacture of claim 25 wherein said transform is a geometric transform of the coordinates.

### Claim 36 (depends on 25)

The article of manufacture of claim 25 wherein said transform is an operation performed on said path that modifies said path's form.
