Last updated

API / geotoolkit / util / AnchorUtil / AnchorUtil

Class: AnchorUtil

util.AnchorUtil.AnchorUtil

A utility class for AnchorType

Table of contents

Constructors
Methods

Contents

Constructors

new AnchorUtil()

new AnchorUtil()

Methods

fromString

Static fromString(anchorType): AnchorType

Parameters

Name Type
anchorTypestring

Returns

AnchorType


isBottom

Static isBottom(anchor): boolean

Parameters

Name Type
anchorstring

Returns

boolean


isLeft

Static isLeft(anchor): boolean

Parameters

Name Type
anchorstring

Returns

boolean


isRight

Static isRight(anchor): boolean

Parameters

Name Type
anchorstring

Returns

boolean


isTop

Static isTop(anchor): boolean

Parameters

Name Type
anchorstring

Returns

boolean


toString

Static toString(anchorType): string

Parameters

Name Type
anchorTypestring

Returns

string


transform

Static transform(transformation, anchor): AnchorType

Parameters

Name Type Description
transformationTransformationtransformation
anchorAnchorTypeanchor type

Returns

AnchorType

transformed anchor