The Graphs view now supports custom node shapes:
Shape | optional attributes | Example | XML |
Rectangle | cornerRadius | <NodeStyle name="Rectangle"> <Shape> <Rectangle cornerRadius="30"/> </Shape> </NodeStyle> | |
Ellipse | | <NodeStyle name="Ellipse"> <Shape> <Ellipse/> </Shape> <NodeStyle> | |
Parallelogram | | <NodeStyle name="Parallelogram"> <Shape> <Parallelogram/> </Shape> </NodeStyle> | |
Actor | lineColor | <NodeStyle name="Actor"> <Shape> <Actor lineColor="#82d0ff"/> </Shape> </NodeStyle> | |
Chevron | | <NodeStyle name="Chevron"> <Shape> <Chevron/> </Shape> </NodeStyle> | |
Circle | diameter | <NodeStyle name="Circle"> <Shape> <Circle diameter="140"/> </Shape> </NodeStyle> | |
OrGate | | <NodeStyle name="OrGate"> <Shape> <OrGate/> </Shape> </NodeStyle> | |
AndGate | | <NodeStyle name="AndGate"> <Shape> <AndGate/> </Shape> </NodeStyle> | |
Triangle | width | <NodeStyle name="Triangle" > <Shape> <Triangle width="70"/> </Shape> </NodeStyle> | |
RectangularPentagon | | <NodeStyle name="RectangularPentagon"> <Shape> <RectangularPentagon /> </Shape> </NodeStyle> |
Note: It has been assumed that those shapes that do not support any size specification are always meant to be displayed in a fixed size.
Example:
<Graph> <Options> <ObjIcons/> </Options> <NodeStyles> <NodeStyle name="Strategy" shapeType="parallelogram" fillColor="#7acfff" fillColor2="#ffffff" borderThickness="1" borderColor="#000000"> <Shape> <Parallelogram/> </Shape> </NodeStyle> </NodeStyles> <Node style="Strategy"/> </Graph>
For further details on how to use shapes, refer to the Help manual:
Issue IDs: 11348, 11475, 11450, 11476, 11132