Last updated

API / geotoolkit / axis / TickInfo / TickInfo

Class: TickInfo

axis.TickInfo.TickInfo

Define information about tick, which is used in tick generator

Table of contents

Constructors
[new TickInfo(options)](/solutions/geotoolkit/apis/classes/geotoolkit.axis.tickinfo.tickinfo.md#new tickinfo(options))[new TickInfo(tickType, tickPosition, tickSize, lineStyle, textStyle)](/solutions/geotoolkit/apis/classes/geotoolkit.axis.tickinfo.tickinfo.md#new tickinfo(ticktype, tickposition, ticksize, linestyle, textstyle))
Methods
Css Properties
Name Type Description
anchortypeAnchorTypeAnchor position of the label
cancelbooleanCancel flag
contexttransformationTransformationTransformation from model space to device space
contexttransformation-dxnumberX axis translation
contexttransformation-dynumberY axis translation
contexttransformation-xxnumberX scale
contexttransformation-xynumberXy skew
contexttransformation-yxnumberYx skew
contexttransformation-yynumberY scale
deviceboundsRectBounds of the device
devicebounds-heightnumberHeight
devicebounds-readonlybooleanReadonly
devicebounds-widthnumberWidth
devicebounds-xnumberLeft
devicebounds-ynumberTop
devicevisibleboundsRectVisible device bounds
linestyleLineStyleLine style
linestyle-colorstringColor in CSS form
linestyle-fillstringOptional fill style to be used to fill lines generated with this style
linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
linestyle-fill-colorstringColor in CSS form
linestyle-fill-evenoddmodebooleanEven-odd fill mode
linestyle-fill-fillpatternPatternPattern
linestyle-fill-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
linestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
linestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
linestyle-fill-foregroundstringForeground color
linestyle-fill-patternPatternPattern
linestyle-linecapCapStyleThe line cap style
linestyle-linedashoffsetnumberLine dash offset of dashed line
linestyle-linejoinJoinStyleThe line join style
linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
linestyle-scalablebooleanTrue if width should depend on transformation
linestyle-unitstringOptional unit for the width
linestyle-widthnumber | stringThe line thickness
modelboundsRectModel bounds
rotationanglenumberRotation angle
textstyleTextStyleText style
textstyle-alignmentAlignmentStyleAlignment
textstyle-autosizebooleanAuto font size on high definition display
textstyle-backgroundstringBackground style
textstyle-backgroundFillStyleBackground style
textstyle-baselineBaseLineStyleBase line
textstyle-colorstringColor in CSS form
textstyle-fillFillStyleText fill style
textstyle-fontstringFont see
textstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
textstyle-lineheightstring | numberLine height
textstyle-multilinebooleanAllow multi-line text
textstyle-outlinestringOutline style
textstyle-outlineLineStyleOutline style
textstyle-overflowwrapOverflowWrapStyleOverflow wrap
textstyle-strikethroughstringStrikethrough style
textstyle-strikethroughLineStyleStrikethrough style
textstyle-textoverflowTextOverflowStyleText overflow
textstyle-underlinestringUnderline style
textstyle-underlineLineStyleUnderline style
textstyle-underlineoffsetstring | numberUnderline offset distance
textstyle-whitespaceWhiteSpaceStyleWhite space
textstyle-wordbreakWordBreakStyleWord break
tickendnumberTick end
tickoriginnumberTick origin
tickpositionTickPositionTick position
ticksizenumberA tick size
ticktypestringTick type like major, minor, edge
visiblemodelboundsRectVisible model bounds

Contents

Constructors

new TickInfo(options)

new TickInfo(options?)

Parameters

Name Type Description
Optional optionsOptionsoptions

new TickInfo(tickType, tickPosition, tickSize, lineStyle, textStyle)

new TickInfo(tickType?, tickPosition?, tickSize?, lineStyle?, textStyle?)

Parameters

Name Type Description
Optional tickTypestringtick type like major, minor, edge
Optional tickPositionTickPositionEnum of axis tick positions
Optional tickSizenumbersize of the tick
Optional lineStyleLineStyleline style
Optional textStyleTextStyletext style
Methods

cancel

cancel(): void

Cancel

Returns

void


getAnchorType

getAnchorType(): AnchorType

Get anchor type

Returns

AnchorType


getAxisDimension

getAxisDimension(): AxisMappingDimension

Return axis dimension

Returns

AxisMappingDimension


getClassName

getClassName(): string

Returns

string


getContextTransformation

getContextTransformation(): Transformation

Get context transform

Returns

Transformation


getDeviceBounds

getDeviceBounds(): Rect

Get device bounds

Returns

Rect


getGrade

getGrade(): string

Return tick grade as string

Returns

string

type


getLineStyle

getLineStyle(): LineStyle

Return line style

Returns

LineStyle


getModelBounds

getModelBounds(): Rect

Get model bounds

Returns

Rect


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties


getRotationAngle

getRotationAngle(): number

Return rotation angle

Returns

number

the angle of rotation


getTextStyle

getTextStyle(): TextStyle

Return text style

Returns

TextStyle

a text style


getTickEnd

getTickEnd(): number

Get tick end

Returns

number


getTickOrigin

getTickOrigin(): number

Get tick origin

Returns

number


getTickPosition

getTickPosition(): TickPosition

Return tick position

Returns

TickPosition

a tick position


getTickSize

getTickSize(): number

Return tick size

Returns

number

a tick size


getVisibleDeviceBounds

getVisibleDeviceBounds(): Rect

Get visible device bounds

Returns

Rect


getVisibleModelBounds

getVisibleModelBounds(): Rect

Get visible model bounds

Returns

Rect


isCanceled

isCanceled(): boolean

Is canceled

Returns

boolean


repeat

repeat(): void

Repeat

Returns

void


setAnchorType

setAnchorType(type): TickInfo

Set anchor type

Parameters

Name Type Description
typeAnchorTypeanchor position of the label

Returns

TickInfo

this


setAxisDimension

setAxisDimension(dimension): TickInfo

Sets axis dimension

Parameters

Name Type Description
dimensionAxisMappingDimensionaxis dimension

Returns

TickInfo

this


setContextTransformation

setContextTransformation(transformation, nonDeviated?): TickInfo

Set context transform

Parameters

Name Type Description
transformationTransformationtransformation from model space to device space
Optional nonDeviatedboolean

Returns

TickInfo

this


setDeviceBounds

setDeviceBounds(deviceBounds): TickInfo

Set device bounds

Parameters

Name Type Description
deviceBoundsRectbounds of the device

Returns

TickInfo

this


setGrade

setGrade(grade): TickInfo

Sets tick grade

Parameters

Name Type Description
gradestringa tick type

Returns

TickInfo

this


setLineStyle

setLineStyle(lineStyle): TickInfo

Sets line style

Parameters

Name Type Description
lineStyleLineStyleline style

Returns

TickInfo

this


setModelBounds

setModelBounds(modelBounds): TickInfo

Set model bounds

Parameters

Name Type Description
modelBoundsRectmodel bounds

Returns

TickInfo

this


setProperties

setProperties(properties?): TickInfo

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

TickInfo

this


setRotationAngle

setRotationAngle(rotationAngle): TickInfo

Sets rotation angle

Parameters

Name Type Description
rotationAnglenumberrotation angle

Returns

TickInfo

this


setTextStyle

setTextStyle(textStyle): TickInfo

Sets text style

Parameters

Name Type Description
textStyleTextStyletext style

Returns

TickInfo

this


setTickEnd

setTickEnd(end): TickInfo

Set tick end

Parameters

Name Type Description
endnumbertick end

Returns

TickInfo

this


setTickOrigin

setTickOrigin(origin): TickInfo

Set tick origin

Parameters

Name Type Description
originnumbertick origin

Returns

TickInfo

this


setTickPosition

setTickPosition(tickPosition): TickInfo

Sets tick position

Parameters

Name Type Description
tickPositionTickPositiontick position

Returns

TickInfo

this


setTickSize

setTickSize(tickSize): TickInfo

Set tick size

Parameters

Name Type Description
tickSizenumbera tick size

Returns

TickInfo

this


setVisibleDeviceBounds

setVisibleDeviceBounds(deviceBounds): TickInfo

Set visible device bounds

Parameters

Name Type Description
deviceBoundsRectvisible device bounds

Returns

TickInfo

this


setVisibleModelBounds

setVisibleModelBounds(modelBounds): TickInfo

Set visible model bounds

Parameters

Name Type Description
modelBoundsRectvisible model bounds

Returns

TickInfo

this


getClassName

Static getClassName(): string

Returns

string