<polyline>
<polyline> is a Graphical
component that renders a polyline when nested inside a <graph> component.
Attributes and Properties
| Attribute | Type | Values |
|---|---|---|
allowDilation = "…" | boolean | "true" "false" |
allowReflection = "…" | boolean | "true" "false" |
allowRotation = "…" | boolean | "true" "false" |
allowTranslation = "…" | boolean | "true" "false" |
applyStyleToLabel = "…" | boolean | "true" "false" |
displayDecimals = "…" | integer | |
displayDigits = "…" | integer | |
displaySmallAsZero = "…" | number | |
draggable = "…" | boolean | "true" "false" |
labelIsName = "…" | boolean | "true" "false" |
layer = "…" | integer | |
minShrink = "…" | ||
padZeros = "…" | boolean | "true" "false" |
preserveSimilarity = "…" | boolean | "true" "false" |
rigid = "…" | boolean | "true" "false" |
rotateAround = "…" | "centroid" "vertex" "point" | |
rotationCenter = "…" | ||
rotationHandleVertices = "…" | ||
rotationVertex = "…" | ||
showCoordsWhenDragging = "…" | boolean | "true" "false" |
vertices = "…" | [ math ] | |
verticesDraggable = "…" | boolean | "true" "false" |
| Property | Type |
|---|---|
$p.allowDilation | boolean |
$p.allowReflection | boolean |
$p.allowRotation | boolean |
$p.allowTranslation | boolean |
$p.applyStyleToLabel | boolean |
$p.disabled | boolean |
$p.displayDecimals | integer |
$p.displayDigits | integer |
$p.displaySmallAsZero | number |
$p.draggable | boolean |
$p.fixed | boolean |
$p.fixLocation | boolean |
$p.hidden | boolean |
$p.label | label |
$p.labelIsName | boolean |
$p.layer | integer |
$p.length | number |
$p.numDimensions | number |
$p.numVertices | number |
$p.padZeros | boolean |
$p.preserveSimilarity | boolean |
$p.rigid | boolean |
$p.showCoordsWhenDragging | boolean |
$p.styleDescription | text |
$p.styleDescriptionWithNoun | text |
$p.vertices | [ math ] |
$p.verticesDraggable | boolean |
Example: Default <polyline>
The default <polyline> requires the vertices attribute as a minimum.
Example: <polyline> constrained to grid
The vertices of a <polyline> are predefined as constrained points, thereby
constraining the polyline to a grid as well.
Attribute Example: vertices
The vertices attribute takes a list of points as its input.
Attribute Example: draggable
The draggable attribute determines whether the <polyline> can be
dragged around the <graph>. All graphical objects are draggable by default.
Attribute Example: verticesDraggable
Vertices are draggable by default. Use the verticesDraggable attribute set
to false to disable users from changing the proportions of the <polyline>. The
polyline as a whole can still be repositioned on the <graph>.
Attribute Example: Standard graphical attributes
The uses of the following standard graphical attributes are
illustrated: hide, fixLocation, layer, styleNumber, applyStyleToLabel and labelIsName.
Property Example: Style properties
The styleDescription and styleDescriptionWithNoun properties render a
text description corresponding to the styleNumber of the component.