Search Results for

    Show / Hide Table of Contents

    Interface ICoordinateCalculator

    Using pre-computed constants, types which implement ICoordinateCalculator can convert from pixel coordinate to data value and back

    Namespace:
    Assembly: .dll
    Syntax
    public interface ICoordinateCalculator

    Methods

    getCoordinate(double dataValue)

    Transforms a data value into a pixel coordinate

    Declaration
    public abstract float getCoordinate(double dataValue)
    Parameters
    Type Name Description
    double dataValue

    The data value to transform

    Returns
    Type Description
    float

    The pixel coordinate

    getCoordinates(double[] dataValues, float[] coordinates, int count)

    Transforms data values into a pixel coordinates

    Declaration
    public abstract void getCoordinates(double[] dataValues, float[] coordinates, int count)
    Parameters
    Type Name Description
    double[] dataValues

    The data value to transform

    float[] coordinates

    The target array for pixel coordinates

    int count

    Amount of points to transform

    getCoordinatesOffset()

    Gets a coordinate offset in pixels

    Declaration
    public abstract int getCoordinatesOffset()
    Returns
    Type Description
    int

    Coordinate offset in pixels

    getDataValue(float coordinate)

    Transforms a pixel coordinate into a data value

    Declaration
    public abstract double getDataValue(float coordinate)
    Parameters
    Type Name Description
    float coordinate

    The pixel coordinate to transform

    Returns
    Type Description
    double

    The data value

    getDataValues(float[] coordinates, double[] dataValues, int count)

    Transforms pixel coordinates into a data values

    Declaration
    public abstract void getDataValues(float[] coordinates, double[] dataValues, int count)
    Parameters
    Type Name Description
    float[] coordinates

    The pixel coordinates to transform

    double[] dataValues

    The target array for data values

    int count

    Amount of points to transform

    getMaxAsDouble()

    Gets the axis max value of visible range

    Declaration
    public abstract double getMaxAsDouble()
    Returns
    Type Description
    double

    The max value of visible range

    getMinAsDouble()

    Gets the axis min value of visible range

    Declaration
    public abstract double getMinAsDouble()
    Returns
    Type Description
    double

    The min value of visible range

    getViewportDimension()

    Gets the axis viewport size in pixels

    Declaration
    public abstract int getViewportDimension()
    Returns
    Type Description
    int

    The viewport size in pixels

    hasFlippedCoordinates()

    Gets a value indicating whether coordinates are flipped

    Declaration
    public abstract boolean hasFlippedCoordinates()
    Returns
    Type Description
    boolean

    True if coordinate are flipped

    isCategoryAxisCalculator()

    Gets a value indicating whether this is a category axis coordinate calculator

    Declaration
    public abstract boolean isCategoryAxisCalculator()
    Returns
    Type Description
    boolean

    True if this is a category axis coordinate calculator

    isHorizontalAxisCalculator()

    Gets a value indicating whether this is a horizontal axis coordinate calculator

    Declaration
    public abstract boolean isHorizontalAxisCalculator()
    Returns
    Type Description
    boolean

    True if this is a horizontal axis coordinate calculator

    isLogarithmicAxisCalculator()

    Gets a value indicating whether this is a logarithmic axis coordinate calculator

    Declaration
    public abstract boolean isLogarithmicAxisCalculator()
    Returns
    Type Description
    boolean

    True if this is a logarithmic axis coordinate calculator

    isXAxisCalculator()

    Gets a value indicating whether this coordinate calculator belongs by X axis

    Declaration
    public abstract boolean isXAxisCalculator()
    Returns
    Type Description
    boolean

    True if this coordinate calculator belongs by X axis

    translateBy(IRange range, float pixels)

    Translates the min and max of the input range by the specified data value

    Declaration
    public abstract void translateBy(IRange range, float pixels)
    Parameters
    Type Name Description
    IRange range

    The range to translate

    float pixels

    The number of pixels to translate by.

    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml