Last updated

API / geotoolkit / axis / AxisLinearDimension / AxisLinearDimension

Class: AxisLinearDimension

axis.AxisLinearDimension.AxisLinearDimension

Define axis model dimension. This is experimental api

Deprecated

since 3.4, use AxisMappingDimension instead

Hierarchy

Table of contents

Constructors
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 AxisLinearDimension(options)

new AxisLinearDimension(options?)

Parameters

Name Type Description
Optional optionsOptionsThe options

Overrides

AxisMappingDimension.constructor

Methods

dispose

dispose(): void

Dispose.

Returns

void

Inherited from

AxisMappingDimension.dispose


getClassName

getClassName(): string

Returns

string

Inherited from

AxisMappingDimension.getClassName


getLogarithmic

getLogarithmic(): boolean

Gets logarithmic mode

Returns

boolean

true if logarithmic mode enabled

Inherited from

AxisMappingDimension.getLogarithmic


getMax

getMax(): number

Return maximum value

Returns

number

Inherited from

AxisMappingDimension.getMax


getMin

getMin(): number

Return minimum value

Returns

number

Inherited from

AxisMappingDimension.getMin


getNeatLimits

getNeatLimits(): boolean

Returns true if neat limits is enabled.

Returns

boolean

Inherited from

AxisMappingDimension.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

Inherited from

AxisMappingDimension.getNiceLimits


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

Inherited from

AxisMappingDimension.getNiceLimitsByCount


getOptions

getOptions(): Required<Options>

Return options

Returns

Required<Options>

The options

Inherited from

AxisMappingDimension.getOptions


getOrientation

getOrientation(): Orientation

Gets axis orientation

Returns

Orientation

Inherited from

AxisMappingDimension.getOrientation


getOrigin

getOrigin(): number

Return origin value

Returns

number

Inherited from

AxisMappingDimension.getOrigin


getPreciseLimits

getPreciseLimits(): boolean

Return mode to support precise limits

Returns

boolean

Inherited from

AxisMappingDimension.getPreciseLimits


getProperties

getProperties(): Required<Options>

Returns

Required<Options>

Inherited from

AxisMappingDimension.getProperties


getSpacing

getSpacing(): number

Return desired model spacing

Returns

number

Inherited from

AxisMappingDimension.getSpacing


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

AxisMappingDimension.hasEventListener


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

AxisMappingDimension.isDisposed


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

AxisMappingDimension.isSilent


notify

notify<E>(type, source, args?): AxisLinearDimension

Notify listeners

Type parameters

NameType
Eextends string

Parameters

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

Returns

AxisLinearDimension

this

Inherited from

AxisMappingDimension.notify


off

off<E>(type?, callback?): AxisLinearDimension

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: AxisLinearDimension, args: EventMap[E]) => voidfunction to be called

Returns

AxisLinearDimension

this

Inherited from

AxisMappingDimension.off


on

on<E>(type, callback): AxisLinearDimension

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

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.

Type parameters

NameType
Eextends string

Parameters

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

Returns

AxisLinearDimension

this

Inherited from

AxisMappingDimension.on


setLogarithmic

setLogarithmic(enable): AxisLinearDimension

Sets logarithmic mode.

Parameters

Name Type Description
enablebooleanenable logarithmic mode

Returns

AxisLinearDimension

this

Inherited from

AxisMappingDimension.setLogarithmic


setNeatLimits

setNeatLimits(enable): AxisLinearDimension

Enable / disable neat limits

Parameters

Name Type Description
enablebooleanenable or disable neat limits

Returns

AxisLinearDimension

this

Inherited from

AxisMappingDimension.setNeatLimits


setOptions

setOptions(options?): AxisLinearDimension

Sets options

Parameters

Name Type Description
Optional optionsOptionsThe options

Returns

AxisLinearDimension

this

Inherited from

AxisMappingDimension.setOptions


setOrientation

setOrientation(orientation): AxisLinearDimension

Sets axis orientation

Parameters

Name Type Description
orientationOrientationaxis orientation

Returns

AxisLinearDimension

this

Inherited from

AxisMappingDimension.setOrientation


setPreciseLimits

setPreciseLimits(enable): AxisLinearDimension

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

AxisLinearDimension

this

Inherited from

AxisMappingDimension.setPreciseLimits


setProperties

setProperties(options?): AxisLinearDimension

Parameters

Name Type
Optional optionsOptions

Returns

AxisLinearDimension

Inherited from

AxisMappingDimension.setProperties


setSilent

setSilent(bool): AxisLinearDimension

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

AxisLinearDimension

this

Inherited from

AxisMappingDimension.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

AxisMappingDimension.updateLimits


getClassName

Static getClassName(): string

Returns

string

Inherited from

AxisMappingDimension.getClassName