Last updated

API / geotoolkit / attributes / LineRenderingContext / LineRenderingContext

Class: LineRenderingContext

attributes.LineRenderingContext.LineRenderingContext

Represents context to render line

Table of contents

Constructors
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