Last updated

API / geotoolkit / schematics / labeling / LabelData / LabelData

Class: LabelData

labeling.LabelData.LabelData

Label data structure to use by a LabelingStrategy.

Table of contents

Constructors
Accessors
Methods
Css Properties
Name Type Description
anchortypeAnchorTypeAnchor type
nodeComponentNodeComponent node to label
node-automodellimitsmodebooleanAuto model limits mode
node-boundsRectDefine position of the group in the parent
node-bounds-heightnumberHeight
node-bounds-readonlybooleanReadonly
node-bounds-widthnumberWidth
node-bounds-xnumberLeft
node-bounds-ynumberTop
node-clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
node-clipstyleClipStyleClipping style
node-clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
node-clipstyle-geometryGraphicsPathClipping geometry
node-clipstyle-geometry-boundsRectBounds
node-clipstyleGraphicsPathClipping style
node-contentorientationOrientationContent orientation
node-cssclassstringThe css class name of this node
node-csscursorstringCSS cursor associated with node
node-cssstylestringCSS style to be applied to inserted elements
node-descriptionstringElement description
node-fillstylestringFill style
node-fillstyleFillStyleFill style
node-fillstyle-colorstringColor in CSS form
node-fillstyle-evenoddmodebooleanEven-odd fill mode
node-fillstyle-fillpatternPatternPattern
node-fillstyle-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
node-fillstyle-fillpattern-patternnamestringName of this pattern for indexing
node-fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
node-fillstyle-foregroundstringForeground color
node-fillstyle-patternPatternPattern
node-horizontalflipbooleanHorizontal axis goes from right to left
node-idstring | numberId of the node, its a unique identifier
node-infinitybooleanMode to render outside the model limits
node-layoutstyleLayoutStyleLayout style to be used for parent layout
node-layoutstyle-constraintSizeConstraintLayout constrains
node-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
node-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
node-layoutstyle-floatstringFloat position
node-layoutstyle-positionstringLayout position
node-layoutstyle-sizenumber | stringLayout size
node-linestylestringLine style
node-linestyleLineStyleLine style
node-linestyle-colorstringColor in CSS form
node-linestyle-fillstringOptional fill style to be used to fill lines generated with this style
node-linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
node-linestyle-linecapCapStyleThe line cap style
node-linestyle-linedashoffsetnumberLine dash offset of dashed line
node-linestyle-linejoinJoinStyleThe line join style
node-linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
node-linestyle-scalablebooleanTrue if width should depend on transformation
node-linestyle-unitstringOptional unit for the width
node-linestyle-widthnumber | stringThe line thickness
node-localtransformTransformationLocal transformation
node-localtransform-dxnumberX axis translation
node-localtransform-dynumberY axis translation
node-localtransform-xxnumberX scale
node-localtransform-xynumberXy skew
node-localtransform-yxnumberYx skew
node-localtransform-yynumberY scale
node-marginsnumber | stringIt has properties for specifying the margins for each side
node-modellimitsRectDefine inner model coordinates of the group
node-namestringName of the node. It is often used for debugging purposes or to simplify queries
node-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
node-opacityblendmodeBlendModeNode opacity mode to blend it
node-paddingnumber | stringIt has properties for specifying the padding for each side
node-pickingchildrenbooleanEnable picking children
node-rectboundsRectGeometry bounds
node-scalescrollstrategyScaleScrollStrategyScale scroll strategy
node-scalescrollstrategy-enabledbooleanEnable flag
node-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
node-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
node-transformstringAdditional CSS transformation applied to node or 'none'
node-transformTransformationAdditional CSS transformation applied to node or 'none'
node-verticalflipbooleanVertical axis goes from bottom to top
node-viewcachebooleanView cache to cache child nodes
node-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
node-z-indexnumberDefine node z-index
nodeindexnumberThe node virtual index
nodeinfostringThe node information
xlabelnumberLabel x-position
ylabelnumberLabel y-position

Contents

Constructors

new LabelData(params)

new LabelData(params?)

Parameters

Name Type
Optional paramsOptions
Accessors

anchorType

get anchorType(): AnchorType

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#anchorType

Returns

AnchorType

set anchorType(value): void

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#anchorType

Parameters

Name Type
valueAnchorType

Returns

void


node

get node(): ComponentNode

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#node

Returns

ComponentNode

set node(value): void

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#node

Parameters

Name Type
valueComponentNode

Returns

void


nodeInfo

get nodeInfo(): string

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#nodeInfo

Returns

string

set nodeInfo(value): void

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#nodeInfo

Parameters

Name Type
valuestring

Returns

void


xConnector

get xConnector(): any[]

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#xConnector

Returns

any[]

set xConnector(value): void

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#xConnector

Parameters

Name Type
valueany[]

Returns

void


xLabel

get xLabel(): number

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#xLabel

Returns

number

set xLabel(value): void

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#xLabel

Parameters

Name Type
valuenumber

Returns

void


yConnector

get yConnector(): any[]

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#yConnector

Returns

any[]

set yConnector(value): void

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#yConnector

Parameters

Name Type
valueany[]

Returns

void


yLabel

get yLabel(): number

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#yLabel

Returns

number

set yLabel(value): void

Deprecated

since 4.0. Use getProperties instead.

Name

module:geotoolkit/schematics/labeling/LabelData~LabelData#yLabel

Parameters

Name Type
valuenumber

Returns

void

Methods

getClassName

getClassName(): string

Returns

string


getProperties

getProperties(): Required<Options>

Returns

Required<Options>

options to initialize the strategy


setProperties

setProperties(properties?): LabelData

Parameters

Name Type Description
Optional propertiesOptionsoptions to initialize the strategy

Returns

LabelData


getClassName

Static getClassName(): string

Returns

string