摘要 |
A system and method for generating multiple potential label positions for a polygon at run time, rather than selecting from pre-configured label positions. The present invention analyzes the visible portion of the polygon to generate potential label positions dynamically based on the visible portion of the polygon, rather than using pre-configured label positions. As many rectangles are created as can fit within the visible portion of the polygon, and which can support the placement of a label. The rectangles are sized in accordance with the size of the label to be displayed. Once the rectangles are created, the present invention allows for the selection of one of the rectangles as a preferred label position for the polygon. The present invention also allows for the generation of a form following baseline created by connecting the centerpoints of horizontally disposed rectangles, and then smoothing the resulting baseline until a desirable baseline is obtained. A set of rectangles are constructed along the form following baseline for the placement of the label.
|