API / geotoolkit / axis / TickInfo / TickInfo
Define information about tick, which is used in tick generator
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 |
|---|---|---|
anchortype | AnchorType | Anchor position of the label |
cancel | boolean | Cancel flag |
contexttransformation | Transformation | Transformation from model space to device space |
contexttransformation-dx | number | X axis translation |
contexttransformation-dy | number | Y axis translation |
contexttransformation-xx | number | X scale |
contexttransformation-xy | number | Xy skew |
contexttransformation-yx | number | Yx skew |
contexttransformation-yy | number | Y scale |
devicebounds | Rect | Bounds of the device |
devicebounds-height | number | Height |
devicebounds-readonly | boolean | Readonly |
devicebounds-width | number | Width |
devicebounds-x | number | Left |
devicebounds-y | number | Top |
devicevisiblebounds | Rect | Visible device bounds |
linestyle | LineStyle | Line style |
linestyle-color | string | Color in CSS form |
linestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
linestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
linestyle-fill-color | string | Color in CSS form |
linestyle-fill-evenoddmode | boolean | Even-odd fill mode |
linestyle-fill-fillpattern | Pattern | Pattern |
linestyle-fill-fillpattern-containername | string | An 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-patternname | string | Name of this pattern for indexing |
linestyle-fill-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
linestyle-fill-foreground | string | Foreground color |
linestyle-fill-pattern | Pattern | Pattern |
linestyle-linecap | CapStyle | The line cap style |
linestyle-linedashoffset | number | Line dash offset of dashed line |
linestyle-linejoin | JoinStyle | The line join style |
linestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
linestyle-scalable | boolean | True if width should depend on transformation |
linestyle-unit | string | Optional unit for the width |
linestyle-width | number | string | The line thickness |
modelbounds | Rect | Model bounds |
rotationangle | number | Rotation angle |
textstyle | TextStyle | Text style |
textstyle-alignment | AlignmentStyle | Alignment |
textstyle-autosize | boolean | Auto font size on high definition display |
textstyle-background | string | Background style |
textstyle-background | FillStyle | Background style |
textstyle-baseline | BaseLineStyle | Base line |
textstyle-color | string | Color in CSS form |
textstyle-fill | FillStyle | Text fill style |
textstyle-font | string | Font see |
textstyle-fonturl | string | The place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword |
textstyle-lineheight | string | number | Line height |
textstyle-multiline | boolean | Allow multi-line text |
textstyle-outline | string | Outline style |
textstyle-outline | LineStyle | Outline style |
textstyle-overflowwrap | OverflowWrapStyle | Overflow wrap |
textstyle-strikethrough | string | Strikethrough style |
textstyle-strikethrough | LineStyle | Strikethrough style |
textstyle-textoverflow | TextOverflowStyle | Text overflow |
textstyle-underline | string | Underline style |
textstyle-underline | LineStyle | Underline style |
textstyle-underlineoffset | string | number | Underline offset distance |
textstyle-whitespace | WhiteSpaceStyle | White space |
textstyle-wordbreak | WordBreakStyle | Word break |
tickend | number | Tick end |
tickorigin | number | Tick origin |
tickposition | TickPosition | Tick position |
ticksize | number | A tick size |
ticktype | string | Tick type like major, minor, edge |
visiblemodelbounds | Rect | Visible model bounds |
Constructors
• new TickInfo(options?)
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
• new TickInfo(tickType?, tickPosition?, tickSize?, lineStyle?, textStyle?)
| Name | Type | Description |
|---|---|---|
Optional tickType | string | tick type like major, minor, edge |
Optional tickPosition | TickPosition | Enum of axis tick positions |
Optional tickSize | number | size of the tick |
Optional lineStyle | LineStyle | line style |
Optional textStyle | TextStyle | text style |
Methods
▸ cancel(): void
Cancel
void
▸ getAnchorType(): AnchorType
Get anchor type
▸ getAxisDimension(): AxisMappingDimension
Return axis dimension
▸ getClassName(): string
string
▸ getContextTransformation(): Transformation
Get context transform
▸ getDeviceBounds(): Rect
Get device bounds
▸ getGrade(): string
Return tick grade as string
string
type
▸ getLineStyle(): LineStyle
Return line style
▸ getModelBounds(): Rect
Get model bounds
▸ getProperties(): OptionsOut
Gets all the properties pertaining to this object
properties
▸ getRotationAngle(): number
Return rotation angle
number
the angle of rotation
▸ getTextStyle(): TextStyle
Return text style
a text style
▸ getTickEnd(): number
Get tick end
number
▸ getTickOrigin(): number
Get tick origin
number
▸ getTickPosition(): TickPosition
Return tick position
a tick position
▸ getTickSize(): number
Return tick size
number
a tick size
▸ getVisibleDeviceBounds(): Rect
Get visible device bounds
▸ getVisibleModelBounds(): Rect
Get visible model bounds
▸ isCanceled(): boolean
Is canceled
boolean
▸ repeat(): void
Repeat
void
▸ setAnchorType(type): TickInfo
Set anchor type
| Name | Type | Description |
|---|---|---|
type | AnchorType | anchor position of the label |
this
▸ setAxisDimension(dimension): TickInfo
Sets axis dimension
| Name | Type | Description |
|---|---|---|
dimension | AxisMappingDimension | axis dimension |
this
▸ setContextTransformation(transformation, nonDeviated?): TickInfo
Set context transform
| Name | Type | Description |
|---|---|---|
transformation | Transformation | transformation from model space to device space |
Optional nonDeviated | boolean |
this
▸ setDeviceBounds(deviceBounds): TickInfo
Set device bounds
| Name | Type | Description |
|---|---|---|
deviceBounds | Rect | bounds of the device |
this
▸ setGrade(grade): TickInfo
Sets tick grade
| Name | Type | Description |
|---|---|---|
grade | string | a tick type |
this
▸ setLineStyle(lineStyle): TickInfo
Sets line style
| Name | Type | Description |
|---|---|---|
lineStyle | LineStyle | line style |
this
▸ setModelBounds(modelBounds): TickInfo
Set model bounds
| Name | Type | Description |
|---|---|---|
modelBounds | Rect | model bounds |
this
▸ setProperties(properties?): TickInfo
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Options | An object containing the properties to set |
this
▸ setRotationAngle(rotationAngle): TickInfo
Sets rotation angle
| Name | Type | Description |
|---|---|---|
rotationAngle | number | rotation angle |
this
▸ setTextStyle(textStyle): TickInfo
Sets text style
| Name | Type | Description |
|---|---|---|
textStyle | TextStyle | text style |
this
▸ setTickEnd(end): TickInfo
Set tick end
| Name | Type | Description |
|---|---|---|
end | number | tick end |
this
▸ setTickOrigin(origin): TickInfo
Set tick origin
| Name | Type | Description |
|---|---|---|
origin | number | tick origin |
this
▸ setTickPosition(tickPosition): TickInfo
Sets tick position
| Name | Type | Description |
|---|---|---|
tickPosition | TickPosition | tick position |
this
▸ setTickSize(tickSize): TickInfo
Set tick size
| Name | Type | Description |
|---|---|---|
tickSize | number | a tick size |
this
▸ setVisibleDeviceBounds(deviceBounds): TickInfo
Set visible device bounds
| Name | Type | Description |
|---|---|---|
deviceBounds | Rect | visible device bounds |
this
▸ setVisibleModelBounds(modelBounds): TickInfo
Set visible model bounds
| Name | Type | Description |
|---|---|---|
modelBounds | Rect | visible model bounds |
this
▸ Static getClassName(): string
string