Referencecurve (Attributes)

<curve>

Attribute Examples

The following examples illustrate use of the <curve> tag attributes.


Attribute Example: draggable

If a <curve> has its draggable attribute set to false, the user will not be able to manipulate the through points.


Attribute Example: labelPosition

The labelPosition attribute specifies the location of the curve’s label. Valid values are upperleft, upperright, top, left, right, lowerleft, bottom, lowerright. The default value is upperright.


Attribute Example: flipFunction

The <curve> is defined with a function between the opening and closing tags. The flipFunction attribute reflects the curve about the line y=xy=x.


Attribute Example: splineTension

Two curves are contrasted to demonstrate the effect of the splineTension attribute on the shape of the curve. Valid values for the splineTension attribute range from 0 (corresponding to the case where the spline is actually a polyline) to 1 (for full curvature). The default value for splineTension is 0.80.8. For greater control over the shape of the curve at the through points, the <bezierControls> component can be used.


Attribute Example: extrapolateBackward, extrapolateForward

The extrapolateBackward and extrapolateForward attributes of the <curve> component will add quadratic extrapolations onto cubic splines. The extrapolation is based on the curvature of the adjacent spline segment. The extrapolated parabola will open either vertically or horizontally.


Attribute Example: splineForm

Two curves are contrasted to demonstrate the effect of the splineForm attribute on the <curve> component. The splineForm attribute accepts input values of “centripetal” and “uniform”, with a default value of “centripetal”.


Attribute Example: variable

The variable attribute specifies the parameter used when defining a parametric <curve>.


Attribute Example: through

The through attribute defines through points for the <curve>


Attribute Example: parMin, parMax

The parMin and parMax attributes specify a minimum and maximum value for the parameter when graphing a parametric curve.


Attribute Example: Standard graphical attributes

The uses of the following standard graphical attributes are illustrated: layer, styleNumber, applyStyleToLabel and labelIsName.