Skip to content

API / geotoolkit / attributes / LineRenderingContext / LineRenderingContext

Class: LineRenderingContext

attributes.LineRenderingContext.LineRenderingContext

Represents context to render line

Table of contents

Constructors
  • [new LineRenderingContext(context)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.attributes.linerenderingcontext.linerenderingcontext.md#new linerenderingcontext(context))
Methods

Contents

Constructors

new LineRenderingContext(context)

• Protected new LineRenderingContext(context?)

Parameters

Name Type
Optional contextRenderingContext
Methods

drawLine

▸ Abstract drawLine(x1, y1, x2, y2): void

Draw line

Parameters

Name Type Description
x1numberx-position of start point
y1numbery-position of start point
x2numberx-position of end point
y2numbery-position of end point

Returns

void


setLineStyle

▸ Abstract setLineStyle(style, area?): LineRenderingContext

Set line style

Parameters

Name Type Description
styleLineStylea line style
Optional areaRectarea to apply fill property of line style

Returns

LineRenderingContext