摘要:
A method, apparatus, and computer-readable medium are provided for creating and laying out a graphic within a drawing application program. The method includes receiving a data model defining a set of data and data relationships to be represented in the graphic, receiving a graphic definition describing the mapping of the data from the data model to a set of algorithms, algorithm parameters, constraints, constraint rules, and shape properties, determining a shape size and position for the layout nodes utilizing the set of algorithms, constraints, and constraint rules from the graphic definition, and creating a list of shapes and shape properties for the graphic, including size and position. The method further includes determining if the graphic fits a given layout into a specific area based on the set of constraint values and if the graphic does not fit the specific area, then modifying the set of constraint values using the constraint rules.
摘要:
A method, apparatus, and computer-readable medium are provided for creating and laying out a graphic within a drawing application program. The method includes receiving a data model defining a set of data and data relationships to be represented in the graphic, receiving a graphic definition describing the mapping of the data from the data model to a set of algorithms, algorithm parameters, constraints, constraint rules, and shape properties, determining a shape size and position for the layout nodes utilizing the set of algorithms, constraints, and constraint rules from the graphic definition, and creating a list of shapes and shape properties for the graphic, including size and position. The method further includes determining if the graphic fits a given layout into a specific area based on the set of constraint values and if the graphic does not fit the specific area, then modifying the set of constraint values using the constraint rules.
摘要:
A method and computer-readable medium are provided for generating graphics having a finite number of dynamically sized and positioned shapes. According to the method, a relative size and position are defined for each of the shapes in a graphic. The relative size and position of the shapes may be defined relative to a canvas size or relative to other shapes. Once the size and position have been defined, the size and position are translated into size and position values expressed as relative to a canvas size. A mapping is also created between specific locations in a data set and the shapes. The graphic is generated utilizing the mapping and by sizing and positioning the shapes relative to the current canvas size. If a new canvas size is detected, the size and position of the shapes may be recomputed relative to the new canvas size. The graphic may also be utilized within a dynamic graphic.
摘要:
A method, apparatus, and computer-readable medium are provided for creating and laying out a graphic within a drawing application program. The method includes receiving a data model defining a set of data and data relationships to be represented in the graphic, receiving a graphic definition describing the mapping of the data from the data model to a set of algorithms, algorithm parameters, constraints, constraint rules, and shape properties, determining a shape size and position for the layout nodes utilizing the set of algorithms, constraints, and constraint rules from the graphic definition, and creating a list of shapes and shape properties for the graphic, including size and position. The method further includes determining if the graphic fits a given layout into a specific area based on the set of constraint values and if the graphic does not fit the specific area, then modifying the set of constraint values using the constraint rules.
摘要:
A method and computer-readable medium are provided for fitting text to shapes within a graphic. According to the method, initial constraints are defined that comprise initial values describing how a shape and text within the shape should be laid out. Constraint rules are also defined for use in modifying the initial constraints when application of the initial constraints to the text in a shape results in the text overflowing the boundaries of the shape. A change may be detected to the graphic that would affect the size or position of one or more of the shapes or the text within one of the shapes. If such a change causes text to overflow when laid out using the initial constraints, the constraint rules are applied sequentially to modify the constraints. The modified constraints are then reapplied to the shapes to create a new layout for the graphic.
摘要:
Wrapping nodes in a drawing canvas may be provided. A plurality of nodes may be received and a location to wrap the plurality of nodes may be determined. The location may be between two consecutive nodes in the plurality of nodes. Furthermore, a direction may be determined to place a first subset of the plurality of nodes comprising at least one node in the plurality of nodes and being subsequent to the determined location. The plurality of nodes may be balanced using at least one of the following: i) placing nodes within the plurality of nodes to an end of available space within the drawing canvas; ii) placing a first predetermined number of nodes of the plurality of nodes per row; and iii) evenly spacing a second predetermined number of nodes of the plurality of nodes.
摘要:
Wrapping nodes in a drawing canvas may be provided. A plurality of nodes may be received and a location to wrap the plurality of nodes may be determined. The location may be between two consecutive nodes in the plurality of nodes. Furthermore, a direction may be determined to place a first subset of the plurality of nodes comprising at least one node in the plurality of nodes and being subsequent to the determined location. The plurality of nodes may be balanced using at least one of the following: i) placing nodes within the plurality of nodes to an end of available space within the drawing canvas; ii) placing a first predetermined number of nodes of the plurality of nodes per row; and iii) evenly spacing a second predetermined number of nodes of the plurality of nodes.
摘要:
A method and system for rendering graphics based on user customizations in a computer graphics application are disclosed. The customizations relate to various properties of one or more graphical elements in the graphic. Such properties include positioning, size, formatting and other visual attributes associated with the graphical elements. These properties may be defined as either semantic properties or presentation properties. Semantic properties are persistent across all graphic definitions. Presentation properties are specific to the graphic definition to which each particular graphic belongs. Thus, a customization to a semantic property of a displayed graphic is preserved in memory for application not only to the currently displayed graphic, but also to all other graphic definitions that may be displayed in the future. In contrast, a customization to a presentation property is only preserved for the currently displayed graphic, and thus not preserved for all other graphic definitions.
摘要:
A method and system for rendering graphics based on user customizations in a computer graphics application are disclosed. The customizations relate to various properties of one or more graphical elements in the graphic. Such properties include positioning, size, formatting and other visual attributes associated with the graphical elements. These properties may be defined as either semantic properties or presentation properties. Semantic properties are persistent across all graphic definitions. Presentation properties are specific to the graphic definition to which each particular graphic belongs. Thus, a customization to a semantic property of a displayed graphic is preserved in memory for application not only to the currently displayed graphic, but also to all other graphic definitions that may be displayed in the future. In contrast, a customization to a presentation property is only preserved for the currently displayed graphic, and thus not preserved for all other graphic definitions.
摘要:
A method and system for rendering graphics based on user customizations in a computer graphics application are disclosed. The customizations relate to various properties of one or more graphical elements in the graphic. Such properties include positioning, size, formatting and other visual attributes associated with the graphical elements. These properties may be defined as either semantic properties or presentation properties. Semantic properties are persistent across all graphic definitions. Presentation properties are specific to the graphic definition to which each particular graphic belongs. Thus, a customization to a semantic property of a displayed graphic is preserved in memory for application not only to the currently displayed graphic, but also to all other graphic definitions that may be displayed in the future. In contrast, a customization to a presentation property is only preserved for the currently displayed graphic, and thus not preserved for all other graphic definitions.