All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.flow.component.charts.model.AnnotationItemLabelPoint Maven / Gradle / Ivy

There is a newer version: 24.5.4
Show newest version
/**
 * Copyright 2000-2024 Vaadin Ltd.
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See {@literal } for the full
 * license.
 */
package com.vaadin.flow.component.charts.model;

/**
 * Contains coordinates for {@link AnnotationItemLabel}
 */
public class AnnotationItemLabelPoint extends AbstractConfigurationObject {

    private Number x;
    private Number y;

    /**
     * Constructs an AnnotationItemLabelPoint with the given coordinates
     *
     * @param x
     *            Horizontal offset
     * @param y
     *            Vertical offset
     */
    public AnnotationItemLabelPoint(Number x, Number y) {
        this.x = x;
        this.y = y;
    }

    /**
     * @see #setX(Number)
     */
    public Number getX() {
        return x;
    }

    /**
     * Sets the horizontal offset of the label within chart
     *
     * @param x
     *            Horizontal offset
     */
    public void setX(Number x) {
        this.x = x;
    }

    /**
     * @see #setY(Number)
     */
    public Number getY() {
        return y;
    }

    /**
     * Sets the vertical offset of the label within chart
     *
     * @param y
     *            Vertical offset
     */
    public void setY(Number y) {
        this.y = y;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy