Skip to content

API / geotoolkit / axis / AxisMappingDimension / AxisMappingDimension

Class: AxisMappingDimension

axis.AxisMappingDimension.AxisMappingDimension

Define axis model dimension.

Hierarchy

Table of contents

Constructors
  • [new AxisMappingDimension(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.axis.axismappingdimension.axismappingdimension.md#new axismappingdimension(options))
Methods
Css Properties
Name Type Description
desiredmodelstepnumberDesired model step
logarithmicbooleanTrue for logarithmic axis
maxnumberMaximum value
minnumberMinimum value
minspannumberDesired minimum distance between ticks in pixels
namestringName of the dimension
neatlimitsbooleanEnable or disable neat limits
orientationOrientationAxis orientation
originnumber
preciselimitsbooleanEnable keeping the precise limits and calculate only step
spacingnumberDesired model spacing

Contents

Constructors

new AxisMappingDimension(options)

• new AxisMappingDimension(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

AxisDimension.constructor

Methods

dispose

▸ dispose(): void

Dispose.

Returns

void

Inherited from

AxisDimension.dispose


getClassName

▸ getClassName(): string

Returns

string

Inherited from

AxisDimension.getClassName


getLogarithmic

▸ getLogarithmic(): boolean

Gets logarithmic mode

Returns

boolean

true if logarithmic mode enabled


getMax

▸ getMax(): number

Return maximum value

Returns

number

Inherited from

AxisDimension.getMax


getMin

▸ getMin(): number

Return minimum value

Returns

number

Inherited from

AxisDimension.getMin


getNeatLimits

▸ getNeatLimits(): boolean

Returns true if neat limits is enabled.

Returns

boolean

Inherited from

AxisDimension.getNeatLimits


getNiceLimits

▸ getNiceLimits(min, max, desiredModelStep): Limits

Get nice limits

Parameters

Name Type Description
minnumberminimum value
maxnumbermaximum value
desiredModelStepnumberdesired model space between ticks

Returns

Limits

calculated limits


getNiceLimitsByCount

▸ getNiceLimitsByCount(min, max, maxNumberOfTicks): Limits

Get nice limits by count

Parameters

Name Type Description
minnumberminimum value
maxnumbermaximum value
maxNumberOfTicksnumbermaximum number of ticks

Returns

Limits

calculated limits


getOptions

▸ getOptions(): Required<Options&gt;

Return options

Returns

Required<Options&gt;

The options

Overrides

AxisDimension.getOptions


getOrientation

▸ getOrientation(): Orientation

Gets axis orientation

Returns

Orientation

Inherited from

AxisDimension.getOrientation


getOrigin

▸ getOrigin(): number

Return origin value

Returns

number

Overrides

AxisDimension.getOrigin


getPreciseLimits

▸ getPreciseLimits(): boolean

Return mode to support precise limits

Returns

boolean


getProperties

▸ getProperties(): Required<Options&gt;

Returns

Required<Options&gt;


getSpacing

▸ getSpacing(): number

Return desired model spacing

Returns

number


hasEventListener

▸ hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

AxisDimension.hasEventListener


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

AxisDimension.isDisposed


isSilent

▸ isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

AxisDimension.isSilent


notify

▸ notify<E&gt;(type, source, args?): AxisMappingDimension

Notify listeners

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEevent types
sourceAxisDimensionof the event
Optional argsEventMap[E]arguments of the event

Returns

AxisMappingDimension

this

Inherited from

AxisDimension.notify


off

▸ off<E&gt;(type?, callback?): AxisMappingDimension

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: AxisMappingDimension, args: EventMap[E]) => voidfunction to be called

Returns

AxisMappingDimension

this

Inherited from

AxisDimension.off


on

▸ on<E&gt;(type, callback): AxisMappingDimension

Attach listener on event that will be called whenever the specified event is delivered to the target <p> If the callback function is already in the list of event listeners for this target, the function is not added a second time. </p> <p> If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target. </p>

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: AxisMappingDimension, args: EventMap[E]) => voidto be called

Returns

AxisMappingDimension

this

Inherited from

AxisDimension.on


setLogarithmic

▸ setLogarithmic(enable): AxisMappingDimension

Sets logarithmic mode.

Parameters

Name Type Description
enablebooleanenable logarithmic mode

Returns

AxisMappingDimension

this


setNeatLimits

▸ setNeatLimits(enable): AxisMappingDimension

Enable / disable neat limits

Parameters

Name Type Description
enablebooleanenable or disable neat limits

Returns

AxisMappingDimension

this

Inherited from

AxisDimension.setNeatLimits


setOptions

▸ setOptions(options?): AxisMappingDimension

Sets options

Parameters

Name Type Description
Optional optionsOptionsThe options

Returns

AxisMappingDimension

this

Overrides

AxisDimension.setOptions


setOrientation

▸ setOrientation(orientation): AxisMappingDimension

Sets axis orientation

Parameters

Name Type Description
orientationOrientationaxis orientation

Returns

AxisMappingDimension

this

Inherited from

AxisDimension.setOrientation


setPreciseLimits

▸ setPreciseLimits(enable): AxisMappingDimension

Sets mode for precise limits support for neat limits. This mode works only with neat limits mode

Parameters

Name Type Description
enablebooleanenable keeping the precise limits and calculate only step

Returns

AxisMappingDimension

this


setProperties

▸ setProperties(options?): AxisMappingDimension

Parameters

Name Type
Optional optionsOptions

Returns

AxisMappingDimension


setSilent

▸ setSilent(bool): AxisMappingDimension

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

AxisMappingDimension

this

Inherited from

AxisDimension.setSilent


updateLimits

▸ updateLimits(min, max, options?): void

Update limits

Parameters

Name Type Description
minnumberminimum value
maxnumbermaximum value
Optional optionsTransformation | Limitsfrom model range to device or addition properties

Returns

void

Inherited from

AxisDimension.updateLimits


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AxisDimension.getClassName