shapeType
property. The possible values
are as listed in the following table. shapeType : “Rectangle”; |
|
shapeType : “RoundRectangle”; |
|
shapeType : “Ellipse”; |
|
shapeType : “Diamond”; |
|
shapeType : “TriangleUp”; |
|
shapeType : “TriangleDown”; |
|
shapeType : “TriangleLeft”; |
|
shapeType : “TriangleRight”; |
|
shapeType : “Marker”; |
|
setShape
method. This lets
you use any custom shape. You can specify a custom shapes in any of
the following ways:node { shape : "url(myCustomShape.svg)"; }
IlvGeneralPath myShape = new IlvGeneralPath(...); generalNode.setShape(myShape);
shapeWidth
, shapeHeight
,
and shapeAspectRatio
. shapeWidth
and shapeHeight
.
In this case the aspect ratio of the shape will not be preserved.
For example: node { class : "ilog.views.sdm.graphic.IlvGeneralNode"; shapeType : "RoundRectangle"; shapeWidth : "100"; shapeHeight : "50"; }
shapeWidth
to
the desired width and the property shapeAspectRatio
to
the desired width/height ratio. For example: node { class : "ilog.views.sdm.graphic.IlvGeneralNode"; shapeType : "RoundRectangle"; shapeWidth : "100"; shapeAspectRatio : "2"; }